Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Different ways to connect to SQL server
Message
 
To
18/02/2004 11:30:58
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00877675
Message ID:
00878533
Views:
17
I a pretty sure that I am getting close here. When the following code executes I receive an error message that it cannot convert nvarchar to datetime :

oConn.connectionstring = "provider=sqloledb;data source=sweetpea;Integrated Security=SSPI;database=memsales "
oConn.Open

If oConn.State = 1
oRs = oConn.Execute("sp_ndcusage_xml memno,ndcnum,sdate,edate")

The procedure has not changed it's parameters are
memno text
ndcnum text
sdate datetime
edate datetime

The text variables hold and xml value to be converted to a table. This work fine for the following code:

lcsql="exec sp_ndcusage_xml ?memno,?ndcnum,?sdate,?edate"
lnresult=SQLEXEC(hConn,lcsql,"testdata")

Where and how would I find what is going on and how to fix this data type screw up?

Thanks again
Kelly
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform