Activity overview
Latest activity by Stephen Lyall
SQB service is no longer running
I recieve the following error when attempting a restore using the GUI:
KBPDSQLODS01: Restore - Failed
==============================
Restoring full backup - Failed
This operation failed with error...
Error uprading from SQL Backup v5.1.0.0.2781 to v5.3.0.178
During the server component install this message appears.
'Server Component Installallation - Failed'
'The SQL Backup extended stored procedure DLL version is 5.1.0.2781, and 5.3.0.178 was expected...
No it didn't. I ran:
SELECT IS_SRVROLEMEMBER('sysadmin', 'CORP\sqlsrv')
SETUSER 'CORP\sqlsrv'
use _dba
SELECT IS_SRVROLEMEMBER('sysadmin', 'CORP\sqlsrv')
SETUSER 'CORP\sqlsrv'
use master
SELECT IS_SRVROLEMEMBER('sysadmin', 'CORP\sqlsrv')
SETUSER 'CORP\sqlsrv'
use model
SELECT IS_SRVROLEMEMBER('sysadmin', 'CORP\sqlsrv')
SETUSER 'CORP\sqlsrv'
use msdb
SELECT IS_SRVROLEMEMBER('sysadmin', 'CORP\sqlsrv')
SETUSER 'CORP\sqlsrv'
use SQLBackpTest
SELECT IS_SRVROLEMEMBER('sysadmin', 'CORP\sqlsrv')
SETUSER 'CORP\sqlsrv'
use SQLBackpTest2
SELECT IS_SRVROLEMEMBER('sysadmin', 'CORP\sqlsrv')
SETUSER 'CORP\sqlsrv'
use STB
And all gave a result of '1'. / comments
No it didn't. I ran:
SELECT IS_SRVROLEMEMBER('sysadmin', 'CORP\sqlsrv')
SETUSER 'CORP\sqlsrv'
use _dba
SELECT IS_SRVROLEMEMBER('sysadmin', 'CORP\sqlsrv')
SETUSER 'CORP\sqlsrv'
use master
SELECT IS_...
Excellent thought.
I did as you asked:
use _dba
use master
use model
use msdb
use SQLBackpTest
use SQLBackpTest2
use STB
Completes successfully. / comments
Excellent thought.
I did as you asked:
use _dba
use master
use model
use msdb
use SQLBackpTest
use SQLBackpTest2
use STB
Completes successfully.
The account 'CORP\sqlsrv' runs the SQL Backup service, the SQL Server service, and the SQL Agent service.
So I signed onto the server as 'CORP\sqlsrv'.
And then execute the code posted previously from query analyzer.
In each case I start in the master database.
By changing the line 'USE [<database name>] ' to each of the databases on the server in turn the script runs ok, except for two databases.
sp_who2 shows the process as runnable. There is no blocking at all on the server. / comments
The account 'CORP\sqlsrv' runs the SQL Backup service, the SQL Server service, and the SQL Agent service.
So I signed onto the server as 'CORP\sqlsrv'.
And then execute the code posted previously f...
Nudge. / comments
Nudge.
If the "USE [Database]" statement is removed (line 17?) the code will execute correctly.
What is interesting is that the sode below the IF statement is being executed when it shouldn't.
If you run "DECLARE @hasrights integer
SELECT @hasrights = IS_SRVROLEMEMBER('sysadmin', 'CORP\SQLSRV')
PRINT @hasrights -- I added this to see what the result is"
You get 1 as the result of the PRINT. On that basis the "IF (@hasrights = 0) OR (@hasrights IS NULL)" should not be exeuted. However it is.
I am logged on to the server as 'CORP\sqlsrv'. So even though that account is a sysadmin it is not being recognised as such. / comments
If the "USE [Database]" statement is removed (line 17?) the code will execute correctly.
What is interesting is that the sode below the IF statement is being executed when it shouldn't.
If you run ...
I changed the database to master, and fully qualified the stored procedure that calls SQLBackup. Works fine for one db, but not the other. / comments
I changed the database to master, and fully qualified the stored procedure that calls SQLBackup. Works fine for one db, but not the other.
The only collation problem I could see was http://www.red-gate.com/support/kb/KB200707000071.htm, however we are running a version higher.
Is there any further logging that I can do do provide more information?
The backups do work when the same script is run from query analyzer. / comments
The only collation problem I could see was http://www.red-gate.com/support/kb/KB200707000071.htm, however we are running a version higher.
Is there any further logging that I can do do provide more...