Viewing 15 posts - 24,676 through 24,690 (of 26,490 total)
Here is some code from my backup process that provides a datetime stamp for my transaction log backup files.
declare @CurrDate datetime;
set @CurrDate = getdate();
select N'_' +
...
June 6, 2008 at 7:32 am
tim.pinder (6/6/2008)
Lynn Pettis (6/5/2008)
What does the data in the following fields look like:[INITIAL_ASSESSMENT_TIME] (char(4))
[TIME_SEEN_FOR_TREATMENT] (char(4))
[ATTENDANCE_CONCLUSION_TIME] (char(4))
[DEPARTURE_TIME] (char(4))
😎
Hi Lynn
It's just a four digit number.
Okay, but 9999 is a four digit number....
June 6, 2008 at 6:40 am
That comes to this, do you have x years experience or 1 year experience x times over. I have seen both. I believe I am in the former...
June 5, 2008 at 5:29 pm
I'll do a little digging. Second question, though, could you use a uniquely named global temp table (##Temp01)?
😎
June 5, 2008 at 4:33 pm
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
Viewing 15 posts - 24,676 through 24,690 (of 26,490 total)