|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
scripting in sql management studioLike EM, management studio allows us to select multiple objects to script.
However unlike EM, it doesn't give us the option to create separate scripts per object. Is there a way to create separate scripts for each object in sql management studio? Hello,
In SQL server 2005 Management Studio, you can script the table, view, database, etc. You may refer to the following information: Scripting a Table http://msdn2.microsoft.com/en-us/library/ms169684(en-US,SQL.90).aspx You may use SQL Server Scripts Wizard to generate the Scripts. To start the Scripts Wizard, right-click a database in Object Explorer, select Tasks> Generate Scripts. I hope the information is helpful. Sophie Guo Microsoft Online Partner Support Get Secure! - www.microsoft.com/security ===================================================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ===================================================== This posting is provided "AS IS" with no warranties, and confers no rights. Hi Sophie,
My question is how to script multiple objects at once and have separate scripts created for each object. For example, in SQL 2000 when multiple objects are scripted and saved as separate files, tables are scripted as .TAB files, stored procedures as .PRC files, functions as .UDF files, etc... Show quote "Sophie Guo [MSFT]" <v-s***@online.microsoft.com> wrote in message news:gVKwlI53FHA.2904@TK2MSFTNGXA01.phx.gbl... > Hello, > > In SQL server 2005 Management Studio, you can script the table, view, > database, etc. > > You may refer to the following information: > > Scripting a Table > http://msdn2.microsoft.com/en-us/library/ms169684(en-US,SQL.90).aspx > > You may use SQL Server Scripts Wizard to generate the Scripts. To start > the > Scripts Wizard, right-click a database in Object Explorer, select Tasks> > Generate Scripts. > > I hope the information is helpful. > > Sophie Guo > Microsoft Online Partner Support > > Get Secure! - www.microsoft.com/security > > ===================================================== > When responding to posts, please "Reply to Group" via your newsreader so > that others may learn and benefit from your issue. > ===================================================== > This posting is provided "AS IS" with no warranties, and confers no > rights. > > Hello,
Thanks for clarify . Based on my research, I didn't find the similar way to have separate scripts created for each object at once. I will do more research on it. If there is any update, I'll let you know. Sophie Guo Microsoft Online Partner Support Get Secure! - www.microsoft.com/security ===================================================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ===================================================== This posting is provided "AS IS" with no warranties, and confers no rights. Wow...major oops for the GUI team :(
I use the separate file feature recularly to create files which I then get stored in VSS.... Show quote "Sophie Guo [MSFT]" <v-s***@online.microsoft.com> wrote in message news:Fok2VXG4FHA.1144@TK2MSFTNGXA01.phx.gbl... > Hello, > > Thanks for clarify . Based on my research, I didn't find the similar way > to > have separate scripts created for each object at once. I will do more > research on it. If there is any update, I'll let you know. > > Sophie Guo > Microsoft Online Partner Support > > Get Secure! - www.microsoft.com/security > > ===================================================== > When responding to posts, please "Reply to Group" via your newsreader so > that others may learn and benefit from your issue. > ===================================================== > This posting is provided "AS IS" with no warranties, and confers no > rights. > > Couldn't you just script all that in a single script (i.e. a script to
generate all those scripts and store them in your DB, files, etc.)? -- Show quoteWilliam Stacey [MVP] "Quinn" <dellsql@newsgroups.nospam> wrote in message news:uKwH8323FHA.2552@TK2MSFTNGP10.phx.gbl... > Like EM, management studio allows us to select multiple objects to script. > However unlike EM, it doesn't give us the option to create separate > scripts per object. Is there a way to create separate scripts for each > object in sql management studio? > |
|||||||||||||||||||||||