Can refactor help me assign some schemas?

Refactors and formats SQL code.

Moderators: Chris Auckland, David Atkinson, Anu Deshpande, Luke Jefferson

Can refactor help me assign some schemas?

Postby steve@powell.net » Tue Nov 23, 2010 5: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...
steve@powell.net
 
Posts: 5
Joined: Wed Sep 16, 2009 1:20 pm

Postby Anu Deshpande » Wed Nov 24, 2010 11: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.
E-mail: support@red-gate.com
Anu Deshpande
 
Posts: 692
Joined: Mon Apr 20, 2009 3:53 pm
Location: Cambridge


Return to SQL Refactor 1

Who is online

Users browsing this forum: No registered users and 0 guests

cron