ado connection fail on Vista

  • Thread starter Thread starter paolol
  • Start date Start date
P

paolol

Hi,

I just finish to install VS2005 on vista and my proget is not working on

Connessione = new ADODB.ConnectionClass();

I get an error, so I went to the MS site and downloaded the MDAC_TYP version
2.8 , that is suppose to solve this error.

Bu I still get the error and I have no more clues on what to do to fix it,

Please help.

Paolol
 
If you're doing .Net, why are you using ADODB instead of ADO.Net?

Robin S.
 
If you are using Visual Studio 2005 you really ought to be using ADO.NET, not
classic ADO. You probably want SqlOleDb or SqlNClI provider.
Peter
 
Hi,thanks to both of you,
But this is an old project I try to move on.
I need to show the connection menu to enable the user to set the connection
to a MSSQL db and to an Access 2000 db.
Any suggestion on how to change this code ?
Thanks ,
Paolol

this is the code
---------------------
Connessione = new ADODB.ConnectionClass();
Connessione.ConnectionString = textBox2.Text.Trim();
object oConnessione=Connessione;
if ((bool)dataLink.PromptEdit(ref oConnessione))
{ textBox2.Text = Connessione.ConnectionString; };
 

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