Viewing 15 posts - 481 through 495 (of 7,191 total)
Please will you post the whole script? I suspect that you just need to put double quotes at the beginning and end of the path variable when you use it,...
July 24, 2019 at 11:04 am
It's difficult to help you without any table DDL and sample data. However, if you don't want the debit and credit amounts to appear separately in your result set, don't...
July 19, 2019 at 11:07 am
I suspect that it's something to do with having the same name for your subquery (details) as for the underlying table (Details). Try a case-sensitive search and replace and change...
July 15, 2019 at 3:24 pm
Best to avoid making the database single-user in the first place. But if you can't avoid it, you might try this:
ALTER DATABASE MyDatabase SET MULTI_USER WITH ROLLBACK...
July 15, 2019 at 3:12 pm
I suppose it depends what the DBA's job description is. But usually I'd say that designing a data warehouse would be the responsibility of a developer or data architect. A...
July 15, 2019 at 12:35 pm
OK, please post the login failure message(s) from the errorlog, and the result of this query:
SELECT type
FROM sys.server_principals
WHERE name = 'SVCINFODEVEL'
John
July 15, 2019 at 12:27 pm
(1) Grant the service account the necessary database access on the server
(2) Configure the application on each PC to run under the service account
John
July 15, 2019 at 10:35 am
I typed "sql bridge table" into my favourite search engine and got a few promising results. Another term for it is "junction table" - you may get some more results...
July 15, 2019 at 9:57 am
Yes, you can do that.
John
July 15, 2019 at 9:53 am
Have you tried using DATEPART(week)?
John
July 12, 2019 at 3:15 pm
One way to do it would be to dump the results of sp_whoisactive into a temp table and filter out statements not related to index maintenance.
John
July 10, 2019 at 2:52 pm
Have a read through this. It covers the issue you're having.
John
Edit: oops - didn't see Jonathan's reply
July 10, 2019 at 2:47 pm
Yes - by all means do a one-off shrink after you've truncated all those tables, but don't set auto-shrink on, otherwise you'll be wasting resources shrinking and growing, shrinking and...
July 8, 2019 at 3:35 pm
Maybe you just need to lose "FROM (" from the first line?
John
Edit - or do you just need a closing bracket at the very end?
June 28, 2019 at 9:46 am
If you change EXEC (@SQL) to PRINT @sql, do you still get the error? If not, the error is in the dynamic SQL. If you eyeball the @sql output, you...
June 28, 2019 at 9:37 am
Viewing 15 posts - 481 through 495 (of 7,191 total)