Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

db restore doesn't work

Status
Not open for further replies.

mbs611

IS-IT--Management
Mar 8, 2006
2
US
I restored a SQL db to another server (not the server where backup was performed).

Now my application fails to connect to target server since 2 SQL accounts that application looks for have inappropriate permissions after the restore.

How can I reinstate SQL users and roles on the restored db? I am only using SQL authenticated accounts.
 
Easiest way would be to open enterprise manager.

Right Click your db.
All tasks
Generate SQL Script
Select Options tab and click in 'Script SQL Server Logins(Windows and SQL Server logins'


you can then either ok that to create a sql file which you can run on your other db,
or you could click general tab and use preview button to show you the script so you can copy it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top