How Do I Do This VB Code In C# - Set Conn = Server.CreateObject("ADODB.Connection")

E

Empire City

Set Conn = Server.CreateObject( "ADODB.Connection" )
Conn.Open( "DSN = mydsn; UID = myuserid; PWD = mypassword;" )
sql = "select * from customers"
Set RS = Conn.Execute( sql )

Preferably with a SqlDataAdapter not an OleDbDataAdapter
 
P

Peter Koen

Set Conn = Server.CreateObject( "ADODB.Connection" )
Conn.Open( "DSN = mydsn; UID = myuserid; PWD = mypassword;" )
sql = "select * from customers"
Set RS = Conn.Execute( sql )

Preferably with a SqlDataAdapter not an OleDbDataAdapter

Sorry, but this posting just shouts to post a RTFM. ;-)

You may want to check out this web site:

http://msdn.microsoft.com/library/en-us/dnadonet/html/adon_wtaccessdb.asp

--
------ooo---OOO---ooo------

Peter Koen - www.kema.at
MCAD CAI/RS CASE/RS IAT

------ooo---OOO---ooo------
 
J

Juan Gabriel Del Cid

A lot of posts deserve an RTFM response, :-D. A lot more deserve a "did you
actually search google for this and that? I got 500 search results myself."

-JG
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top