securonic
Active member
Hi, i am very new to visual basic and have managed to grasp most of the basic operations of code manipulation. I am currently working with vbstudio 2010 and am having a little difficulty understanding what is done for you as part of the wizard set up of a sql server database conection.
i understand i can manually connect to a database through code ie(con = New SqlConnection("Server=(local)\SQLEXPRESS;Initial Catalog=MyDatabase;Integrated Security=SSPI") blah blah
The thing is, i can see that VB creates a connection string for you as part of the database wizard process so does it create and name an object variable with this connection data already specified??
Assuming this i can then just reference the conection object in my code right? i cannot seem to figure out if it has done this despite actually seeing the string in the connection properties of the server explorer.
I am probably just missing something simple in my nieve ignorance here but a pointer would really help from someone.
Thanks people
i understand i can manually connect to a database through code ie(con = New SqlConnection("Server=(local)\SQLEXPRESS;Initial Catalog=MyDatabase;Integrated Security=SSPI") blah blah
The thing is, i can see that VB creates a connection string for you as part of the database wizard process so does it create and name an object variable with this connection data already specified??
Assuming this i can then just reference the conection object in my code right? i cannot seem to figure out if it has done this despite actually seeing the string in the connection properties of the server explorer.
I am probably just missing something simple in my nieve ignorance here but a pointer would really help from someone.
Thanks people