Good day,
I am hoping someone can help. I am very new to C Sharp and am trying to learn it. I have quite a lot of experience with straight ASP and have been doing sites for a few years now. Below is a piece of code I have from straight ASP using VB Script. I would like to know what the equivalent in C Sharp, can anyone help?
Dim Con, RS
Con = CreateObject("ADODB.Connection")
Con.Open ("Provider=SQLOLEDB;Data Source=SERVER;Initial Catalog=DB;UID=username")
RS = CreateObject("ADODB.Recordset")
sSQL = "Select * from TABLE"
RS.Open (sSQL, Con, 3)
Thanks in advance
I am hoping someone can help. I am very new to C Sharp and am trying to learn it. I have quite a lot of experience with straight ASP and have been doing sites for a few years now. Below is a piece of code I have from straight ASP using VB Script. I would like to know what the equivalent in C Sharp, can anyone help?
Dim Con, RS
Con = CreateObject("ADODB.Connection")
Con.Open ("Provider=SQLOLEDB;Data Source=SERVER;Initial Catalog=DB;UID=username")
RS = CreateObject("ADODB.Recordset")
sSQL = "Select * from TABLE"
RS.Open (sSQL, Con, 3)
Thanks in advance