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


Need Help about error converting data type


Need Help about error converting data type

Author
Message
abuhaidar82
abuhaidar82
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 8
hi...i have a VB6.0 based application in my PC, this application stored a few data to MSDE (SQL Server 2000) and running well in Windows Xp..

You know all that microsoft has stop their support for Windows XP, therefore i want to upgrade my PC to Windows 7..But unfortunately when i done with OS upgrade, my VB based application doesn't work, it says "Error converting data type VarChar to Numeric" when i send a data to MSDE.. i already try to upgrade MSDE to SQL Express 2005 and SQL Express 2008 but it still can't work.

I also Try using SQL Express 2005 and SQL Express 2008 in windows XP and running my VB based application...it work fine..

Is this somekind of windows 7 bug or SQL Express bug?

Need help...pLease....

PS : I dont change any of my database field's data type

Sorry...bad english
Igor Micev
Igor Micev
SSCarpal Tunnel
SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)

Group: General Forum Members
Points: 4166 Visits: 4845
Hi
Did you try to find out the value for which the conversion is failing?


Igor Micev,SQL Server developer at Seavuswww.seavus.com
abuhaidar82
abuhaidar82
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 8
Hi...Thanks for the reply...yesterday i try to accsess the target database to find out all of the field's data type and i didn't find anything wrong, except when i send "0" the error doesn't occur, but when i send other number except "0" then the error occur..FYI. i didn't send alphanumeric just numeric so i presume that there is no data type convertion because the target database field is also numeric.
Eirikur Eiriksson
Eirikur Eiriksson
SSCertifiable
SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)

Group: General Forum Members
Points: 6693 Visits: 17686
Quick thought, is it an option to upgrade the VB6 application? VB 2008 has a conversion option, think that's the last version where it's included.

The problem sounds like the application is relying on an implicit type cast.
Cool
abuhaidar82
abuhaidar82
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 8
Thanks for the reply, i will try to upgrade the application to VB2008, if i can find the source code :-D, because it's not my program..

anyway could vb2008 conver the exe file created with vb6 ?
Eirikur Eiriksson
Eirikur Eiriksson
SSCertifiable
SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)

Group: General Forum Members
Points: 6693 Visits: 17686
abuhaidar82 (6/9/2014)
Thanks for the reply, i will try to upgrade the application to VB2008, if i can find the source code :-D, because it's not my program..

anyway could vb2008 conver the exe file created with vb6 ?


No, you need the source code.
Cool
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