Viewing 15 posts - 3,346 through 3,360 (of 7,614 total)
Below is a re-coded version of the stored proc. It does the UPDATE of IsUsed inline, to reduce (eliminate?) chances of two near-same-time execs of it getting the same NextID...
June 5, 2018 at 2:05 pm
1) How is clustered? By ( Col, Col1) or something else?
2) How is normally searched? By ( Col, Col1 ) or by something else?
3)...
June 4, 2018 at 3:32 pm
INSERT INTO dbo.exportLogTable
SELECT
...list_of_all_columns_in_table...
FROM (
SELECT *, ROW_NUMBER() OVER(PARTITION BY tableID ORDER BY tableID) AS row_num
FROM dbo.exportLogTable2
) AS elt2
June 4, 2018 at 12:32 pm
SELECT * INTO Title2 FROM Title;
Not a good idea. A direct SELECT ... INTO new_table can cause system table locking and can cause concurrence issues. You should...
June 4, 2018 at 12:26 pm
To the OP:
I still wish you'd run the script I posted earlier and post the results (on Page 4; can't get the link to it to copy correctly right...
June 4, 2018 at 8:03 am
You want five separate stored procs regardless. Then, if you want only to have to call 1 main proc from the report/SSRS/whatever, create a parent/"driver" proc that executes those 5...
June 1, 2018 at 1:49 pm
For [AMT].[ItemVersions] :
If [Description] and [PropertyBag] are (1) used more than rarely *and* (2) are used in at least 1 time-critical task *and* (3) for a majority of rows,...
June 1, 2018 at 1:41 pm
Definitely need index overhauls. [And wow do you all love guids!] Would you mind running the script below and posting the results? I always prefer to tune including actual SQL...
June 1, 2018 at 1:10 pm
With the size of modern drives, and the number of files on each drive, I don't know that you truly get a stationary head sitting there waiting for the next...
June 1, 2018 at 8:14 am
We'll continue to have a difference of opinion there. As for 30 years...
May 31, 2018 at 3:18 pm
May 31, 2018 at 3:02 pm
May 31, 2018 at 12:16 pm
May 31, 2018 at 11:58 am
Viewing 15 posts - 3,346 through 3,360 (of 7,614 total)