question

Jim Czerniak avatar image
Jim Czerniak asked

Create Table syntax - flat file

Is there some way to use the create table statement...something like...

CREATE TABLE c:\test.xxx columns....etc.

To create a flat file to hold table data, to where I could then use an INSERT statment to add data to the file.

I think I remember seeing a way to do something like this, but now I can't seem to find the syntax.

sql-server-2000stored-procedures
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
RickD avatar image
RickD answered

No, but you can BCP the data out to a file, it can either be pushed out from the table as is, or you can use a format file, something like:

http://www.nigelrivett.net/SQLTsql/MoveImportData.html

I can't think of any way of inserting any new data without shelling out to the command line..

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.