Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Server 2005 Scripting Options 1

Status
Not open for further replies.

jbenson001

Programmer
Jan 7, 2004
8,172
US
Hi everyone,

I am trying to find how to set the scripting opitons in 2005. For example, in 2000 you have a wizard where you can choose multiple objects and select multiple scripting options such as generation a CREATE and/or DROP statement:
Code:
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Makes]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Makes]
GO
 --Create table here .. etc
In 2005 you can right click a table, or SP for example and choose to generate the script to the clipboard, file,or new ediort window. What I would like to know if is there a way to generate the scripts like in 2000? Is there a way to get it to generate the DROP and CREATE statements and choose various options?

Thanks...
Jim
 
Thanks Denis, just what I was looking for. I wonder why they changed the scipting options... It was helpful to have the DROP before the create...
Microsoft is always strange.

Thanks again

Jim
 
Denis... ScripIO is awesome.. Gives the options that 2000 had..

Thanks again...
 
Denis... ScripIO is awesome!!!!.. Gives the options that 2000 had..

Thanks again...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top