Re: Simple Bulk Insert Problem
From: Tom Moreau (tom_at_dont.spam.me.cips.ca)
Date: 01/02/05
- Next message: Uri Dimant: "Re: Parallelism algorithm"
- Previous message: TheNortonZ: "Re: Versioning a database"
- In reply to: Nickl: "Simple Bulk Insert Problem"
- Next in thread: Steve Kass: "Re: Simple Bulk Insert Problem"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 2 Jan 2005 07:57:32 -0500
This may help:
If you don't have .NET, them search the MSDN website for SQLXML.
-- Tom ---------------------------------------------------- Thomas A. Moreau, BSc, PhD, MCSE, MCDBA SQL Server MVP Columnist, SQL Server Professional Toronto, ON Canada www.pinnaclepublishing.com . "Nickl" <Nickl@discussions.microsoft.com> wrote in message news:43A132FA-AC83-41BB-84B5-F43CFF39AB70@microsoft.com... I would like to retrieve all the text in a file into one field in a table (or preferabally one local variable in a stored procedure). The text is an XML string and the stored procedure will deal with it (split it back into relational format, and this part is working fine). How do I simply copy/insert the complete string. I have tried this; BULK INSERT dbo.tblXMLTest FROM 'C:\XML\Contracts.xml' And I receive this error in QA; Server: Msg 4832, Level 16, State 1, Line 1 Bulk Insert: Unexpected end-of-file (EOF) encountered in data file. Server: Msg 7399, Level 16, State 1, Line 1 OLE DB provider 'STREAM' reported an error. The provider did not give any information about the error. The statement has been terminated. The XML string is just a long string, though it does have line breaks entered after some tags. So I don't think I need to specify FIELDTERMINATOR or ROWTERMINATOR delimiters. Thanks for any help. Nick Lindner
- Next message: Uri Dimant: "Re: Parallelism algorithm"
- Previous message: TheNortonZ: "Re: Versioning a database"
- In reply to: Nickl: "Simple Bulk Insert Problem"
- Next in thread: Steve Kass: "Re: Simple Bulk Insert Problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|