Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Server 2005 - date field and VFP
Message
De
10/03/2010 16:26:10
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
10/03/2010 11:56:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01453773
Message ID:
01453814
Vues:
42
>Hi
>
>I want a simple date only field, which isn't possible in SQL Server (only datetime or smalldatetime), as I'd like to bind the SQL table field to an object on myForm.myDate. I'm using an updatable cursor to allow VFP to update SQL Server with any changes to the data. The SQL Server field needs to stay in date format as I'll need to use the date in select statements.
>
>How do I overcome this? Do I need to store the date in SQL Server as a text field, and then covert backwards and forwards?
>
>Regards

Derek,
It is possible in SQL server 2008 and later. In SQL 2005 you would use a datetime field and simply you can use CA with a CursorSchema. There isn't a problem in select statements, the only problem is with display and CursorSchema takes care of it.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform