Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
INSERT DateTime
Message
 
 
À
30/04/2004 16:14:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00899909
Message ID:
00899926
Vues:
16
>Thanks Sergey, I've tried those methods. The problem I'm having is that I need to put the date value in a SQL insert string with other values that are actual strings. Below is an example:
>
>FOXSQLINSERT = "INSERT INTO setup (Job_num,Entry_Date, Track)VALUES" _
>+ "('" + Session("JobNum") + "','" + + {^2004/01/12 12:45:00} + "','" + txtTrack.Text.Trim + "','" + "" + " ')"
>
>I am doing this from ADO.NET. Ideas? Thank you
>
Tim,

Try
FOXSQLINSERT = "INSERT INTO setup (Job_num,Entry_Date, Track)VALUES" + _
+ "('" + Session("JobNum") + "', {^2004/01/12 12:45:00},'" + _
txtTrack.Text.Trim + "','" + "" + " ')"
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform