Solved

Script

Posted on 2008-06-20
1
183 Views
Last Modified: 2013-11-05
Hi All

I'm looking for a script that loops through a table(table1) and for every row in the table it performs an insert in another table(table2).
So If table1.value = "number" then insert  table1.value  into table2

Thanks for any help
0
Comment
Question by:ram_os
1 Comment
 
LVL 75

Accepted Solution

by:
Aneesh Retnakaran earned 150 total points
ID: 21831285
insert into Table2
select Column1, col2....
 from from Table1 where value = 'number'
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

744 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

10 Experts available now in Live!

Get 1:1 Help Now