Viewing 15 posts - 24,676 through 24,690 (of 26,486 total)
I'll have to do some more research, but I seem to remember reading somewhere that TRY/CATCH in T-SQL doesn't catch all errors. I'll try and find where I saw...
June 5, 2008 at 4:17 pm
James Raddock (6/5/2008)
I don't say I'm a SQL Server expert, I say I'm an expert at SQL Server 2005. Unless you know everything...
June 5, 2008 at 4:06 pm
Nope. You have to start all over with the initial restore from your full backup.
😎
June 5, 2008 at 3:51 pm
The extended stored procedure xp_getfiledetails no longer exists in SQL Server 2005. I just double checked my servers (I have both SQL Server 2000 and SQL Server 2005 still)...
June 5, 2008 at 3:41 pm
Your code:
RESTORE DATABASE [db1]
FROM DISK = N'J:\SQLBackups\db1_backup_200805310215.bak'
WITH FILE = 1,
MOVE N'Reporting_Data' TO N'e:\Microsoft SQL Server\MSSQL\Data\db1.MDF',
MOVE N'Reporting_Log' TO N'd:\Microsoft SQL Server\MSSQL\Logs\db1_Log.LDF', ...
June 5, 2008 at 3:31 pm
I got it right. When I read the question, I interpreted it to mean will the the two queries return the same result set. Obviously, some people read...
June 5, 2008 at 3:25 pm
One thing I will suggest (strongly), test it in a test DB first to ensure it does what you expect.
June 5, 2008 at 3:15 pm
Sometimes going off topic is refreshing. I've also seen it spark other thoughts and ideas. Sort of like stepping back from the trees so you can see the...
June 5, 2008 at 3:04 pm
Backup the production database and restore it to your test instance.
😎
June 5, 2008 at 2:17 pm
Do a search for this undocumented Microsoft stored procedure: sys.sp_MSforeachtable.
😎
June 5, 2008 at 2:13 pm
Yes. REPLACE tells SQL to overwrite an existing database.
😎
June 5, 2008 at 1:57 pm
Hit BOL (Books On-Line). If, after reading, you still have questions just post your question on SSC and I'm sure some one will help you out.
😎
June 5, 2008 at 1:46 pm
You'll also have to secure the backup file itself. The file is not encrypted, and if the system admin can move the backup file to a local system (desktop)...
June 5, 2008 at 1:32 pm
First, the while loop makes this code RBAR (a Modenism for Row By Agonizing Row). Also, it looks like it may have to do a table scan for each...
June 5, 2008 at 1:17 pm
And here is my version:
set nocount on;
create table dbo.OrderHdr (
OrderID int,
FirstName varchar(25),
LastName varchar(25),
OrderDate datetime,
...
June 5, 2008 at 1:06 pm
Viewing 15 posts - 24,676 through 24,690 (of 26,486 total)