Technical Article

Generate Insert Statements Easily - Updated

This script will generate insert statements for the given tables. You can pass the tables names, separated by commas, into sp_DataAsInsCommand stored procedure as in the example below:EXEC sp_DataAsInsCommand 'employee,titleauthor,pub_info'Updated on 5/25/01 to correct an issue with columns that are short like a column defined as char(1), to correct another issue with the Identity column […]

You rated this post out of 5. Change rating

2005-06-01 (first published: )

334 reads

Blogs

MVP No more, But It’s OK

By

Embracing Limitations: Finding Strength and Purpose in Hard Times For four years, I was...

A New Word: Fitching

By

fitching – v. intr. compulsively turning away from works of art you find frustratingly,...

Copilot in Microsoft Fabric

By

Microsoft Copilot is an app that uses AI to help you find information, create content,...

Read the latest Blogs

Forums

SQL Saturday Pittsburgh 2024 (#1094) - Call for speakers and other event details

By Jeff Moden

Please see the following link. https://sqlsaturday.com/2024-10-12-sqlsaturday1094/ Note that the "Call for Speakers" is in-progress...

SQL Saturday Pittsburgh 2024 (#1094) - Call for speakers and other event details

By Jeff Moden

Please see the following link. https://sqlsaturday.com/2024-10-12-sqlsaturday1094/ Note that the "Call for Speakers" is in-progress...

what are the software' required for sqlserver dba in laptop to install

By naga.rohitkumar

HI Team, what are the software's required for sqlserver dba in laptop to install...

Visit the forum

Question of the Day

What's Wrong with this Table?

What's wrong with this code and causes an error?

CREATE TABLE Customer
(
    CustomerID INT NULL,
    FirstName NVARCHAR(50) NOT NULL,
    LastName NVARCHAR(50) NULL,
    Email NVARCHAR(100) NOT NULL,
CONSTRAINT CustomerPK PRIMARY KEY (CustomerID, LastName)
);


See possible answers