Viewing 15 posts - 1,636 through 1,650 (of 7,614 total)
Would you put your heap table name in the code below, run it, and post the results? That will help determine which, if any, index is best for a clustering...
April 27, 2021 at 8:44 pm
Yes, you could use a JOIN.
SELECT IL.Item,ForecastDemandQty,ForecastDemandMAD,MinShelfQty,MaxShelfQty,
QuantityOnHand,QuantityCommitted,QuantityAllocated,QuantityReleased,ExcludeFromDistraNet,
ITH.TotalShipped
FROM tblimItemLoc IL
LEFT OUTER JOIN (
SELECT Item,SUM(TxQty) AS 'TotalShipped'
FROM IMInvTxHistory
...
April 27, 2021 at 8:32 pm
How long does
SELECT DATALENGTH(varbinmax_col1)
FROM dbo.base_tabletake to run?
Here's the TIME statistics for:
SELECT TOP (200) DATALENGTH(varbinmax_col1)
(200 rows affected)
SQL Server Execution Times:
CPU time = 16 ms, elapsed time...
April 27, 2021 at 6:05 pm
Yeah, the SELECT ... INTO holds certain internal locks on system tables.
Instead, create the table, the clus index (only), and only then load the data into it, like this:
April 27, 2021 at 5:02 pm
I would think using the EXEC ... AT method, should get around that. Try that:
EXEC('SELECT ... FROM dbname.dbo.table_name ... WHERE ...') AT [RemoteServer] April 27, 2021 at 6:16 am
Evening Guys,
(1) Are there negative effects of having multiple stored procs wrapped in an outer/master proc?
(2) Will the inner procs that are executed all be run as one...
April 27, 2021 at 6:07 am
Shifting gears to the code itself, it's pretty much a both a resource and performance nightmare. It makes one full pass of either the CI or an NCI for...
April 27, 2021 at 5:52 am
Deadlocks would be one of the main ones, I would think.
April 26, 2021 at 9:46 pm
This query or one just like it seems to come up a lot. But I still don't know if there's enough demand for, say, a full article on it. It's...
April 26, 2021 at 9:44 pm
I asked because many people are happy with code as long as it ultimately does what they need it to do, i.e. "the code's good enough for me." In that...
April 26, 2021 at 9:42 pm
Btw, why are you using such an inefficient method, checking the column values one by one?
What are you asking why instead of posting a link to...
April 26, 2021 at 9:34 pm
Hi,
I get the object id, it stopped working when I updated the management studio, i think it is not the code, but rather a new thing...
April 26, 2021 at 9:31 pm
Btw, why are you using such an inefficient method, checking the column values one by one?
April 26, 2021 at 9:22 pm
Please do some research and look up the E you rules for triangulation. This means that you have to convert from currency A to Euros, then from Euros to currency...
April 26, 2021 at 8:46 pm
Viewing 15 posts - 1,636 through 1,650 (of 7,614 total)