I have a database which has autogrow turned on and is set to grow 10%. My database was 228GB. my database grew last night to a size of 270GB. This...
I was wondering if there is a way to have the result of a case statement be a t-sql statement within a union? If not, is there another way to...
I have a log shipped database that is in read-only mode. I wanted to add a new login to be able to access this database but since it is read-only...
I had tried to run a delete on a table base on rows in another for archiving but the statement ran for over 3 hours and eventually failed because...
I have a fairly basic query and am confused as to why an index is not being used. The query does an index scan the primary key (clustered) index but...
I would like to lower the initial size of tempdb. I have tried running USE master GO ALTER DATABASE tempdb MODIFY FILE (NAME = tempdev, SIZE...
I am trying to update a table in sql server 2000 based on values in a 2005 database. I can insert successfully but when I try to update I receive...
Is it possible to have a CTE within a CTE? or would I have to have a derived table within a CTE expression? have provided simple example. WITH...
I have a poorly performing view that consists on 3 union-ed sql statement. one of them takes approx 5 min to return results. The execution plan shows...
I have an odd situation occuring. I have two clustered instances of SQL server ( one is 2000 enterprise and 2005 enterprise, both are running on...
I have a very basic query that creates different execution plans in production and test environments. Both environments have similar amount of data...
What is the best way to have MAX (or any aggregate function) in where clause? I am using the query below but performance is really bad. I would...
I am attempting to install Service pack 1 for SQL server 2005 on an active/passive cluster but it is failing while trying to patch the passive node....
I have recently setup log shipping and everything looks to be working correctly except my secondary database is not updating the monitor server. I...
Separate names with a comma.