dbTalk Databases Forums  

Import File w/ String & Binary Data

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Import File w/ String & Binary Data in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Adrian Walters
 
Posts: n/a

Default Import File w/ String & Binary Data - 10-19-2004 , 01:28 PM






I am trying to import a pipe delimited text file that was exported from one
SQL Server into another. The file looks layout is essentially this.

Col1 Name
Col2 Picture

DDL
CREATE TABLE [dbo].[stage] (
[col1] VARCHAR(50) NULL,
[col2] IMAGE NULL
)

Some entries do not have an associated picture, when I attempt to import
records I get the following error - Insert error, column 2 ('picture',
DBTYPE_BYTES), status 2: Error converting value. Invalid character value for
cast specification.

If the data type of column 2 is changed from IMAGE to TEXT, the import works
fine. Is there any workaround that will allow me to use an IMAGE type? Can I
safely use TEXT?



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.