Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSIS codepage isssue


SSIS codepage isssue

Author
Message
JimS-Indy
JimS-Indy
Old Hand
Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)

Group: General Forum Members
Points: 347 Visits: 444
I'm using SS2k12. Trying to write a simple SSIS package to import a flat file to an identical table...

...Flat file is .csv, created by corporate (SSRS) report center, very vanilla, and not large, maybe a couple thousand rows....

I used the SSIS source wizard, pointed it to the flat file, told it to "suggest data types", etc.
I used the SSIS destination wizard, pointed to my database, and told it to create a new table

I get a message saying it cannot run because the source code page and destination code page are different (65001 and 1252.)

Now, since I'm at the very beginning, and have the ability to fix this by recreating any of the objects, what's the way to solve this once and for all? I don't need Unicode, these are all simple text, date, and numeric fields. On the other hand, I don't care, since there is further processing later and the output table is only an intermediate table.

How do I keep this from happening?

Jim
stephen.lawrenson
stephen.lawrenson
SSC Journeyman
SSC Journeyman (97 reputation)SSC Journeyman (97 reputation)SSC Journeyman (97 reputation)SSC Journeyman (97 reputation)SSC Journeyman (97 reputation)SSC Journeyman (97 reputation)SSC Journeyman (97 reputation)SSC Journeyman (97 reputation)

Group: General Forum Members
Points: 97 Visits: 293
Don't use the source wizard and specify your data types? you should be able to get round it with that.
Allow your destination object to create the table once you have your data types correct (always name the component first to be the name of the table you want - saves creating the wrong table name when you forget to modify the script)

hope that helps
stephen.lawrenson
stephen.lawrenson
SSC Journeyman
SSC Journeyman (97 reputation)SSC Journeyman (97 reputation)SSC Journeyman (97 reputation)SSC Journeyman (97 reputation)SSC Journeyman (97 reputation)SSC Journeyman (97 reputation)SSC Journeyman (97 reputation)SSC Journeyman (97 reputation)

Group: General Forum Members
Points: 97 Visits: 293
duplicate response - rubbish internet connection here :-D
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search