Re: Bulkinsert Problem

From: P. Ward (peter_at_online.wardyinc.com)
Date: 04/29/04


Date: Thu, 29 Apr 2004 20:36:35 +1000

David

An alternative approach may me to use the SQL Server Bulk Copy Command
(BCP). This is a command line program that performs a very similar function
to Bulk Insert. For more details refer to the "bcp Utility" article in SQL
Server Books Online (BOL).

-- 
---------------------------------
PETER WARD
WARDY Inc.
www.wardyinc.com
---------------------------------
" David N" <dq.ninh@netiq.com> wrote in message
news:%232D94JVLEHA.3664@TK2MSFTNGP10.phx.gbl...
>
> I got a problem with Bulk Insert lately in one of our clients environment.
> Basically, I have a stored procedure that creates a temporary table, and
> then use the BULK INSERT INTO.. statement to populate the temp. table with
> data records from a text file.
>
> This simple stored procedure running every where but this client, and he
the
> one that running the program with a login name that does not have
> administrator right.  As soon as the stored procedure tries to do the BULK
> INSERT, SQL throws an error message "The current user does not the
database
> or object owner of the table #TMP...."
>
> What rights does the user need to have in order to do the BULK INSERT?
>
> Best regards,
>
> David
>
>


Relevant Pages

  • Re: How to set FILLFACTOR
    ... we do not use BULK> INSERT at all. ... its> not>> recommended when you have to load a large amount of data. ... >>>> - BCP ... >>>> performance by using the BULK INSERT command - it seems that this ...
    (microsoft.public.sqlserver.datawarehouse)
  • Re: can not bulk insert a network file onto a remote SQL server 2005
    ... SQL 2000 DTS can import the same file with no ... Bulk Insert task and when using the Import Column in a data flow task. ... There are clearly multiple people out here fighting it. ... > I get this error when run from Query analyser in remote machine ...
    (microsoft.public.sqlserver.dts)
  • Re: C2 Audit and BCP
    ... I'd like to be able to identify that an "insert bulk" statement has ... All of the SQL Statements that are run are identified solely by the ... events but nothing legible in the text data column. ... This isn't an issue with the functionality of BCP, ...
    (microsoft.public.sqlserver.security)
  • Re: How to set FILLFACTOR
    ... In order of load performance the follwing are the best utilities for SQL ... Though you would expect BCP to perform very good you can gain better ... performance by using the BULK INSERT command - it seems that this command ...
    (microsoft.public.sqlserver.datawarehouse)
  • Re: Use a sequence to bulk collect into a collection?
    ... Patrick Demets wrote: ... And this cursor returns one record. ... FETCH ew_eqmt_asgn_csr BULK COLLECT INTO ... SQL> create sequence testseq; ...
    (comp.databases.oracle.server)