dbTalk Databases Forums  

RE: SSIS not working on mixed columns case - SQL 2005

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


Discuss RE: SSIS not working on mixed columns case - SQL 2005 in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Todd C
 
Posts: n/a

Default RE: SSIS not working on mixed columns case - SQL 2005 - 06-11-2009 , 11:24 AM






The Case Sesetivity server setting may be the issue, but I think that is
geared more toward data comparison than object names.

Try using a SELECT Statement instead of Table/View in the source:

SELECT
ID AS ID,
Name AS NAME,
TYPE AS TYPE,
...
FROM dbo.POOL

Hope this helps.
=====
Todd C


"Test Test" wrote:

Quote:
I have simple SSIS pkg (SQL 2005) that takes data (source table to
target table) from source db to reporting database (target). On SQL job,
I am executing this pkg for 2 dbs (by passing 1 varaible and 2 OLE DB
connections - 1 source OLE DB, 1 desintation) - one step /db. The
dynamic exeuction is working Ok. Howerver, it is failing for Source2 db
- I think it is bc of mixed case isuse on columns.

Notice that in the Pool table in source DB2, the 2 columns are in small
case and 3 in caps. Upon executing the pkg on Source2 db, it is giving
this error:

Error:

Description: The external metadata column collection is out of
synchronization with the data source columns. The column "ADDRESS" needs
to be added to the external metadata column collection.
The column "TYPE" needs to be added to the external metadata column
collection.
The column "FLAG" needs to be added to the external metadata column
collection.
The "external metadata column "flag" (582)" needs to be removed from the
external metadata column collection.
The "external metadata column "type" (579)" needs to be removed from the
external metadata column collection.
The "external metadata column "address" (576)" needs to be removed from
the external metadata column collection.

Source DB 1: ---- all columns in SMALL case
CREATE TABLE [dbo].[Pool](
[Id] [int] NULL,
[name] [varchar](50) NULL,
[address] [varchar](100) NULL,
[type] [varchar](20) NULL,
[flag] [varchar](10) NULL
)


Source DB 2: -- columns in both SMALL and CAPS
SourceTable: Pool
(
CREATE TABLE [dbo].[Pool](
[Id] [int] NULL,
[name] [varchar](50) NULL,
[ADDRESS] [varchar](100) NULL,
[TYPE] [varchar](20) NULL,
[FLAG] [varchar](10) NULL
)

Target DB:

-- all columns in CAPS
CREATE TABLE [dbo].[Pool](
[ID] [int] NULL,
[NAME] [varchar](50) NULL,
[ADDRESS] [varchar](100) NULL,
[TYPE] [varchar](20) NULL,
[FLAG] [varchar](10) NULL
)

Plese assist in resolving this issue. what are the options?

Thank you!


*** Sent via Developersdex http://www.developersdex.com ***

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.