MIS Systems Thread, SIMs backup script after SQL 2005 migration failing... in Technical; After the migration to 2005 our SIMs backup script is failing with the error login failed
this is the script...
...
-
19th November 2007, 10:12 AM #1 SIMs backup script after SQL 2005 migration failing...
After the migration to 2005 our SIMs backup script is failing with the error login failed
this is the script...
@ECHO OFF
ECHO YOUR SQL DATABASE IS CURRENTLY BEING BACKED UP, THIS MAY TAKE SEVERAL MINUTES
DBATTACH /AUTO /BACKUP /SERVER=server\SIMS /USER=user /PASSWORD=password /DATABASE=SIMS
I have tried to change the database to SIMS2005 but this still doesn't help. I have tried the sa user and an system manager user. both do not work.
Any other ideas?
-
-
IDG Tech News
-
19th November 2007, 10:32 AM #2 Re: SIMs backup script after SQL 2005 migration failing...
You typically change this bit (not the database name):
/SERVER=server\SIMS2005
-
-
19th November 2007, 01:02 PM #3 Re: SIMs backup script after SQL 2005 migration failing...
I downloaded the latest version of DBAttach.exe (v1.7 I think) and this is my command:
"e:\SQL Server\MSSQL$SIMS\Binn\DbAttach.exe" /SERVER=SERVER /DATABASE="sims" /backup /auto /trusted /user=USER /password=PASSWORD
This works for me.
-
-
19th November 2007, 01:06 PM #4
- Rep Power
- 12
Re: SIMs backup script after SQL 2005 migration failing...
hi this is probally a stupid question but is sims still available during these backups?
-
-
19th November 2007, 01:55 PM #5 Re: SIMs backup script after SQL 2005 migration failing...
Yes, it seems to be. I've used this script to backup the dB during the day and not had any problems. Don't forget, this just creates a zipped backup that you'll then need to backup using your usual method.
-
-
19th November 2007, 02:00 PM #6 Re: SIMs backup script after SQL 2005 migration failing...
Where does dbAttach it store the backup?
-
-
19th November 2007, 03:39 PM #7 Re: SIMs backup script after SQL 2005 migration failing...

Originally Posted by
webman Where does dbAttach it store the backup?
Run SIMS System Manager - Tools - Backup Path to get the path for your system.
It's likely to be "C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\backup\" or similar.
-
-
19th November 2007, 03:41 PM #8 Re: SIMs backup script after SQL 2005 migration failing...
Ah, thanks Altecsole
-
-
19th November 2007, 03:50 PM #9 Re: SIMs backup script after SQL 2005 migration failing...

Originally Posted by
altecsole I downloaded the latest version of DBAttach.exe (v1.7 I think) and this is my command:
"e:\SQL Server\MSSQL$SIMS\Binn\DbAttach.exe" /SERVER=SERVER /DATABASE="sims" /backup /auto /trusted /user=USER /password=PASSWORD
This works for me.
I'll give this ago before the end of the day, thanks!!
-
-
19th November 2007, 04:22 PM #10 Re: SIMs backup script after SQL 2005 migration failing...

Originally Posted by
mullet_man I'll give this ago before the end of the day, thanks!!
If your SQL Server uses an instance you'll probably have to add this to the script (we don't use one);
/SERVER=SERVER/INSTANCE
-
-
19th November 2007, 07:50 PM #11 Re: SIMs backup script after SQL 2005 migration failing...
I can only get my 2005 SIMS to backup if I use the SA username and password despite using dbattach 1.7. I used to use my specially created backup user but that doesn't seem to work anymore. Not happy about having the sa password in plain text in my script. 
HBJB
-
-
20th November 2007, 10:14 AM #12 Re: SIMs backup script after SQL 2005 migration failing...
Is your backup user a member of the Backup User and System Manger groups? Also, try resetting the password on the backup account, logon as the backup user and set the password and then try the script again. For some reason this kicked things into life after our upgrade. I forgot about this - sorry.
-
-
20th November 2007, 10:39 AM #13 Re: SIMs backup script after SQL 2005 migration failing...

Originally Posted by
PiqueABoo You typically change this bit (not the database name):
/SERVER=server\SIMS2005
You were right, thanks PiqueABoo. Its working now. I use the SA username and password. Thanks for the tips guys.
Stevo.
-
-
23rd November 2007, 07:03 PM #14 Re: SIMs backup script after SQL 2005 migration failing...
You can always use build in SQL 2005 backup plan. I have it set it up for everyday @ 23.00. Working fine no problems. Output is one file *.bak.
-
SHARE:
Similar Threads
-
By Ric_ in forum MIS Systems
Replies: 12
Last Post: 29th February 2008, 03:06 PM
-
By ndavies in forum MIS Systems
Replies: 11
Last Post: 21st November 2007, 04:13 PM
-
By jmair in forum Windows
Replies: 8
Last Post: 29th October 2007, 02:37 PM
-
By park_bench in forum Windows
Replies: 6
Last Post: 21st August 2007, 04:18 PM
-
By snakepottery in forum Windows
Replies: 3
Last Post: 9th January 2006, 12:27 AM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules