Import text file in sql 2005
we have few text files, which have huge no of records and I have to import into staging area (temporay tables) for further processing. I just wanted to know which is best way to import them into...
View Articlebcp / Bulk Insert difference
The general differences are: bulk insert can only insert and bcp can import and export, bcp runs outside SQL Server and Bulk Insert runs inside. What are some advantages of running inside or outside of...
View ArticleError: Cannot bulk load. Invalid number of columns in the format file
Hi Team, I am trying to do a Bulk Insert from a monster data file into a sql server 2005 Table with a format file. Here's the command I use: *`bulk insert AdventureWorks..BulkTestTable from...
View ArticleUsing bcp Or Bulk Insert To Insert Data From A CSV File With 2 Identical...
Hi, I'm new to SQLServer and wondering how the below may be possible: I have a csv file that contains the following columns: CLIENT, NOTES, NOTES. As you can see there are 2 NOTES columns both of which...
View ArticleImproving SSIS Insert Performance
I have an SSIS package which loads a fact table and am trying to improve the package's performance. I have gotten to the point where the slowest part of the package load is inserting the records into...
View ArticleBulk insert escaping newlines
I need to `BULK INSERT` [VantageRx Drug][1] database rows that may contain newlines and/or tabs. Is there a way to escape these characters so that I don't have to try to find a unique field terminator...
View ArticleBulk Insert Data (Excel File)
Can you please advise me which is the best method of importing data into SQL from Excel (2007), Bulk Insert or OpenRowSet. Currently I've tried both and neither is working and before I continued to...
View ArticleDynamic SQL to run Bulk Insert
Hi, I wonder if anyone can help. I am creating dynamic SQL using variables so that I can use the same script for various imports. The script is: DECLARE @sSourceType AS VARCHAR(10) DECLARE @sPath AS...
View ArticleMoving data in one column into multiple columns
We have 2 tables in different databases on the same server. Have to import data from one to another on a weekly basis. Source table has many pieces of information in **values** column and they are...
View ArticleSQLBulkCopy Timeout
I'm copying millions of records between identical tables in different SQL Server 200 5databases. It's a simple VB.net 2005 archive program where the user enters an archive before date. I'm using...
View ArticleBulk Insert and format file not working
I hope someone can help with my dilemna. It's probably super simple that i'm missing but I need to get to the bottom of it so I can do future bulk loads. Problem: When using bulk insert with a format...
View ArticleIts intersting try tis Problem in bulk insert using a stored procedure need...
Have writen a procedure to bulk insert using a stored procedure BULK INSERT test FROM 'D:\bcp\check.txt' WITH ( FIELDTERMINATOR = ',', ROWTERMINATOR = '\n' ) GO Proc IS CREATE PROCEDURE BULKINSERTTXT (...
View Articleminimally logged
how sql engine work in time of minimally logged. or explain how to transaction logged in bulk logged recovery model.
View ArticleBulk load format file,need to use '¡' as field delimiter.
Hi all . I got a project to bulk load from a flat file (sent by another source). They are sending format file too with the data file . The field delimiter they are using is '¡'(without quotes). I need...
View ArticleBulk insert comma delimited file
I have a file which is comma delimited. There are text fields and numeric fields. There are double quotes within the text fields and in the text fields there are also commas. When I try to load (bulk...
View ArticleBulk insert text qualifier data
I have a file which is comma delimited. The text qualifier is double quote(“”). There are commas within the text qualifier. How can I bulk insert this file into the sql server table? I tried using...
View ArticleInsert only new data from excel to sql 2008 r2 bulk data
Respected Geeks !! Good day to you and thanks in advance its so urgent i need it as i am new to my company so please help me to complete my task i have an excel file which has crores data and i have...
View Articledeadlock when bulk inserting in two different tables
Hello, I am experiencing dead-locks when performing a bulk insert on two different tables with the SqlBulkCopy classes of .net. Actually, the tool using the SqlBulkCopy class converts data from a...
View ArticleI am Having problems with Bulk Insert.
You do not have permission to use the bulk load statement. [SQLSTATE 42000] (Error 4834). The step failed. This is my syntax: bulk insert Prepaids.dbo.StdPPDGL_Import FROM...
View ArticleStored procedure for data importing from flat files. Need some tips.
I am currently working on creation of SP to automate the process of importing flat data into SQL Server. I want you to give me some useful advice on the best way how to realise, taking into account...
View Article