Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Bulk Insert into New Table

 
   Database Help (Home) -> Programming RSS
Next:  trigger  
Author Message
chfran

External


Since: Sep 18, 2006
Posts: 2



(Msg. 1) Posted: Mon Dec 11, 2006 10:20 am
Post subject: Bulk Insert into New Table
Archived from groups: microsoft>public>sqlserver>programming (more info?)

I'm trying to Bulk Insert data but the table has yet to be created. I
don't know what the definition of the table should be so the data
imports without a hitch. Any suggestions?

 >> Stay informed about: Bulk Insert into New Table 
Back to top
Login to vote
Erland Sommarskog2

External


Since: May 30, 2004
Posts: 2061



(Msg. 2) Posted: Mon Dec 11, 2006 11:22 pm
Post subject: Re: Bulk Insert into New Table [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

chfran ( ) writes:
> I'm trying to Bulk Insert data but the table has yet to be created. I
> don't know what the definition of the table should be so the data
> imports without a hitch. Any suggestions?

And how would know? We have not even seen the data!

Seriously, it would help if you described the situation a little
closer. Normally when you import data from a file, you have a definition
of what it's in the file. The table you import do does not have to map
one-to-one to the file; by using a format file, you can select only
certain columns in the file, and the table could have extraneous columns.

So if you are facing the situation that you are to import files, but you
don't know in advance how they will look like, that is a kind of odd
situation. And since you normally use the table in further processing,
that further processing would be funny if the table structure is not
known.


--
Erland Sommarskog, SQL Server MVP, esquel.TakeThisOut@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

 >> Stay informed about: Bulk Insert into New Table 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
BULK insert - I am trying to do bulk insert 5000 rows into a simple table that has: id pk identity, col_text nvarchar(500) How do i do bulk insert but to only insert data that is not duplicated eg. if i have already in table 'some_text' and bulk inserting ..

Bulk insert problem - Hi! I have done bcp out using -V and -q switch from one table and using only -V switch on another table on the server running on sql server 2000. the datatype used is native i.e. -n switch. When I am trying to import it using BCP IN in the server..

Permissions and Bulk Insert - SS2005. I have a need for users to BULK INSERT files on an adhoc basis. Basically they want to upload a file and have immediate access. Right now, I'm doing that by assigning those users to the bulkadmin server role, and having them call a procedure..

bulk insert and openrowset - i'm having the strangest problem right now and can't seem to figure out what's going on- here's the deal: i'm trying to use the openrowset command, in combination with the bulk insert command to load data from a text file into sql server. the text..

block Bulk insert - Hi, I was asked at a job interview to create a trigger that will block the bulk insert in a table. I HAVE NO IDEA OF HOW TO BLOCK BULK INSERT!! Any ideas? Thanks, Carly
   Database Help (Home) -> Programming All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]