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
 General SQL Server Forums
 New to SQL Server Programming
 generate script

Author  Topic 

sent_sara
Constraint Violating Yak Guru

377 Posts

Posted - 2010-03-02 : 16:10:00
Hi i need to create table,trigger,index,view script on my local machine.could any one help to do this?

ms65g
Constraint Violating Yak Guru

497 Posts

Posted - 2010-03-02 : 16:11:35
Which SQL Server version are you using?
and do you want scipts only codes or data?
Go to Top of Page

sent_sara
Constraint Violating Yak Guru

377 Posts

Posted - 2010-03-02 : 16:25:42
only code not data,
using sql2000
quote:
Originally posted by ms65g

Which SQL Server version are you using?
and do you want scipts only codes or data?

Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-03-02 : 16:30:55
see here (it is easy):
http://msdn.microsoft.com/en-us/library/aa197132(SQL.80).aspx


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

ms65g
Constraint Violating Yak Guru

497 Posts

Posted - 2010-03-02 : 16:32:09
Right click on the database name at object browser then tasks --> generate scripts (if correct)

Or use following software, you can download at this link:
http://www.microsoft.com/downloads/details.aspx?familyid=56E5B1C5-BF17-42E0-A410-371A838E570A&displaylang=en
Go to Top of Page

sent_sara
Constraint Violating Yak Guru

377 Posts

Posted - 2010-03-02 : 16:44:20
Hi i need through T-sql statement

quote:
Originally posted by webfred

see here (it is easy):
http://msdn.microsoft.com/en-us/library/aa197132(SQL.80).aspx


No, you're never too old to Yak'n'Roll if you're too young to die.

Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-03-02 : 16:52:11
You want T-SQL to generate the T-SQL?
Then I don't know - sorry.


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

sent_sara
Constraint Violating Yak Guru

377 Posts

Posted - 2010-03-02 : 17:30:22

quote:
Originally posted by webfred

You want T-SQL to generate the T-SQL?
Then I don't know - sorry.


No, you're never too old to Yak'n'Roll if you're too young to die.

Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2010-03-03 : 02:22:13
These two may help you
http://beyondrelational.com/blogs/madhivanan/archive/2007/08/27/generate-sql-script.aspx
http://beyondrelational.com/blogs/madhivanan/archive/2007/12/13/script-out-procedures-and-functions-part-2.aspx

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -