Can refactor help me assign some schemas?

Refactors and formats SQL code.

Can refactor help me assign some schemas?

Postby » Tue Nov 23, 2010 4:45 pm

I have a DB that has obviously grown up from SQL2000. Its now far more complex than it originally was, lots of extra tables and I would like to break the tables and stored procs out into separate schemas.

Can I use refactor to do this?

The table/stored proc names will stay the same but stuff will be moved from dbo. to product. and import. etc...
Posts: 5
Joined: Wed Sep 16, 2009 12:20 pm

Postby Anu Deshpande » Wed Nov 24, 2010 10:26 am

Thanks for your post.

Yes you can do that by using 'Smart Rename' functionality of SQL Refactor.

In Screen 1 of 'Smart rename wizard' where you can specify the new name instead of doing that you change the 'Schema' and proceed with the wizard and it will generate the update script for you.

Let me know if this answers your question and solves the purpose.

For more information on Smart rename functionality go through this article: Click Here
Anuradha Deshpande
Product Support
Redgate Software Ltd.
Anu Deshpande
Posts: 838
Joined: Mon Apr 20, 2009 2:53 pm
Location: Cambridge

Return to SQL Refactor Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests