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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problems moving a database

Status
Not open for further replies.

holdahl

IS-IT--Management
Apr 4, 2006
213
NO
I have 2 databases (lets say db1 and db2).
I want to copy the data from db1 to db2, but the problem is that it seems like the roles are also copied. Because when I try to give a user dbo role, it says that the username already exists(or something like that). The user had dbo role on the original db.
The databases are not called the same.
How to you copy data from a database without getting things like roles and privileges? Is this possible?

sH
 
I would think you could do it by creating a text file of the table(s) using dbunload, edit the resulting reload.sql to use the new table name, then use Interactive SQl to create/load the table to the other database. Then assign rights as needed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top