Technical Article

create an insert statement

Many times we are required to write lenghty insert statements for tables with many columns. This script will create an insert statement for u.It takes 2 parameters first tbale name and second the ordinal positions of the columns seperated by ','for example USP_GenerateInsert 'TabName' ,'1,2,3,4,5'Hope this is Helpful

3 (6)

2007-10-01 (first published: )

1,734 reads

Blogs

STRING_SPLIT Basics–#SQLNewBlogger

By

Another post for me that is simple and hopefully serves as an example for...

My new Online Training: SQL Server Query Tuning Fundamentals – German Edition

By

As we all know there is already a lot of information available about SQL...

My new Online Training: SQL Server Query Tuning Fundamentals – German Edition

By

As we all know there is already a lot of information available about SQL...

Read the latest Blogs

Forums

Migrate the SSIS Catalog in Just a Few Clicks

By Kunal Rathi

Comments posted to this topic are about the item Migrate the SSIS Catalog in...

SQL Server Kerberos authentication from a Linux clients

By Louis Lam-391748

Hi All, I have a need to establish a SQL Server Kerberos authentication from...

Housekeeping of SQL Azure DB's

By NicHopper

Hi all, I have a question for you, as some move into the cloud...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers