Viewing 15 posts - 481 through 495 (of 59,038 total)
To stop the table locking you could use a rowlock hint:
-- Ensure we are using row-level locking
SELECT @intID = (idPool + 1)
FROM IdConfiguration WITH...
June 11, 2024 at 1:38 pm
DECLARE @intID BIGINT
,@bridgeid BIGINT = 1
;
UPDATE dbo.bridge
SET...
June 11, 2024 at 2:46 am
Try not to specify the idPool column twice in the same Update statement and get rid of the Select statement.
The select statement where criteria is the same as the...
June 11, 2024 at 2:43 am
The Dynamic SQL is executed in a different context.
June 10, 2024 at 10:03 pm
This is a classic "Get NextID" issue.
It would also be nice if, when you posted a code example to explain your problem, that it would at least compile. BridgID is...
June 10, 2024 at 4:44 pm
Here you go Jeff:
Thank you! That'll help others, as well as preventing future dead links.
June 10, 2024 at 4:10 pm
Just to add to this (Great question, BTW!)...
The zero is known as a "Date Serial" number. DATETIME and SMALLDATETIME are capable of using Date Serial numbers directly whereas DATE, DATETIME2...
June 10, 2024 at 4:05 pm
My biggest problem with all of this is that people keep poo-pooing the words "perfect" and "perfection". That, in itself, isn't a problem but what people think after all the...
June 8, 2024 at 2:39 pm
Hello Jeff. Thanx for reply. I have never come across synonyms. Read some info on it. I am not really sure it will work. Anyways the old data will...
June 7, 2024 at 9:44 pm
Have two tables... for example, TableA1 and Table A2.
Start out with a synonym called TableA and have it pointing at TableA1.
Have another synonym called TableAWork and have it pointing at...
June 6, 2024 at 7:28 pm
Might just be me but the only time I'll look at any missing index recommendations is when there's a slow query that could really use some help. Adding indexes is...
June 6, 2024 at 7:00 pm
What is supposed to happen to the 5 million rows in Table A AFTER you've copied them to Table B and is Table B on the same database and on...
June 6, 2024 at 6:45 pm
I agree with David Poole. To put it all in less formal terminology, I've found that tools like ChatGPT are nothing more than a very sophisticated consensus engine and, sadly...
June 5, 2024 at 2:09 pm
Ah, double spacing. Forgot about that. The quoting is a real annoyance as well.
So, are you leaving all of this up to us to contact @marketing, etc?
June 3, 2024 at 2:03 pm
IMHO, true experts have enough knowledge about a particular subject to know when they don't know something about that subject and aren't afraid to say so. Saying "I don't know"...
June 1, 2024 at 10:43 pm
Viewing 15 posts - 481 through 495 (of 59,038 total)