Link to home
Start Free TrialLog in
Avatar of redbaron082997
redbaron082997

asked on

SQL-DMO,SQLOLE Ex. needed

I need an example of how to use SQL-DMO  in a VB5 project. I have not been able to use either one properly. Thanks
ASKER CERTIFIED SOLUTION
Avatar of cymbolic
cymbolic

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of redbaron082997
redbaron082997

ASKER

Thanks. I have been looking at it, and for some reason it doesn't make since. I think they are upgrading the server, due to it is running extremely slow, and often returns "INDEX CORRUPT" errors.  If you could email the project, that would greatly help. EMail to:
redbaron@flash.net
Thanks
Ronnie
I think the problem is that I do not have the proper DLL's or something with the setup of it.  I have the following files
C:\mssql\binn\sqlole65.dll;c:\mssql\binn\sqlole65.tlb

The reference points to the *.tlb file. When I step throught the following commands

Dim oSQLServer As New SQLOLE.SQLServer

oSQLServer.Disconnect
I get the error, ACTiveX can't create object

A straight forward problem.

1. Ensure Reference to the SQLOLE65.tlb is checked in the referneces list in VB.

2. Check SQLOLE object appears using object browser!

All should then be OK
AndyJ: -> Thanks.