MSSQLTips.com - your daily source for SQL Server tips

Google
 
Web mssqltips.com

ESSENTIALS: Home | Tips | Search | Categories | Top 10 | Products | Authors | Blogs | Forums | Webcasts | Advertise | About
Error in type conversion - MSSQLTips

MSSQLTips

MSSQLTips.com - your daily source for SQL Server tips
Welcome to MSSQLTips Sign in | Join | Help
in Search

Error in type conversion

Last post 02-18-2008 5:38 PM by grobido. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-13-2008 2:02 AM

    • ram
    • Top 500 Contributor
    • Joined on 02-13-2008
    • Posts 1

    Error in type conversion

    hi,

    while importing data from excel to sql table in DTS i am getting the following error.

    general conversion error on column pair(source column(DBTYPE_WSTR),destination column(DBTYPE_NUMERIC))

    sample (excel) input cap 24% to the table data type decimal

    thanks in advance

  • 02-18-2008 5:38 PM In reply to

    • grobido
    • Top 10 Contributor
    • Joined on 10-11-2007
    • Wilton, NH
    • Posts 66

    Re: Error in type conversion

    Looks like your data types are mismatched. 

    To fix this you can either modify the SQL table to accept string data instead of just numeric data or you could convert the Excel data to numeric prior to loading into your SQL table and throw out any non numeric values.

Page 1 of 1 (2 items)