Viewing 15 posts - 421 through 435 (of 1,315 total)
If you are using Enterprise Edition you could create a snapshot of the subscriber, load the data warehouse from the snapshot, and drop the snapshot when the load is finished....
December 6, 2007 at 8:59 am
Try looking at the msdb.dbo.backup___ tables. They will have the name of every backup file written, the first & last LSNs.
The backup history in the tables should go back...
December 6, 2007 at 8:39 am
I used to do backups over a network that would take at least 4.5 hours for a 200GB database. The target storage device had some idiosyncracies that I won't...
December 6, 2007 at 8:23 am
You definately need to know all the details. Even on a SAN you need to worry about putting data files, log files, and tempdb on separate physical disks. ...
December 6, 2007 at 8:04 am
Now, for the bad news. Varchar(MAX), NVarchar(Max) and VarBinary(Max) do NOT get stored on the data pages. They are always stored in a different type of page than...
November 29, 2007 at 7:02 am
How about using the -o argument to specify the output file?
DECLARE @cmd VARCHAR(255)
set @cmd = 'OSQL -E -Q "Select filepath, filetree, filename from ccs.dbo.Work_DBA_Purge" -O -o T:\temp\myfile.txt'
EXEC xp_cmdshell @cmd
October 18, 2007 at 7:03 am
You could shorten that to "IF APP_NAME() != 'MyAppName'", which would probably be better than directly referencing the sysprocesses compatability view.
October 12, 2007 at 5:32 pm
The most interesting part of this process to me is creating the script to restore all the databases after you've figured out how to zip, copy, and unzip the backup...
October 12, 2007 at 5:14 pm
I agree that only being able to do backups to tape is a bad situation. Since you don't have room to restore a copy of the database, your only...
October 12, 2007 at 9:09 am
In SQL 2005 you would have a much easier time attacking this problem with Integration Services. But if you're stuck with SQL 2000, here's one way.
1 Write a SQL...
October 11, 2007 at 4:30 pm
WinZip Pro costs a whopping $50. (The Pro version is needed to use the command-line addon). It can create self-extracting files, so you only need to pay for...
October 11, 2007 at 1:14 pm
If you pay for a registered copy of WinZip you can get the command-line addon which would happily process multiple files. It is very inexpensive, but I believe there...
October 11, 2007 at 12:51 pm
All data is stored on disk, and switching to varchar(max) will not affect any select or update or backup/restore statements.
If you're really interested enough to read about how it is...
October 11, 2007 at 12:42 pm
I would try using brackets to quote database, table, and index names instead of quotes. The sp_defragment_indexes procedure you reference uses RTRIM(@objectowner) + '.' + RTRIM(@tablename), which will fail...
October 9, 2007 at 7:39 am
To elaborate on ALZDBA's solution a little to make it clear what he was proposing:
select facilityname
, sum(case when condition1 then 1 else 0 end ) as whatevernameyouwannegiveit
, sum(case when condition2...
October 8, 2007 at 6:43 am
Viewing 15 posts - 421 through 435 (of 1,315 total)