SQL Server - OLEDB Destination Error

Asked By Fcle
22-May-07 10:23 AM
Hi

I'm using SSIS to bring data from one SQL 2005 db table to another.  They
both have SP2 installed.  The destination table has six nvarchar(max) fields
which are converted from nvarchar(4000).  When I run the package in debug
mode I get the following error:  "Expected the TEXT token in data stream for
bulk copy of text or image data."  This even happens when I comment out those
six (nullable) fields and just try bringing over the other fields.  Anyone
have any clues to help fix this?
Table
(1)
Nvarchar
(1)
Image
(1)
Bulk
(1)
Text
(1)
  Fcle replied...
22-May-07 09:36 PM
In case someone else runs into this issue...

I finally figured this out.  The destination table contained a computed
field which I dropped, successfully imported the data, and recreated.

A day's worth of pulling out my hair has paid off.  Learn from me and always
check the little things.
help
Import JPEG file into db SQL Server Hello! I have the following table: CREATE TABLE [dbo].[image] ( [id] [int] IDENTITY (1, 1) NOT FOR REPLICATION NOT NULL , [tn] [nvarchar] (5) COLLATE SQL_Latin1_General_CP1251_CI_AS NULL , [img] [image] NULL ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] GO Can anyone help me to write MSSQL 2000 query for inserting JPEG image located in 'C: \ foto \ ' into this table. . . Thanks in advance! Adriano SQL Server New Users Discussions CREATE TABLE (1) Nvarchar (1) NOT NULL (1) Database (1) TEXTIMAGE (1) IDENTITY (1) JPEG (1) Scid
SQL Server Hello, [SQL2005] Some of our larger tables fall into this condition: "If a table has a data type with one of the following: text, ntext, image , nvarchar, xml OR data_type in (''varchar'', ''varbinary'') and character_maximum_length = -1)) offline during maintenance, which we cannot a re-design? TIA, AbbA SQL Server Programming Discussions SQL Server 2005 (1) Varbinary (1) Nvarchar (1) Varchar (1) Ntext (1) Indicium (1) Boles (1) Kgboles (1) REORGANIZE and UPDATE STATISTICS reindexing description: Hello, [SQL2005] Some of our larger tables fall into this condition: If a table has a data type with one of the following: text, ntext, image , nvarchar
Select random records dilemma SQL Server Table structure ImageID (PK, int, not null) AlbumID (FK, uniqueidentifier, not null) UserID (uniqueidentifier, not null) ImageName (varchar 64, not null) Caption (nvarchar 256, null) DateAdded (datetime, not null) My current query looks like: SELECT TOP 5 Image.ImageID, Image.AlbumID Image.UserID, Image.ImageName, Image.Caption, Image.DateAdded, Album.Comment, Album.Location, aspnet_Users.UserName, FROM Image LEFT OUTER JOIN ON Image.AlbumID
FullText Index Search SQL Server I have a simple music catalog: CREATE TABLE [dbo].[Catalog]( [CatalogId] [int] IDENTITY(1, 1) NOT NULL, [Artist] [nvarchar](256) NULL, [Title] [nvarchar](256) NULL, [Remix] [nvarchar](256) NULL, [Album] [nvarchar](256) NULL, [Label] [nvarchar](256) NULL, [DateAdded] [datetime] NULL CONSTRAINT [DF_Catalog_DateAdded] DEFAULT (getdate()), CONSTRAINT [PK_Catalog] PRIMARY KEY CLUSTERED ( [CatalogId set on Artist and Title. I wrote the following Query: CREATE PROCEDURE [dbo].[CatalogSelectBySearch] ( @Artist nvarchar(256), @Title nvarchar(256) ) AS SET NOCOUNT ON; DECLARE @SearchTerms nvarchar(512); SET @SearchTerms = '("' + @Artist + '") OR ("' + @Title + '")' SELECT
Retrieving values from image type column - sql 2005 SQL Server Hi, I have a table create table s_img1 ( img1 image, num int primary key ) go insert into s_img1 select 'xxxx', 1 I am trying to it seems to be not working. Any help is appreciated. My vendor app is using image type column to store string values for some reason and I need to pull them www.SQLStudio.com Thanks for the quick response, I tried to select value from the image field using this query, it returns empty value as opposed to returning a varchar based value or error. Any idea. The column type is image. I tested with the sample table and data you provided and it retrieves correctly the string value. You can try casting