Viewing 15 posts - 616 through 630 (of 1,479 total)
Most chances are that when you added the other column to the index, the index was a covering index. A covering index is an index that is composed of...
April 15, 2010 at 12:42 am
The index tuning wizard works according to the queries that were presented to it. If you have a work load file that has a work load that simulate the...
April 14, 2010 at 6:30 am
Instead of asking this question and wait for an answer just try to create a table with 2 computed columns that one of them is based on the other one....
April 14, 2010 at 1:40 am
I think that in this case you’ll have to use dynamic SQL. Notice that the dynamic SQL won’t recognize the variable that holds the data, so you’ll have to...
April 14, 2010 at 1:33 am
You can read the log with some undocumented commands such as DBCC LOG, but it is very hard to understand the output (I tried it long time ago and gave...
April 12, 2010 at 7:34 am
I have an educated guess:-). I didn’t check it, but if I understand how the profiler works then most chances are that this is what happened. If you...
April 1, 2010 at 8:34 am
Here is one way of doing so. The script bellow creates a script that deletes all orphaned users from each database. Notice that the script is using an...
March 31, 2010 at 4:40 am
When I ran your code I got blank on both lines. I ran it on SQL Server 2005.
Adi
March 31, 2010 at 4:18 am
When you create a database snapshot, the snap shot doesn’t hold any data. Each page that is modified for the first time in the original database, is copied to...
March 31, 2010 at 3:23 am
You can have few instances of SQL Server on the same machine. You can also have each instance with a different version of SQL Server (assuming that you don’t...
March 31, 2010 at 3:09 am
Unlike other languages in T-SQL case is not use as a control statements that decides which part of the code should be run (Sort of an improved IF statement). ...
March 25, 2010 at 4:01 am
This is taken from BOL:
“Execute permissions for sp_send_dbmail default to all members of the DatabaseMailUser database role in the msdb database. However, when the user sending the message does not...
March 25, 2010 at 3:22 am
How do you define which record is the second record? When you have 2 values do you have a rule that according to it you know which one to...
March 23, 2010 at 6:23 am
When your first dynamic SQL finishes its run, the session returns to work with the original database that it was set to work with before the dynamic SQL ran. ...
March 23, 2010 at 4:55 am
I think that you need to drop the old constraint and add the new constraint with the cascading delete:
alter table AAA drop constraint OldConstraintName
alter table AAA add constraint FK_ABABA foreign...
March 17, 2010 at 5:08 am
Viewing 15 posts - 616 through 630 (of 1,479 total)