Viewing 15 posts - 31 through 45 (of 185 total)
Ok if I use the raw backup files without trimming the file names I STILL can an error...I am banging my head against the wall on this....
Here is my script...
November 17, 2008 at 2:01 pm
I have a script that strips the datetime off the file before restoration. This works fine on the full backup database restore.
Here it is for differential
/* Unzip SmartStream...
November 17, 2008 at 10:12 am
More information to assist
SQL Server 2005 SP2 Standard Edition
Databases are set to 80 compatibility (as per the vendor)
November 17, 2008 at 10:04 am
Sorry here is the backup code
DECLARE
@SQL nvarchar(300),
@date varchar(20)
SET @date = REPLACE(CONVERT(varchar,GETDATE(),101),'/','')
SET @SQL = N'
BACKUP DATABASE DBSallc
TO DISK = ''\\[servername]\SQLBACKUP$\[servername]\Data\DBSallc' + @date + '.bak''
WITH FORMAT
RESTORE VERIFYONLY FROM DISK =N''\\[servername]\SQLBACKUP$\[servername]\Data\DBSallc'...
November 17, 2008 at 9:58 am
ALTER DATABASE DBSallc SET single_user WITH ROLLBACK IMMEDIATE
RESTORE DATABASE DBSallc from disk =
'E:\SQL Backup\Data\DBSallc.bak' WITH REPLACE,
MOVE 'DBSallc_data' TO 'D:\Data\DBSallc.mdf',
MOVE 'DBSallc_log' TO 'E:\DataLog\DBSallc.ldf',
NORECOVERY
RESTORE DATABASE DBSallc from disk =
'E:\SQL Backup\Diff\DBSallc.bak' WITH REPLACE,
MOVE...
November 17, 2008 at 9:53 am
Thanks...I was going that route my only concern is that xp_cmdshell will only error if it cannot fire off the .bat file not properly executing the command within the .bat...
October 22, 2008 at 1:37 pm
Ugh...Ken thanks that formats it correctly but now the script will not run. Altering the quotes causes the file renaming to not work.
If I take this text and run...
October 22, 2008 at 12:23 pm
One more thing i cannot find it but does anyone know the parameter for unzip to not extract the results into their own folders?
October 21, 2008 at 1:14 pm
Here is my final code I would like a second pair of eyes...
DECLARE db_cursor CURSOR READ_ONLY FOR
SELECT name FROM sys.databases
WHERE name NOT IN ('master','tempdb','model','msdb')
OPEN db_cursor
FETCH NEXT FROM db_cursor...
October 21, 2008 at 1:05 pm
No that would be too easy.... unfortunately 98% are 7 characters but two are not. One is 9 (DBSCOMMON) and one is six (RevRec)
I am working with this shell...
October 21, 2008 at 12:48 pm
Prasanna Sridharan (10/15/2008)
Hi jsheldon,Were you able to resolve the issue, even i am facing the same. probably i need to reinstall the sql.
Unfortunately I have not...and I cannot reinstall as...
October 16, 2008 at 7:50 am
Sorry my examples were not clear I meant to say 'Log into the Server where SQL server resides'
I understand the difference I am just going through our change management to...
October 14, 2008 at 2:03 pm
rbarryyoung (10/14/2008)
jsheldon (10/14/2008)
October 14, 2008 at 1:40 pm
rbarryyoung (10/14/2008)
jsheldon (10/14/2008)
rbarryyoung (10/14/2008)
jsheldon (10/14/2008)If I run the stored procedure under my domain account it runs successfully.
Two questions:
1) Does the '##xp_cmdshell_proxy_account##' credential exist? If so, what is it?
2) What...
October 14, 2008 at 12:36 pm
rbarryyoung (10/14/2008)
xp_cmdshell Proxy Account
When it is called by a user that is not a member of the sysadmin fixed server role,...
October 14, 2008 at 12:05 pm
Viewing 15 posts - 31 through 45 (of 185 total)