I use sqlcmd to run large script sql from C# code ,
ProcessStartInfo info = new ProcessStartInfo("sqlcmd", @" -S . -i "+ currentDBScript.Value + &