Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Y2k!?!?!?
Message
De
11/01/2006 13:50:40
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Y2k!?!?!?
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01085778
Message ID:
01085778
Vues:
58
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/
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform