Browse the archive

SQL Server

How to store real-time data to database

Question Here is my situation: I have a WebSocket connection that feeds me data real-time I have an async callback function that gets the data and inserts into a queue I have another thread that reads from the queue and stores it into the Postgres database, …

Continue reading

Job waiting on CXCONSUMER

Question We have got a procedure on SQL Server agent jobs and this job started to hang on transaction for many hours with wait stats CXCONSUMER and never complete. The problem is after we noticed that it was hanging we kill the job and started manually during …

Continue reading

INSERT EXEC statement cannot be nested

Question I have a stored proc spGetSites that returns three columns for SiteName, SiteId and UnitCount. The stored proc runs perfectly fine. I'm trying to store the results of the stored proc to a temp table @Site to use for my report with below syntax. This …

Continue reading

Managed Instance Restart

Question Does anyone know how to restart a SQL Server Managed Instance? The stop / start / reset are all grayed out, so that’s really. It an option. Any thoughts? Thanks... Asked2019-01-05byKevin Wilkie Answer You don't restart Managed Instance. The beauty of …

Continue reading