General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Need to extract data from sql server db
I need to extract some data e.g. phone nos based on date from sql db. I have inserted records in past in sql from vfp using
sSql = "Insert into Abc (phone, clistcode ) "
sSql = sSql + " values ('" + phone + "','" + listcode "')"
z = SqlExec(nhandle,sSql,'')
but I am not able to extract data from sql using query e.g.
sSql = "select * from abc where YEAR(calltime)=2002 AND MONTH(CALLTIME)=10 AND day(calltime)=20 INTO TABLE TEMPTABLE"
TIA
Munish Arora
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