using cn as new sqlconnection(ConnectionString)
end using
or
dim cn as new sqlconnection("ConnectionString")
Have a read of this article it will show you how to make a connection to a SQL Server database.
MSDN: Sqlconnection[
^]
This article will show you how to execute a command against the database using
sqlcommand
MSDN: Sqlcommand[
^]