Solved

SQL 2008

Posted on 2011-02-28
4
279 Views
Last Modified: 2012-05-11
I have about 200 Sp and 300 View and I ned to change the schema to dbo.
I tried to work on the Generate code but it keep give me too many errors because the Dependence. I cant sort on create date and I cant pick the first create is there any other way to generate the code for these views and SP?

Thanks
0
Comment
Question by:DBA2010
4 Comments
 
LVL 28

Expert Comment

by:strickdd
Comment Utility
Right click on the database, select Tasks, Click "Generate Scripts"

Make sure to enable the scripting of Object Level Permissions

Click Finish and change the schema to the dbo schema and run the script for those creations.
0
 
LVL 15

Expert Comment

by:derekkromm
Comment Utility
0
 

Author Comment

by:DBA2010
Comment Utility
why Object Level Permission? What does that mean?
and what about Generate script for Dependent Objects? False or tru? the default is False??

Thanks
0
 
LVL 6

Accepted Solution

by:
anushahanna earned 500 total points
Comment Utility
>>why Object Level Permission? What does that mean?
SP, Views are considered objects, so are functions, tables etc

>>and what about Generate script for Dependent Objects? False or tru? the default is False??

Say no. Otherwise, it brings in more objects than the SP, Views you want- you will have lot more CREATE Statement. In the destination database, do you have all the dependent objects, if not, say Yes, to make sure to bring together all the dependencies.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

PL/SQL can be a very powerful tool for working directly with database tables. Being able to loop will allow you to perform more complex operations, but can be a little tricky to write correctly. This article will provide examples of basic loops alon…
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now