Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Translate VB to C#
Message
From
11/12/2013 12:13:14
 
 
To
11/12/2013 11:48:35
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 4.0
OS:
Windows 8
Network:
Windows 2000 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01589830
Message ID:
01589901
Views:
34
>>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 ?
Previous
Reply
Map
View

Click here to load this message in the networking platform