Viewing 15 posts - 811 through 825 (of 2,883 total)
If there is any data you would be upset or in trouble for if it got leaked, I would encrypt it.
My opinion - there isn't anything worth stealing in the...
November 10, 2021 at 7:48 pm
One approach that MAY work for you would be to break it up into multiple steps.
Since pulling the inner queries into a temp table improves performance, why not just use...
November 10, 2021 at 6:45 pm
Looking at the execution plan, I am thinking that adding an index on SubscriberID may help as you are using those in the WHERE clause.
Your estimated number of rows is...
November 10, 2021 at 4:32 pm
There is a good article on checkdb here:
https://www.mssqltips.com/sqlservertip/2399/minimize-performance-impact-of-sql-server-dbcc-checkdb/
I do recommend you read that as it addresses your concerns with PHYSICAL_ONLY as well as using the backup-restore-checkdb approach.
November 10, 2021 at 3:16 pm
The best way to work with performance issues is to look at the execution plan. Could you post the execution plan for your query?
When I run the above, it is...
November 10, 2021 at 3:06 pm
Alternately, rather than dropping the tables and recreating them (not a process I generally do in a stored procedure), how about doing a TRUNCATE/DELETE at the start and an INSERT...
November 9, 2021 at 4:33 pm
One approach would be to modify them and add in a logging table to capture when the stored procedure is called.
Another way would be to start a profiler trace and...
November 9, 2021 at 4:25 pm
Since you get an authentication error, I would be willing to bet the problem is with the authentication somewhere.
Did a quick google, and found this:
https://www.liquidweb.com/kb/troubleshooting-microsoft-sql-server-error-18456-login-failed-user/
Not specific to Azure, but should...
November 4, 2021 at 9:06 pm
I think the problem is that a CASE statement cannot return 2 values like that.
The idea of a CASE statement in SQL is that if the lookup value is X...
November 4, 2021 at 8:44 pm
For me, I don't manage the hardware side of things, so I care less about the hardware and actually have very little say in what hardware I get. It is...
November 4, 2021 at 2:17 pm
You say you are using an application - is there a reason you are not just pulling the Excel data in through that rather than using SQL Server as a...
November 3, 2021 at 2:03 pm
To me it looks like your statistics are out of date. Your estimates are WAY off from the actuals which usually indicates bad statistics.
I would start there.
Another thing - I...
November 3, 2021 at 1:41 pm
I agree with both Phil and Michael. Phil's comment about query store sounds like it is similar to Oracle's AWR. Or so is my my understanding of query store.
And Michael...
November 2, 2021 at 8:53 pm
My opinion - I wouldn't reinvent the wheel. There are a LOT of good monitoring tools out there and I would just use one of those.
The good SQL monitoring tools...
November 1, 2021 at 4:56 pm
Script debugging is always interesting. The "best" (ie only) way I know how to do it is to find good breakpoints and run your code up until that breakpoint. Next,...
November 1, 2021 at 2:46 pm
Viewing 15 posts - 811 through 825 (of 2,883 total)