User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MS SQL section within the Web Development category of DaniWeb, a massive community of 402,519 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,710 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS SQL advertiser: Programming Forums
Views: 3001 | Replies: 2 | Solved
Reply
Join Date: Sep 2007
Posts: 2
Reputation: oracio is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
oracio oracio is offline Offline
Newbie Poster

MSSQL 2005 Express Restore Backup Issue

  #1  
Sep 5th, 2007
Hello,

I recently bought a new server and I'm trying to move the MSSQL database from the old mssql (MSSQL 2000) to the new system MSSQL Express 2005.

I made a .bak file in the old server and restored it succesfuly in the new server. the thing is that it created a new schema and took the old db user which doesn't exist in the new server. and now i have authentication problem accessing the database from the web and from Plesk. I'm a newbie and I don't know hot to handle db users in MSSQL Express 2005.

Please help.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2007
Posts: 2
Reputation: oracio is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
oracio oracio is offline Offline
Newbie Poster

Re: MSSQL 2005 Express Restore Backup Issue

  #2  
Sep 5th, 2007
Hello,

I just wanted to say that I was able to fix it with the stored procedure:
sp_change_users_login

EXEC sp_change_users_login 'Auto_Fix', 'username', NULL, 'password'
Reply With Quote  
Join Date: Jul 2008
Posts: 8
Reputation: zenocide is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
zenocide zenocide is offline Offline
Newbie Poster

Re: MSSQL 2005 Express Restore Backup Issue

  #3  
Jul 16th, 2008
Originally Posted by oracio View Post
Hello,

I recently bought a new server and I'm trying to move the MSSQL database from the old mssql (MSSQL 2000) to the new system MSSQL Express 2005.

I made a .bak file in the old server and restored it succesfuly in the new server. the thing is that it created a new schema and took the old db user which doesn't exist in the new server. and now i have authentication problem accessing the database from the web and from Plesk. I'm a newbie and I don't know hot to handle db users in MSSQL Express 2005.

Please help.


To add a new user into a database when it been removed, I have found that you need to goto.

Mssqlserver/security/logins

then right click and click add new login, if you set the default database ownership for this user to your database, it will automatically be installed into your database.

Hope this helps.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb MS SQL Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the MS SQL Forum

All times are GMT -4. The time now is 6:31 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC