x
login about faq Site discussion (meta-askssc)

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.

more ▼

asked Feb 12 '10 at 03:51 PM in Default

Jim Czerniak gravatar image

Jim Czerniak
24 3 4 4

(comments are locked)
10|1200 characters needed characters left

1 answer: sort newest

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..

more ▼

answered Feb 15 '10 at 10:32 AM

RickD gravatar image

RickD
1.6k 1 1 4

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x454
x340

asked: Feb 12 '10 at 03:51 PM

Seen: 427 times

Last Updated: Feb 12 '10 at 03:51 PM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.