SQlConnection

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

H

I'm just getting started with vb.net standard and I'm a bit confused. I'm just trying to create a SQLConnection object in a procedure in one of my forms. I get the error 'Type SQLConnection' not defined, even tho I have the System.Data assembly refrenced in my project??

Any Ideas please??
 
Hi Alan,

It is SqlConnection and not SQLConnection.

HTH,
--
Miha Markic [MVP C#] - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com

Alan said:
Hi

I'm just getting started with vb.net standard and I'm a bit confused. I'm
just trying to create a SQLConnection object in a procedure in one of my
forms. I get the error 'Type SQLConnection' not defined, even tho I have the
System.Data assembly refrenced in my project??
 
Hi Alan,

You can set an import to system.data.SqlClient or put for every SQL
statement

SqlClient.SqlConnection.

I hope this helps,

Cor
I'm just getting started with vb.net standard and I'm a bit confused. I'm
just trying to create a SQLConnection object in a procedure in one of my
forms. I get the error 'Type SQLConnection' not defined, even tho I have the
System.Data assembly refrenced in my project??
 
type this statement at the top

Imports System.Data.SqlClient
--
With Regards,


Deepak
[I code, therefore I am]
http://deepakictim.blogspot.com


Alan said:
Hi

I'm just getting started with vb.net standard and I'm a bit confused. I'm
just trying to create a SQLConnection object in a procedure in one of my
forms. I get the error 'Type SQLConnection' not defined, even tho I have the
System.Data assembly refrenced in my project??
 
Hi Cor,

Cor said:
Hi Miha,

It is VB.net

VB is not case sensetive.

:-)

The blind spot covered the text where it was written vb.net :)
What's vb.net, anyway? ;-)
 
Back
Top