Solved

SQL-DMO,SQLOLE Ex. needed

Posted on 1998-07-16
5
368 Views
Last Modified: 2011-10-03
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
0
Comment
Question by:redbaron082997
  • 3
5 Comments
 
LVL 9

Accepted Solution

by:
cymbolic earned 20 total points
ID: 1466052
You need to get on MSDN.  They have a complete object model, plus they have a sample project using SQL-DMO, plus other articles.  If this doesn't work for your, give me your email & I'll send you some sample code.  But, the complete reference plus samples is available at:

http://premium.microsoft.com/msdn/library/
0
 
LVL 1

Author Comment

by:redbaron082997
ID: 1466053
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
0
 
LVL 1

Author Comment

by:redbaron082997
ID: 1466054
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

0
 

Expert Comment

by:AndyJ090298
ID: 1466055
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
0
 
LVL 1

Author Comment

by:redbaron082997
ID: 1466056
AndyJ: -> Thanks.  
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question