Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
UPDATE Syntax
Message
 
 
À
21/01/2009 15:23:39
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
01376029
Message ID:
01376032
Vues:
14
This message has been marked as the solution to the initial question of the thread.
>Can some one give me the correct syntax for the third line in
>sql2 = "UPDATE TRPSites SET "
>sql2 += "[AWS]= '" + oReader("AWS") + "' "
>sql2 += ",[FlexSched]= '" + oReader("FlexSched").ToString + "' "
>sql2 += "WHERE keyID = " + GridView1.DataKeys(i).Value.ToString()
>Where FlexSched is a boolean field?
>Thanks

You're missing comma before FlexSched.

However, don't do it this way, you're opening yourself to SQL injection attacks. Use parameterized approach instead.

Read carefully this thread http://forums.asp.net/t/1254125.aspx
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform