Viewing 15 posts - 1,516 through 1,530 (of 3,008 total)
How to Connect to a SQL 2005 Server When You Are Completely Locked Out
http://www.sqlservercentral.com/Forums/Topic812701-471-1.aspx
January 13, 2010 at 9:59 pm
It is really a business decision on the part of Microsoft not to spend the resources to add a feature that will only rarely be needed.
If there is really a...
January 13, 2010 at 1:38 pm
It is likely that the select queries are timing out because of blocks by the deletes. You should consider setting the database to read committted snapshot to prevent deletes...
January 11, 2010 at 9:16 am
san43 (1/11/2010)
January 11, 2010 at 8:21 am
Just convert the DATETIME value to datatype DATE.
select
MyDate = convert(date,MyDateTime),
MyDateTime
from
( -- Test Data
Select MyDateTime = getdate()union all
select dateadd(hh,-11,getdate())union all
select dateadd(hh, 11,getdate())union all
select dateadd(hh, 12,getdate())
) a
Results:
MyDate MyDateTime
----------...
December 29, 2009 at 1:46 pm
select
HoursWorked =
right('0000000000'+convert(varchar(10),convert(int,a.HoursWorked*100)),6)
from
( -- Test Data
select HoursWorked = 2080.00 union all
select HoursWorked = 780.50
) a
Results:
HoursWorked
-----------
208000
078050
December 24, 2009 at 10:25 am
I often schedule a job to run sp_updatestats on each non-system database on a daily basis.
This procedure was greatly improved with SQL 2005 to only do updates when they are...
December 23, 2009 at 6:46 pm
I test all drives with 8KB, 16KB, 32KB, 64KB, 128KB and 256KB block sizes for sequential read, sequential write, random read, and random write for a total of 24 tests...
December 23, 2009 at 6:31 pm
maria_gallagher (11/29/2009)
The script worked great. It's very detailed!
Is there a way to stop rounding of the File_size_used and file_size_unused values? Currently it may display 7606, while in Taskpad view...
November 30, 2009 at 6:44 pm
This script gets the file information for every database on a server, inserts it into temp table, and queries it multiple ways to give various levels of analysis of file...
November 27, 2009 at 7:57 am
If the table you are selecting into will later have a clustered index created on it, it is usually faster to create the table first and insert the data in...
November 18, 2009 at 12:08 pm
You can also delete the history with a maintenance plan.
There is a pre-defined task just for that, the History Cleanup Task.
November 13, 2009 at 9:12 am
50 MB may be a little small. I usually use at least 100 MB, but for a database that I expect to grow fairly often, 500 MB or more...
November 11, 2009 at 11:56 am
Piotr.Rodak (11/10/2009)
...There is no point in filtering out rows that did not change from the update statement in my opinion, as updating all rows will not change rows that are...
November 10, 2009 at 4:10 pm
Viewing 15 posts - 1,516 through 1,530 (of 3,008 total)