Viewing 15 posts - 1,126 through 1,140 (of 3,011 total)
Or create an empty database one time, make a snapshot of it, run testing, and then restore from the snapshot before you start your next test.
November 3, 2010 at 1:50 pm
Kit G (11/3/2010)
GSquared (11/3/2010)
November 3, 2010 at 10:34 am
select
DT1,
DT2,
MonthDiff =
datediff(mm,dateadd(dd,-14,a.DT1),dateadd(dd,-14,b.DT2))
from
( -- Test Data
select DT1=convert(datetime,'20100214')union all
select DT1=convert(datetime,'20100215')
) a
cross join
( -- Test Data
select DT2=convert(datetime,'20101114')union all
select DT2=convert(datetime,'20101115')
) b
order by
DT1,
DT2
Results:
DT1 ...
November 3, 2010 at 8:49 am
Geoff A (11/2/2010)
they do not say NOT to do it, but rather say use caution;
That link is about locating database files, not backups, on a share or NAS.
We backup several...
November 2, 2010 at 12:30 pm
timothy bates (11/2/2010)
November 2, 2010 at 10:31 am
For best accuracy, it is usually better to have all multiplication before all division operations in any language.
select
round(
( 100.00 * (CAST(b.MonthPop AS decimal(10, 2))-CAST(a.MonthPop AS decimal(10, 2)) ) )
/
CAST(a.MonthPop...
November 1, 2010 at 12:12 pm
Why not just set the databases to simple recovery mode, and leave them like that?
November 1, 2010 at 10:01 am
You come to work in the morning to find that all the disks in the SAN cabinet were destroyed by a direct lightning hit and none of the databases are...
October 29, 2010 at 12:26 pm
Events may have more dimension attributes than just time and they might have multiple date ranges involved. For example, a book signing might be in store 1 on Jan...
October 29, 2010 at 10:35 am
Did you set the database diagram to preview the page breaks so that you could see if they overlay page breaks? (Right-click on the back ground and click view...
October 29, 2010 at 10:17 am
If you are using DATETIME, these are better ways to get today at 00:00:00.000. The nested DATEADD and DATEDIFF are a more efficient way to do this conversion...
October 29, 2010 at 10:13 am
John Bates-251278 (10/29/2010)
This is what I have: Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64)
No SPs out yet for R2 - you...
October 29, 2010 at 9:46 am
As I said before:
SQL Server tables do not have reserved space.
October 28, 2010 at 5:36 pm
If the backup was done to multiple files, you have to restore from all of them together.
If the backup was do to a single file and split into multiple files...
October 28, 2010 at 5:16 pm
order by left(MyColumn,2)
October 28, 2010 at 5:00 pm
Viewing 15 posts - 1,126 through 1,140 (of 3,011 total)