Splitting an string into a string array.?
<p>I am facing a problem while executing a sql query in C#.The sql query throws an error when the string contains more than 1000 enteries in the IN CLAUSE .The string has more than 1000 substrings each seperated by ','.</p>

<p>I want to split the string into string array each containing 999 strings seperated by ','.</p>

<p>or</p>

<p>How can i find the nth occurence of ',' in a string.</p>
