Link to home
Start Free TrialLog in
Avatar of Volibrawl
Volibrawl

asked on

Mgmnt Studio change schema name.

Please outline the steps Using Management Studio for SQL 2005.


How do I change the schema name for a database?

I want the tables to appear as mychosenname_xxx instead of dbo_xxx



ASKER CERTIFIED SOLUTION
Avatar of ptjcb
ptjcb
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Volibrawl
Volibrawl

ASKER

So, like my other question, there is no tool in Management Studio to do this either?

I have to write 2 scripts for each of the 50 tables?
Excuse me, 1 script for each of the tables.
No, no tool in SMS to create and transfer. Schema is new to SQL 2005 (it was the owner in 2000), so there are new rules and situations. Manipulating schemas requires T-SQL.

OK, can't be done, huh?

The more I use this Management Studio, the more I find I can't do any of the things I want to do with it.

Thanks anyway..


SQL 2005 SMS   has tool to create and transfer Schema.
1. To create new Schema go to Security-Schemas (add new)
2. To rename schema.:
2.1 First you need activate Property window  just click F4 (or select from  Menu - View - Properties Window)
2.2 Then right click on table name and select Design. Design window is opened and you can change schema  name in properties window.  Don't forget TO SAVE it. Click on save button   :)