Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

SQLOLE with MSSQL 6.5

Posted on 1998-10-08
3
Medium Priority
?
159 Views
Last Modified: 2010-04-06
How can I implemnt the SQLOLE_TLB, I will use the
bcp-functions for import/export.
0
Comment
Question by:petenyi
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
dwwang earned 100 total points
ID: 1342287
Declare a var:
MySQLOleServer:variant;

Create the object:
MySQLOleServer:=CreateOleObject('SQLOLE.SQLServer');

Then use the properties and methods of MySQLOleServer
to do what you want.

For details of objects/properties/methos that you can create
and/or use, please see help of SQLOLE.

For more infomation about OleAuto in Delphi, see Delphi's help
as well as the example in demos\oleauto\autoctrl.
0
 

Author Comment

by:petenyi
ID: 1342288

I have do this, but I get an erromessage.
"Object Missing"
privat
FSQLServer:SQLSERVER
.
or
 FSQLServer := coSQLServer.Create;
  // two alternate ways to create the SQL Server object if there's no
coClass:
  // FSQLServer := CreateComObject (Class_SQLServer) as SQLServer;
  // FSQLServer := CreateOLEObject ('SQLOLE.SQLServer') as SQLServer;

in the project file I get the Errormessage
by Application.Initialize "Object Missing"

How can I use the BCP-functions


thank and best regards
Balazs


0
 
LVL 4

Expert Comment

by:dwwang
ID: 1342289
Hi, any one of these ways works well in my computer,
using Delphi3.

If the problem keep on exists, try to check out
whether your SQLOLE TLB is correctly registered
as well as those .dll and .tlb files are properly installed.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

885 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