Comments
Sort by recent activity
Hi
Ben, i tried using SQL Compare and it shows me the same error "Unable to cast object of type 'System.DBNull' to type 'System.String'.
Tanya, i checked and the dbo user is mapped with my user 'dba' which is sysadmin and still it doesn't works, also databases as you said were not taken offline.
I forgot to tell the title from the error message, it says "SQL Prompt could not retrieve the database schema", the other text i posted was the error details.
Thanks for the help in advance. / comments
Hi
Ben, i tried using SQL Compare and it shows me the same error "Unable to cast object of type 'System.DBNull' to type 'System.String'.
Tanya, i checked and the dbo user is mapped with my user 'db...
Hi Petey
I was running the testing backup rights script and found something that happens with the databases I can't backup, while running the query from the Management Studio connected to another database (other than the one I can't backup) the script won't finish running (I left the script running more than 30 minutes and nothing) and I noticed that in the middle of the script (inside the first 'IF' statement where it verifies if the user is sysadmin) it has the following statement:
USE [MonitorMedios]
where 'MonitorMedios' is the database I can't backup, but when I remove the use statement the query doesn't delay even 1 second, it runs fast, also if I previously use the Use statement to connect to the database MonitorMedio it runs in 0 seconds.
I don't even know why does this affects the script because it should never get inside the IF becuase my user is a sysadmin, maybe is something with the compiler.
Thanks / comments
Hi Petey
I was running the testing backup rights script and found something that happens with the databases I can't backup, while running the query from the Management Studio connected to another d...
Dear Petey
Sorry, have you found any solution for my problem?
Thanks. / comments
Dear Petey
Sorry, have you found any solution for my problem?
Thanks.
Hi petey, thanks for the info, I finally got the testing rights script, but when I try to run it everything seems fine, in the following validation:
DECLARE @hasrights INTEGER
SELECT @hasrights = IS_SRVROLEMEMBER('sysadmin', 'dba')
IF ( @hasrights = 0 )
Which is the very first 'IF' from the script @hasrights value is 1 and finally the script shows me the @hasrights column with 1 and the database name that i can't make backup from.
dba is the user i have configured for SQL Backup and it has sysadmin rights.
Thanks. / comments
Hi petey, thanks for the info, I finally got the testing rights script, but when I try to run it everything seems fine, in the following validation:
DECLARE @hasrights INTEGER
SELECT @hasrights = ...
No, there's not a CommandTiemout setting in the registry folder, should I create one? / comments
No, there's not a CommandTiemout setting in the registry folder, should I create one?
Hi petey
I tried to run the profiler while sql backup was running, also while it was doing a database backup and the only data text profiler shows me from SQL Backup that says something like test is the following:
-- sp_verify_job_identifiers IF (@sqlagent_starting_test = 'TEST')
or
-- sp_help_jobschedule EXECUTE @retval = sp_verify_job_identifiers '@job_name', '@job_id', @job_name OUTPUT, @job_id OUTPUT, 'NO_TEST'
Otherwise i can't see in the profiler the -- Testing for BACKUP rights.
I am looking all the TSQL events in profiler.
Thanks. / comments
Hi petey
I tried to run the profiler while sql backup was running, also while it was doing a database backup and the only data text profiler shows me from SQL Backup that says something like test i...
Here's the log file content:
SQL Backup log file 5.3.0.178
-SQL "BACKUP DATABASE [MonitorMedios] TO DISK = 'E:\BackupSW\<AUTO>.sqb' WITH COMPRESSION = 1 "
ERRORS AND WARNINGS
6/17/2008 11:11:49 AM: Backing up MonitorMedios (full database) to:
6/17/2008 11:11:49 AM: E:\BackupSW\MonitorMedios_20080617_111149.sqb
6/17/2008 11:16:51 AM: Error 880: BACKUP DATABASE permission denied in database: (MonitorMedios)
6/17/2008 11:16:51 AM: Timeout expired / comments
Here's the log file content:
SQL Backup log file 5.3.0.178
-SQL "BACKUP DATABASE [MonitorMedios] TO DISK = 'E:\BackupSW\<AUTO>.sqb' WITH COMPRESSION = 1 "
ERRORS AND WARNINGS
6/17/2008 11:11:49 AM...
Where's the script SQL Backup uses for backup rights? do you mean runing the backup script SQL Backup creates for backing up the conflicting database? / comments
Where's the script SQL Backup uses for backup rights? do you mean runing the backup script SQL Backup creates for backing up the conflicting database?