Solved

How do I create sql scripts sql server 2008?

Posted on 2009-05-19
7
287 Views
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,

B
0
Comment
Question by:cyimxtck
  • 3
  • 3
7 Comments
 
LVL 75

Accepted Solution

by:
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
0
 
LVL 5

Expert Comment

by:TheVeee
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  http://www.querytool.com/
0
 

Author Comment

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

THanks!
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 5

Expert Comment

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

Author Comment

by:cyimxtck
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.

Thanks,

B
0
 
LVL 5

Expert Comment

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

Author Closing Comment

by:cyimxtck
ID: 31583201
Perfect!
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

757 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

23 Experts available now in Live!

Get 1:1 Help Now