To which TYPE of database? Oracle, Sql Server, TimesTen?
See the Howto[^] in the documentation. You could generalize it like this;
Dim ConnectionString asString = ""' see www.connectionstrings.com for yours!
Using con AsNew SqlConnection(ConnectionString)
Using cmd As SqlCommand = con.CreateCommand
cmd.CommandText = "SELECT 1"
There are quite some tutorials on the internet. I suggest downloading a few and playing a bit with them.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
Last Visit: 31-Dec-99 19:00 Last Update: 3-Mar-15 3:49