DATETIME SELECT SELECT INTO DATE PAD STRING DYNAMIC SQL CURSOR MONEY FORMAT PERCENT STORED PROCEDURE SQL SERVER AGENT JOB OPTIMIZATION WHILE LOOP OVER PARTITION BY UPDATE
SITE SEARCH SQLUSA.com HEADLINES NEWS
SQL E/BOOKS   SQL 2014 PROGRAMMING   DOWNLOADS
SCRIPTS SQL 2005 SQL 2008 ARTICLES
SQL JOBS TWITTER FORMAT VIDEOS
How to create an insert statement for a table with many columns?

In Microsoft SQL Server Management Studio Object Explorer launch the Script Wizard, select Script Data "True", finish Wizard. The following is a sample INSERT line from Production.Product table data script in AdventureWorks2008 sample database.

INSERT [Production].[Product] ([ProductID], [Name], [ProductNumber], [MakeFlag],

[FinishedGoodsFlag], [Color], [SafetyStockLevel], [ReorderPoint], [StandardCost],

[ListPrice], [Size], [SizeUnitMeasureCode], [WeightUnitMeasureCode], [Weight],

[DaysToManufacture], [ProductLine], [Class], [Style], [ProductSubcategoryID],

[ProductModelID], [SellStartDate], [SellEndDate], [DiscontinuedDate], [rowguid],

[ModifiedDate])

VALUES (1, N'Adjustable Race', N'AR-5381', 0, 0, NULL, 1000, 750,

0.0000, 0.0000, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL,

CAST(0x00008C6900000000 AS DateTime), NULL, NULL,

N'694215b7-08f7-4c0d-acb1-d734ba44c0c8', CAST(0x000094A700A53CF8 AS DateTime))

 

 

Exam Prep 70-461
Exam 70-461
DATETIME SELECT SELECT INTO DATE PAD STRING DYNAMIC SQL CURSOR MONEY FORMAT PERCENT STORED PROCEDURE SQL SERVER AGENT JOB OPTIMIZATION WHILE LOOP OVER PARTITION BY UPDATE