Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Translate VB to C#
Message
De
11/12/2013 12:13:14
 
 
À
11/12/2013 11:48:35
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 4.0
OS:
Windows 8
Network:
Windows 2000 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01589830
Message ID:
01589901
Vues:
33
>>It splits the alterScope string into separate, presumably SQL command, lines using the 4 strings in new string[] as 'delimiters' For example, given:
            string alterScopeSql = "SELECT * FROM ORDERS GO SELECT * FROM Customers GO";
>>            string[] commands = alterScopeSql.Split(new string[] {"GO\r\n","GO ","GO\t","GO"}, StringSplitOptions.RemoveEmptyEntries);
then after running 'commands' would be:
>>[0] "SELECT * FROM ORDERS"
>>[1] "SELECT * FROM CUSTOMERS"
>
>Thanks Viv, that makes it crystal clear.
>
>I passed through Leominster for one night back in August and thought of you but my wife and Aunt would have killed me for leaving them and meeting you at a pub somewhere :)

Ah, that's a shame (only about 20mins away) :-{
Maybe next time ?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform