Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 SSMS Scripting

Author  Topic 

X002548
Not Just a Number

15586 Posts

Posted - 2008-01-29 : 13:10:11
Are they kidding?

I can't create one file per procedure and the DROPS are only created separately?

Are they forsing you to use ALTER as well?

Or am I missing something obvious?


Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



X002548
Not Just a Number

15586 Posts

Posted - 2008-01-30 : 09:47:04
Nobody?

Someone on another board mentioned something about SSIS...Do I have to use that to script stuff now?



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2008-01-30 : 09:59:16
in object explorer on database'as context menu choose Tasks-->Generate scripts

you get a wizard that let's you do what you want.

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com <- new version out
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2008-01-30 : 10:35:53
DEo mean Right Click on an object

Then Script Object As...then to a file, clipboard, or new Query Window?

I figured out how to script all the sprocs or tables, but it's put into 1 file, and doesn't have any other indexes or constraints

I want all the sprocs into 1 file per

The developers on a project I got thrown into create and change sprocs only on the server



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2008-01-30 : 11:21:17
Object Explorer->DbName->Right mouse click on it->Tasks->Generate scripts-> here be wizard!

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com <- new version out
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2008-01-30 : 12:01:05
I got it



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

cat_jesus
Aged Yak Warrior

547 Posts

Posted - 2008-01-30 : 13:29:13
I really hate the way 2005 creates scripts from that wizard. sp_executesql is just ugly. I really wish there was a way to make it script the way 2000 does with just the simple drop and create t-sql statements.

Scripting from the summary tab is close but it doesn't have the drop statements and you can't mix object types(like views, tables and SPs in one go).

Go to Top of Page
   

- Advertisement -