Viewing 10 posts - 1 through 11 (of 11 total)
Hi Guys!
when I run this module to my database refresh job it runs good but when it get any bad backup file the job quit and shows the same error...
February 27, 2008 at 2:35 pm
Hi!
Instead of giving database path I want to give database name by using parameter. Itried following script
DECLARE @vcText int
,@db varchar(50)
set @db='msdb'
EXEC @vcText = master..xp_restore_verifyonly @filename='\\ctsqladp01\Backup$\InstA\'+@db+'.lsb'
But It shows the error below:
Msg...
February 27, 2008 at 10:33 am
Hi Dave!
Now I am getting the following Error. It runs but showing some extra error messagw which I try to avoid.Any Idea?
Msg 536, Level 16, State 5, Line 5
Invalid length...
February 27, 2008 at 8:46 am
Hi Dave!
I got following error from your modified script
Msg 102, Level 15, State 1, Line 6
Incorrect syntax near ')'.
It looks to me okay. But something is wrong there. Here i...
February 27, 2008 at 8:31 am
Right I just want to grab 50204 for testing further conditions not the error text.
Thank you.
Mohammad Aziz
February 27, 2008 at 8:16 am
If I run th following command(for good DB):
create table #a ( aline varchar(max))
DECLARE @vcText varchar(200)
EXEC @vcText = master..xp_restore_verifyonly @filename='\\ctsqladp01\Backup$\InstA\msdb.lsb'
INSERT INTO #a (aline)
VALUES (@vcText)
if exists (select * from #a where aline='0')
BEGIN
print...
February 27, 2008 at 7:51 am
Exactly, Can you give me more details please.
Thank you.
Mohammad
February 27, 2008 at 7:42 am
Hi Dave!
I appreciate your help. But the command return text message which I need to capture for my further analysis. This query shows 0 if the backup file is good...
February 27, 2008 at 7:35 am
Hi Adam!
your previous query doesn't show any error, that shows empty table that is not contain any data. And your modified query shows all the log information. Can you tell...
February 27, 2008 at 7:31 am
I tried this before that doesn't work.
Thank you.
Mohammad Aziz
February 26, 2008 at 3:16 pm
Viewing 10 posts - 1 through 11 (of 11 total)