Dear All,
In last days, i spend allot of time in identify the solution of assigning custom schema in sql server, specially when you restore any database which have a custom schema you face lot of problems here is the solution
1) Take a back of your database from online server
2) Restore in to destination place
3) Create a new user in SQL server (in Global security section)
4) Provide login name in Login Name section
5) Provide the password as you need
6) Select the default database that you restore
7) Click on the user map (Left side 3rd menu)
8) In the restore db row select user under the user column and select schema under the schema column
9) save and close as well as disconnected
10) login with the new created user your schema will work
Regards
Rashid Bilgrami
CEO
Best visualization
http://www.bestvisualization.com
In last days, i spend allot of time in identify the solution of assigning custom schema in sql server, specially when you restore any database which have a custom schema you face lot of problems here is the solution
1) Take a back of your database from online server
2) Restore in to destination place
3) Create a new user in SQL server (in Global security section)
4) Provide login name in Login Name section
5) Provide the password as you need
6) Select the default database that you restore
7) Click on the user map (Left side 3rd menu)
8) In the restore db row select user under the user column and select schema under the schema column
9) save and close as well as disconnected
10) login with the new created user your schema will work
Regards
Rashid Bilgrami
CEO
Best visualization
http://www.bestvisualization.com
Thanks, now this blog objective is fulfills :)
ReplyDeleteAre you using same credential in local as well as other db? Are they mapped to same roles in both cases?
ReplyDeleteSchama is associated with the user and user is associated with the database.
DeleteSo if you allow the user to access the other database you can do that.
I use for both cases but when you mapped the user with the defualt (db) schema database then it you must define the the db.yourtable name or db.yourspname
i hope it helps you