Re: ado connection fail on Vista

Tech-Archive recommends: Fix windows errors by optimizing your registry



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; };
---------------------

"Peter Bromberg [C# MVP]" <pbromberg@xxxxxxxxxxxxxxxxxxxxxxx> ha scritto nel messaggio news:4DA5D358-4CA9-400D-865F-7C30001B10AD@xxxxxxxxxxxxxxxx
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

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net




"paolol" wrote:

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


.



Relevant Pages

  • Re: Update cant work behind Linksys wireless router. Direct to AD
    ... Not sure what type of DSL connection your ISP offers but, see if this applies, Peter: ... Some 'thing' is blocking the connection to the update server. ... If the system can update successfully when connected directly to the modem than the Linksys router needs to have some settings adjusted. ...
    (microsoft.public.windowsupdate)
  • Re: Strange behavior customizing IE toolbar
    ... > In microsoft.public.windows.inetexplorer.ie6.browser, "Peter" ... so am assuming it's a MSFT problem. ... >>> Internet now, start the New Connection Wizard and see how to establish ... >>> a Web connection through an Internet service provider. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: BlueTooth stacks (WidComm, BroadComm, MS) (peter?)
    ... Peter, we are taking this a step at a time and seeing when we fall of the ... 1hz GPS info from our EathMate GPS that was also connected via Bluetooth. ... > devices when you try to establish a connection, ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Startbildschirm mit Fortschrittsbalken
    ... Hallo Peter (und Armin), in der Submain Initialisiere ich meine Ado ... Connection die ich in einer globalen Variable halte. ...
    (microsoft.public.de.german.entwickler.dotnet.vb)
  • Re: Consume web service with GPRS
    ... Hi Peter ... I have found that calling the webservice using http post works for muliple ... private void menuItem1_Click ... >> it attempts to use a GPRS connection, only the first invocation of the ...
    (microsoft.public.dotnet.framework.compactframework)