Viewing 15 posts - 5,446 through 5,460 (of 59,068 total)
Your code fairs no better, Joe. Try running it and see the error.
Also, the columns in your CREATE TABLE statement don't match the columns in your SELECT statement.
And, your code...
March 26, 2021 at 1:24 am
If you avoid "batching", it can be done with "minimal logging", which also nearly doubles the performance.
March 25, 2021 at 8:47 pm
The title of this thread threw me... I thought we were trying to count the NULLs in a given column... which is different than the original script, as well.
March 25, 2021 at 8:28 pm
Heh... you didn't try the code you posted. It's missing commas and the VALUES are not correct.
Be advised that the data you posted has nothing other than partid and serial...
March 25, 2021 at 6:02 pm
I believe you'll find that and INSERT/SELECT from an OPENQUERY across a linked server will work with some pretty good performance.
March 25, 2021 at 5:33 pm
Wouldn't it be easier just to take the difference between the count of a column that will never be NULL (like the PK column) and the column in question?
March 25, 2021 at 5:17 pm
The typical reason why there are typically no standards, particularly when it concerns databases and the related code, is because of the "code first" mentality that I've seen at oh...
March 25, 2021 at 5:00 pm
how to checkf if SQL Server CPU/RAM has bottleneck? thanks!
There are a ton of decent articles out there on this subject. You really need to do a little "googlin'". ...
March 24, 2021 at 11:00 pm
Try changing the SQL Server Agent startup type to "automatic (delayed start)" to make it start after SQL Server.
This is what fixed us a long time ago. I just...
March 24, 2021 at 10:50 pm
Yeah... there's always something when it comes to stats. Like you said, ascending date columns can be quite the rub, as well. We have a whole lot of tables that...
March 22, 2021 at 7:19 pm
My original thought in response to this article is "It Depends on the 'tool' in the chair!" 😀
March 22, 2021 at 4:13 pm
As an infrastructure guy and former consultant, one universal truth that I've observed over the years is the tendency for useful tools that are controlled locally to be replaced...
March 22, 2021 at 4:12 pm
Don't give the privs to the user. Instead, write a stored procedure that uses EXECUTE AS OWNER and give the user privs to execute that stored procedure.
March 22, 2021 at 4:09 pm
In all seriousness, we've always worked in a "distributed fashion". And, yeah, databases are necessarily a bit different simply because of their size and the fact that they contain sensitive...
March 22, 2021 at 3:27 pm
I just reran the code I posted on my production box and it's returning precisely (except I stripped the time off the "Last Accessed Date" output, which you can get...
March 22, 2021 at 3:22 pm
Viewing 15 posts - 5,446 through 5,460 (of 59,068 total)