Viewing 15 posts - 241 through 255 (of 1,988 total)
Which are not being used/used rarely ?
The system view sys.dm_db_index_usage_stats will give you some useful information about index use, keep in mind this is since SQL Server was last restarted.
Which...
April 30, 2021 at 8:25 pm
I guess it's not reporting the file name back in the error when you use a variable, you'll have to add that explicitly.
April 30, 2021 at 5:41 pm
Ah right it's sending the errors to error output not standard out so it's not getting caught. You can add this at the end of the entire script or after...
April 30, 2021 at 2:02 pm
The issue is that Out-File overwrites the file so you're only seeing the last result. You can either use -Append or Add-Content instead of Out-File.
April 29, 2021 at 5:55 pm
Good lord... the things MS spends money on. This seems a bit ridiculous to me especially when there's still so much in the product that needs to be...
April 29, 2021 at 3:04 pm
I would think if your table is large enough for a column store index it's probably not a good candidate for memory optimized?
April 29, 2021 at 2:22 pm
What do they mean by access to their data? Do they want full access to the entire database? Are there specific datasets they want to analyze? Depending on what they...
April 27, 2021 at 3:24 pm
We went back to our normal schedule last week which is 1 day at home 4 days in office last week. And while I miss having a dress code of...
April 23, 2021 at 2:59 pm
Well your for each loop should have a variable with the current file it's processing. You'll need to do script foo on that to get the date out of it. ...
April 15, 2021 at 3:42 pm
If these are validations that can't be done inline on your original query you could just make a cursor on that original query and loop through that. Do the validation...
April 14, 2021 at 9:43 pm
Hmm... you can insert records directly from a select statement, there's no need to insert them one at a time in a loop.
April 14, 2021 at 4:05 pm
Why are you using the while loop at all?
Would just this work for the entire thing if you just want a list of records with a row num?
April 14, 2021 at 3:48 pm
What is returned by your original query?
select dostamp,dilno,
ROW_NUMBER() OVER ( Order by datepart(yy,do.data), dostamp) row_num
FROM DO
where datepart(yy,do.data) = 2020
group by datepart(yy,do.data), dostamp,dilno
having sum((edebfin+edebana ) - (ecrefin...
April 14, 2021 at 3:12 pm
What is the primary key of the DO table if you script out the full key?
April 14, 2021 at 3:08 pm
Not all bugs are created equal nor are the root causes of all bugs nor are all development teams. Some bugs are trivials, which is why they weren't...
April 14, 2021 at 2:54 pm
Viewing 15 posts - 241 through 255 (of 1,988 total)