making a dsn connection

  • Thread starter Thread starter Irvin
  • Start date Start date
I

Irvin

I am very new to dot net! In fact, this is my first go at it, and
would like to know how to change an adodb connection via dsn to dot
net? The database is in Access 2000.".

This is my original code:

set cn = server.CreateObject("ADODB.connection")
set rs = server.CreateObject("ADODB.recordset")

rs.Open "SELECT * FROM Products;", "dsn=my_db", 3, 2
...
...
rs.close
cn.close
set rs = nothing
set cs=nothing

Thanks for your help.
 
Hi Irvin,

Is there a reason you go to dotnet and keeps the recordset and not the
dataset.

(Not that it is impossible, but the ones who do this change after a while
and maybe you can do it direct)

Cor
 

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

Back
Top