Solved

SQLOLE with MSSQL 6.5

Posted on 1998-10-08
3
155 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi application Soap connection 5 123
Unique identifier on a terminal server (rdp) 4 67
Convert MS Word document to a PDF file 9 92
DBCtrlGrid, Delphi, Scroll 8 39
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

808 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