Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pass long query string
Message
 
 
À
21/01/2013 18:43:33
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01563515
Message ID:
01563569
Vues:
50
>Then you are using a Parameters object.
>
>>
>>SqlCommand sqlCommand = new SqlCommand();
>>                    sqlCommand.CommandText = sqlStatement;
>>                        
>>                    sqlCommand.CommandType = CommandType.Text;
>>
>>                    // Add the query parameters
>>                    sqlCommand.Parameters.Add("@CardNum", SqlDbType.Int).Value = CardNum;
Right, I am.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform