Using Bulk Insert

SQL Query Systex for tab separated file
BULK INSERT TempTable FROM 'c:\TextDataFile.txt' WITH (FIELDTERMINATOR = '/t')

The error that could be thrown with bulk load is as follows:
Msg 4834, Level 16, State 4, Line 3 You do not have permission to use the bulk load statement.

Solution: Add sql server login to the bulkadmin fixed server role under Security>Server roles.
This will surely works.

Reference URLs: http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=58831
http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file

Advertisements

~ by UTS on April 23, 2009.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: