How do I create sql scripts sql server 2008?

Posted on 2009-05-19
Last Modified: 2012-05-07
I do not want to go through table by table, function by function, etc. and create a single script for each.  I am aware of how to do that.  I need to copy pieces of the database to another database.  Not everything either so I cannot do a backup and restore type operation.

Can anyone help me here please?

In Oracle I could go into TOAD and select 1,000 objects and script them to a file/clipboard very easily.  How can I accomplish this in SQL Server 2008?

Any help would be greatly appreciated.

Thanks in advance,

Question by:cyimxtck
  • 3
  • 3
LVL 75

Accepted Solution

Aneesh Retnakaran earned 500 total points
ID: 24426026
You can generate the object createion scipt

right click on the database -> tasks- > generate scripts

ands choose the objects

Expert Comment

ID: 24426126
Product called AQT which costs about 199.00.   Somewhat like toad, but it will connect to any type of database oracle, db2, mysql, sql server just using odbc connections.  Cool part is that you can have it point to one environment, then have it move data to another environment schema and just pick by using the sql statement to filter.  Been using this for about 3 years now and its one of my best tools since I can also do dba work with it vice just quering

Author Comment

ID: 24426197
Perfect!  I knew there had to be a way to do that!

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.


Expert Comment

ID: 24426306
ok so did this not answer your question on how to do it?

Author Comment

ID: 24426332
That is great but I don't want to spend $200 to do the job.  The internal functionality is what I was looking for that is in post: ID:24426026.



Expert Comment

ID: 24426472
Then wouldnt you want to award the points to him vice closing the question?

Author Closing Comment

ID: 31583201

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
IN with @variable 5 25
Dimension table indexes 8 13
Generate Weekly Schedule 15 17
sql query questions 2 25
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Sending a Secure fax is easy with eFax Corporate ( First, just open a new email message. In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

867 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

16 Experts available now in Live!

Get 1:1 Help Now