I am trying to establish connection to a database through:
Dim sqCon As SqlClient.SqlConnection("Data Source=.\SQLEXPRESS;Database=MegaDatabase;Integrated_Security=SSPI")
The problem is only on this line where it tells me that:
Array bounds cannot appear in type specifiers
The same problem does NOT appear in any of my other projects though I use this same format.
I need someone to tell me what exactly is wrong with this and how may I solve this.
Thanks for reading.
That (original version, now changed) doesn’t look anything like valid syntax. There’s no opening
"character and there’s too many)characters at the end.However, even with the fixes, I think what you probably wanted to do was to
dimit as a new variable, something like: