Viewing 15 posts - 781 through 795 (of 2,857 total)
My first thought would be firewall or permissions.
Permissions could be a problem if the SQL Server Service account (or Agent service account or the Polybase service account... not 100% certain...
November 15, 2021 at 5:33 pm
type = 'U' means you are grabbing all "user" type of login. To SQL, a "human" and a "non-human" are identical. It is just a login.
How would SQL know the...
November 15, 2021 at 3:12 pm
I would go with that approach UNLESS the full CHECKDB fails on the restored DB. If it fails, I would then run a full on prod as well to ensure...
November 15, 2021 at 2:59 pm
Pretty sure that my advice above would apply to views as well. Profiler or plan cache will capture the TSQL being run and then you can review and audit it.
The...
November 12, 2021 at 5:23 pm
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
Viewing 15 posts - 781 through 795 (of 2,857 total)