Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Y2k!?!?!?
Message
From
11/01/2006 13:50:40
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Y2k!?!?!?
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01085778
Message ID:
01085778
Views:
59
Hello,
I have shortdatetime fields stored on SQL Server. I pull that into a Cursor, and the cursor sees the 2 digit year instead of 4. How can I change that?

Here is the relevant code:
lnConnHandle=Sqlstringconnect("driver={SQL Server};server=SQLSRVB;uid=name;pwd=pass;database=db")
lcSQLConn = SQLEXEC(lnConnHandle, "SELECT * FROM members WHERE (active = 1 AND last_update > '1/1/1900')",'MEMBERS')
IF lcSQLConn = -1
	MESSAGEBOX("[ERR]Failure to connect to SQL Server MEMBERS")
	lcError = .T.
ENDIF
= SqlDisconnect(lnConnHandle)
TIA,
MAC
Very fitting: http://xkcd.com/386/
Next
Reply
Map
View

Click here to load this message in the networking platform