I know this is an old thread, but I figured out how to do it by accident. From the full version of SQL 2008 R2, I created a script from a database table using a wizzard script and writing data using a script. All you have to do is add several columns to the table, for example, insert the table name, etc. All this wizard creates a CSV file using commas and N for the escape character. see an example here. hope this helps someone ... btw save it as a .sql file and open it in the query window and execute it!
USE [databaseName] GO SET IDENTITY_INSERT [dbo].[DrNames] ON INSERT [dbo].[DrNames] ([ID], [DrName], [PreFix], [EmailAddress]) VALUES (1, N'test1 Dr Name', N'Psy.D.', N' TestDrNAme1@DrPlace.com ') INSERT [dbo].[DrNames] ([ID], [DrName], [PreFix], [EmailAddress]) VALUES (2, N'test2 Dr Name', N'Psy.D.', N' TestDrNAme2@DrPlace.com ') INSERT [dbo].[DrNames] ([ID], [DrName], [PreFix], [EmailAddress]) VALUES (3, N'test3 Dr Name', N'Ph.D.', N' TestDrNAme3@DrPlace.com ') INSERT [dbo].[DrNames] ([ID], [DrName], [PreFix], [EmailAddress]) VALUES (4, N'test4 Dr Name', N'MD', N' TestDrNAme4@DrPlace.com ')
source share