Viewing 15 posts - 571 through 585 (of 3,011 total)
-- Convert time in milliseconds since 1970-01-01 to datetime
declare @MSTime bigint
set @MSTime = 1276548319093
select DT = dateadd(ms,@MSTime%86400000,(@MSTime/86400000)+25567)
-- Convert datetime to time in milliseconds since 1970-01-01
declare...
June 26, 2012 at 1:11 am
The model database is usually so small that you should just back it up at the same time as the other system databases. My preference is to ceate a...
June 25, 2012 at 12:15 pm
You can use the DATEDIFF function to convert the time to integer seconds and then sum that up.
select
Duration_Seconds = sum( datediff(ss,0,x.call_duration) )
from
MyTable
June 21, 2012 at 2:03 pm
yb751 (6/21/2012)
Michael Valentine Jones (6/21/2012)
In conjunction with this, they could have the web application query the table using the snapshot isolation level (or set the database to read committed snapshot)...
June 21, 2012 at 1:52 pm
Lynn Pettis (6/21/2012)
... prep work
set transaction isolation level...
June 21, 2012 at 1:37 pm
Perry Whittle (6/21/2012)
Michael Valentine Jones (6/20/2012)
execute sp_updatestats
sp_updatestats (Transact-SQL)
http://msdn.microsoft.com/en-us/library/ms173804(v=sql.105).aspx
"...sp_updatestats updates only the statistics that require updating based on...
June 21, 2012 at 1:17 pm
Thomas Stringer (6/20/2012)
Michael Valentine Jones (6/20/2012)
execute sp_updatestats
sp_updatestats (Transact-SQL)
http://msdn.microsoft.com/en-us/library/ms173804(v=sql.105).aspx
"...sp_updatestats updates only the statistics that require updating based on...
June 21, 2012 at 1:10 pm
You could just make things simple and execute this in your database every night:
execute sp_updatestats
sp_updatestats (Transact-SQL)
http://msdn.microsoft.com/en-us/library/ms173804(v=sql.105).aspx
"...sp_updatestats updates only the statistics that require updating based on the rowmodctr information in the...
June 20, 2012 at 5:31 pm
Ray K (6/18/2012)
michael vessey (6/18/2012)
Lynn Pettis (6/11/2012)
How about Mr. Celko? I don't know why, but everytime I read one of his posts my blood pressure rises about 20 points.likewise
Ditto.
They...
June 18, 2012 at 7:52 pm
Cadavre (6/11/2012)
--edit--
Having read through it all, I think it all started due to my laziness in quoting...
June 15, 2012 at 11:55 am
IDENTITY is not meant to maintain an unbroken sequence. It is only meant to quickly produce a new unique value that is higher than the last one that was...
June 15, 2012 at 7:19 am
When you run SQLIO tests it is important to make the test file size large enough that you get a true test, especially for random read and random write, to...
June 14, 2012 at 2:35 pm
GilaMonster (6/9/2012)
Drop all indexes
Drop all foreign keys
Drop all primary keys
Convert all columns in all tables, one at a time...
June 9, 2012 at 10:22 pm
What is the actual format of the strings that you are trying to convert to datetime?
June 5, 2012 at 6:15 pm
Let SQL Server do the work for you.
Just automate the whole thing using a Maintenance Plan to make a full backup at night using a SQL Agent job and automatically...
June 1, 2012 at 4:09 pm
Viewing 15 posts - 571 through 585 (of 3,011 total)