sql - Visual Studio 2010 Crashes after pasting a large multi-line string (Approximately 1500 lines) -


i creating vb application in visual studio 2010 installs sql stored procedures. these stored procedures encrypted otherwise supply clients .sql files create stored procedures.

the install script creates stored procedure 1500 lines in length , has been formatted in way vs 2010 requires multi-line literals in:

"first line" & _   "second line" & _   "etc..." 

every time paste multi-line script visual studio application crashes. have better way of assigning large string literal string variable. require following:

imports system.data.sql client 

...

cmd cmd sqlcommand dim str string  str = _     "very" & _     "long" & _     ... 1500 lines ...     "string"  cmd.commandtext = str 

or other way of assigning .sql script sqlcommand.

thanks.

could either paste in notepad , save there, or split in multiple strings concatenate @ end.

or better, put command in resource file , load resource @ run time!


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -