ADODB Objects in VB COM

Results 1 to 2 of 2

Thread: ADODB Objects in VB COM

  1. #1

    Default ADODB Objects in VB COM

    I cannot create ADODB objects in a Visual Basic COM Component. How do you do this - It is possible. If you do know, could you e-mail it to this e-mail address

  2. #2
    Join Date
    Dec 1969

    Default RE: ADODB Objects in VB COM

    I&#039ve Done this by doing the following:<BR><BR>1. Set a reference to ADO in your VB Project<BR>2. Build your connect string:<BR> gStrConn = "PROVIDER=SQLOLEDB;driver={SQL Server};Server=ServerName;Database=DatabaseName; uid=UserName;pwd=Password"<BR><BR>3. Dimmesion a Connectio object and open it:<BR> Dim oConn as New Connection<BR> oConn.Open gStrConn

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts