General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Passing a date to a SQL stored proc using SQLEXEC
Environment versions
Network:
Windows 2000 Server
I am running SQL Server 2000 and am using SQLEXEC() to pull recordsets from SQL. I want to pass two date parameters from VFP7 to SQL using SQLEXEC but I don't get any data back. Here is my syntax on the VFP side:
nRetVal = SQLEXEC(nConn,"EXEC usp_StoredProc '"+ALLT(DTOC(dDate1))+"' '"+ALLT(DTOC(dDate2))+"'",'cursor1')
Within my SQL sp I have a @dDate1 DATETIME, @date2 DATETIME declared.
Do I need to somehow CAST the VFP dates to DATETIME?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only