Maybe I don't have the right keywords but I can't seem to find how to do it.
Let's say I have these two string :
firstString = "I am a string";
secondString = "I am a long";
Is there a method that would allow me to move part of string 1 to string 2 ?
Move, not copy.
The final results would be :
firstString = "I am a"
secondString = "I am a long string"
The Problem
I have a string that contains a lot of characters. I want to send this string to SQLServer but the function that receives it can't hold more than 8000 char. So I need to send a request every 8000 characters.
- Check if String1 is longer than 8000 Char
- If it is, take the first 8000 Char and MOVE them into String2
- Insert String2 into SQL
- Repeat
- If it's lenght is smaller than 8000 Char, send String 1 to SQL
String.Split()but it woudn't work in my situation.