Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MSSQL Server Error 241
Message
From
26/06/1998 11:10:43
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00111752
Message ID:
00111932
Views:
16
Hi Michael...

>I get this error ("Connectivity error: [Microsoft][ODBC SQL Server Driver][SQL Server]Syntax error converting DATETIME from character string.") in a remote view with the following code. ldDate is equal to '%'. Seems simple enough but here we go again. Can anyone help?
>
>SELECT *;
> FROM dbo.Test Test;
> WHERE Test.date1 = ?lddate

Is the memvar lddate intentionally set to value "%"? That seems to be the obvious problem but something else to consider is the % is a wildcard in SQL Server. So are you saying that you want the ability to use lddate as a specific date -or- wildcard?
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform