Viewing 15 posts - 2,011 through 2,025 (of 2,648 total)
INSERT INTO LOCAL_Item VALUES ('64082','Null', 'Ear Defenders')
should beINSERT INTO LOCAL_Item VALUES ('64082',Null, 'Ear Defenders')
i.e. you can't have quotes around the Null
November 14, 2018 at 5:39 am
Thanks Harsha, a great script (5 stars awarded).
This saved me a lot of effort as I had to detach and then reattach about 50 databases on two instances...
November 14, 2018 at 5:14 am
November 13, 2018 at 6:31 pm
November 13, 2018 at 6:26 pm
1. Make sure all your stored procedures are in source control.
2. For each stored procedure you should have a script like this:IF OBJECT_ID('dbo.myStoredProcedure','P') IS NULL
...
November 13, 2018 at 12:34 pm
November 13, 2018 at 11:47 am
November 13, 2018 at 9:36 am
November 13, 2018 at 7:41 am
If you want to improve performance on selects (not updates and inserts) you can create the function with schemabinding, then you can persist the column:ALTER FUNCTION...
November 13, 2018 at 7:18 am
Why doesn't it come up with:
45,27
45,50
45,45
?
Can you provide your cursor solution so we can convert it to a set solution?
November 13, 2018 at 5:13 am
You should read this thread: https://www.sqlservercentral.com/Forums/2008959/does-use-of-large-datatypes-where-much-smaller-ones-will-do-affect-performance
November 13, 2018 at 4:38 am
You can set up perfmon to monitor CPU usage. for a few days then look at the plot.
If you have enterprise version of SQL Server you can create an...
November 13, 2018 at 3:38 am
Viewing 15 posts - 2,011 through 2,025 (of 2,648 total)