Viewing 15 posts - 1,816 through 1,830 (of 7,191 total)
Thom
I think you just use the "SID=" option in your CREATE LOGIN statement. You get the SID from sys.sql_logins.
John
February 13, 2017 at 9:03 am
This doesn't use a correlated subquery, so it should perform better, especially if you have an index on Date1. Parts of it are shamelessly borrowed from this article.
February 13, 2017 at 8:41 am
In your case, I don't imagine there'd be much difference. If you need to join tables, you need to join tables, whether you do that in a view or in...
February 13, 2017 at 8:05 am
Thom
If you're rebuilding the same server on similar hardware but in a different place, then I can't see much harm in that. But even then you'd want to...
February 13, 2017 at 7:12 am
Vin
I can't reconcile your two statements "It all works fine magically" and "the process will fail as it's meant to". Why would anyone deliberately set up a restore...
February 13, 2017 at 5:32 am
Chris is right. Look at the differences between the servers - both the environment and the actual SQL that's running. I think you're barking up the wrong tree with MAXDOP....
February 11, 2017 at 7:27 am
Does your UPDATE statement have a WHERE clause? If so, it's likely that it'll update some, but not all, rows in the table. I wouldn't call that a discrepancy. ("5039...
February 10, 2017 at 9:41 am
You're welcome. Let me know if you find a database where file_id 2 isn't a log file - I couldn't!
You never answered my question about why you're doing this...
February 10, 2017 at 8:35 am
inside this topic, there is a link http://fard-solutions.com/sql-server-memory-capacity-planning/.
it...
February 10, 2017 at 7:49 am
When was that second memory calculator posted online? Technology changes, and MemToLeave isn't an issue in modern versions of SQL Server. The memory allocated to the plan cache is included...
February 10, 2017 at 7:26 am
Yes, I think that is correct, although of course you could try it for yourself by clearing the plan cache and then running a statement that you know won't be...
February 10, 2017 at 7:09 am
Using a mapped drive won't work: the drive is mapped in your user context, but the xp_cmdshell statements run in the context of the SQL Server service account. Is the...
February 10, 2017 at 5:02 am
SELECT 'USE...February 10, 2017 at 4:54 am
Whether the statement, batch or connection is aborted depends on the severity of the error. I don't think it depends on whether it's called from a SQL...
February 10, 2017 at 3:31 am
I don't think you can do that easily. This article explains how you can query the package XML - that may or may not help if your SQL...
February 10, 2017 at 3:26 am
Viewing 15 posts - 1,816 through 1,830 (of 7,191 total)