Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Debugging Data Environment
Message
 
To
19/07/2010 11:33:38
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01472937
Message ID:
01472939
Views:
47
>Hi All,
>
>Recently I have been assigned an application that throws an error on occations. The problem is in the Data Environment, where it opens a dozen or more remote views. One (or more) of these RV is reporting a SQL Server error "Conversion failed when converting the varchar value '.' to data type int."
>
>I have opened each of the views manually, and don't receive the error. It only happens when the form opens the views.
>
>Is there a way to trace the opening of the views so I can identify which one is throwing the error?



Usually this error is received when you have RV that uses parameters and pass wrong type of parameter.
Something like:
** RV Select statement
** SELECT * FROM SomeTable WHERE MyField = ?mypar

myPar = 1
REQYUERY("MyRV")
The above code will be run OK IF MyField is some of the numeric types and IF it is some type of CHAR and ALL values can be converted to numeric.
So is you have this data in SomeTable:
MyField varchar(200)
---------------------
1
2
123
5433
everything will be OK

BUT
MyField  varchar(200)
-----------------------
1
2
123
5433
.
asdasd
blah
and you are doomed :-)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform