I'm not a expert on SQL and I'm working on a huge SQL code and unfortunately it has a CURSOR which handles another two nested CURSORS within it (total ...
I'm not a expert on SQL and I'm working on a huge SQL code and unfortunately it has a CURSOR which handles another two nested CURSORS within it (total ...
i'm looking for some help on the following on SQL2016 I have batches of which i need to identifying the parent batch. I'd need to fill is ParentBatc ...
I have a table that stores numeric balances in different buckets (bucket 1, 2 and 3). When an amount is posted in the system, the amount must be alloc ...
I know SQL statements don't execute asynchronously by default, but I have a situation that appears to behave that way. Tables [#data] [tbl_Buck ...
I have a sproc that takes a TVP, the input has 6,000 rows. The current code copies the TVP into a temp table, iterates RBAR over the temp table to ins ...
I have a warehouse, where each itemnumber can be in several locations. I have a preferred order where to pick from. The preferred order is a functi ...
Important: I need this to be SQL Server 2000 compatible. I need a cumulative sum but based on current date field, an update query like the one I’m us ...
I have an interesting conundrum here, how do I quickly (under 1 minute) export a large datatable (filled from SQL, 35,000 rows) into an Excel spreadsh ...
The webguys wants unique urls based on the name of the products If more products have the same name, add a number after the name. our.dom/red-sock ...
Before you say this is identical to SQL Call Stored Procedure for each Row without using a cursor let me clarify my question: The stored procedure do ...