Showing posts with label copying. Show all posts
Showing posts with label copying. Show all posts

Monday, March 26, 2012

Importing Tables from MS Access

I m trying to import Tables from MS Access and I m having this error

- Copying to [Manpower].[dbo].[MAINTABLE] (Error)
Messages
Error 0xc0202009: Data Flow Task: An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "Invalid character value for cast specification".
(SQL Server Import and Export Wizard)
Error 0xc020901c: Data Flow Task: There was an error with input column "PPExpiry" (157) on input "Destination Input" (113). The column status returned was: "Conversion failed because the data value overflowed the specified type.".
(SQL Server Import and Export Wizard)
Error 0xc0209029: Data Flow Task: The "input "Destination Input" (113)" failed because error code 0xC020907A occurred, and the error row disposition on "input "Destination Input" (113)" specifies failure on error. An error occurred on the specified object of the specified component.
(SQL Server Import and Export Wizard)
Error 0xc0047022: Data Flow Task: The ProcessInput method on component "Destination - MAINTABLE" (100) failed with error code 0xC0209029. The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.
(SQL Server Import and Export Wizard)
Error 0xc0047021: Data Flow Task: Thread "WorkThread0" has exited with error code 0xC0209029.
(SQL Server Import and Export Wizard)

any hekp on this

Regards

How you're importing the tables from MS Access, is it DTS or import/export tool, any other tool?

Also check what kind of data or schema exists on the specified tables.

|||

I was import/export tool. I solved the problem. The Proble was with data type. There were some wrong entries in dates. after deleting those i was able to import the database.

Thanx

|||

kinda intrested how did u solve problem. i am trying to import access tables from harddrive into sql server which is my backend database.

i used

docmd.transferdatabse acimport,"microsoft Access",dbname,actable,Me.listtable,me.listtable

my tables are listed on listbox, call listtable.

i get error so i do not know what to do.

sql

Importing Tables from MS Access

I m trying to import Tables from MS Access and I m having this error

- Copying to [Manpower].[dbo].[MAINTABLE] (Error)
Messages
Error 0xc0202009: Data Flow Task: An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "Invalid character value for cast specification".
(SQL Server Import and Export Wizard)
Error 0xc020901c: Data Flow Task: There was an error with input column "PPExpiry" (157) on input "Destination Input" (113). The column status returned was: "Conversion failed because the data value overflowed the specified type.".
(SQL Server Import and Export Wizard)
Error 0xc0209029: Data Flow Task: The "input "Destination Input" (113)" failed because error code 0xC020907A occurred, and the error row disposition on "input "Destination Input" (113)" specifies failure on error. An error occurred on the specified object of the specified component.
(SQL Server Import and Export Wizard)
Error 0xc0047022: Data Flow Task: The ProcessInput method on component "Destination - MAINTABLE" (100) failed with error code 0xC0209029. The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.
(SQL Server Import and Export Wizard)
Error 0xc0047021: Data Flow Task: Thread "WorkThread0" has exited with error code 0xC0209029.
(SQL Server Import and Export Wizard)

any hekp on this

Regards

How you're importing the tables from MS Access, is it DTS or import/export tool, any other tool?

Also check what kind of data or schema exists on the specified tables.

|||

I was import/export tool. I solved the problem. The Proble was with data type. There were some wrong entries in dates. after deleting those i was able to import the database.

Thanx

|||

kinda intrested how did u solve problem. i am trying to import access tables from harddrive into sql server which is my backend database.

i used

docmd.transferdatabse acimport,"microsoft Access",dbname,actable,Me.listtable,me.listtable

my tables are listed on listbox, call listtable.

i get error so i do not know what to do.

Monday, March 19, 2012

Importing Errors when using BCP

Alright, I've been getting an interesting error when using BCP between two databases on the same MSSQL Server 2000. I am bulk copying data from an older version of a database into a newer one, which includes new tables and columns. When bcp gets to a certain table, I get this error

SQLState = 22005, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]Invalid character value for cast specification

If anyone would happen to know exactly what SQL is executed by BCP or where to find such information, that would be great. None of the columns' data types have been changes in the newer version of the database.
-MikeYou migt try running profiler while using BCP but I don't think you will find much. The error seems to indicate a problem converting data.

Could you post the table structures, BCP command(s) and any BCP format files?|||DTS might give you more of a clue to where the actual error is.

I had a problem like this once that turned out to be typos in date fields that were before 1/1/1753 or whatever the magic "start date" in SQL server is (like '12/31/0999' instead of '12/31/1999').|||You should get a nice picture of the problem with the -o(filename) switch on BCP. The output file will just contain the rows that are causing the errors. I had a similar problem with "Right string truncation" errors in BCP, and the -o spotlighted the problem immediately.

Friday, February 24, 2012

Importing CSV file with URL using DTS?

I need to be able to create a DTS package that imports a CSV file which is loated at URL. I.E. HTTP://www.url.com/csv/thefile.xls I tried copying the URL an pasting it in the file location when in SQL wazird but I got an error message.

Please help point me to anywhere that I can find some help in doing this? If there is a better way please let me know

ThanksI would post this in the SQL Server Integration Services forum instead of this one. Also, to get a quicker response, please detail exact steps you took to hit the problem, as well as display the exact error message you got.