Using a .UDL file as Data Provider with a MSDataShape Provider 
Author Message
 Using a .UDL file as Data Provider with a MSDataShape Provider

I want to use the SHAPE command.
I have a udl file, lets say ds.udl, that defines the connection to database.
How can I open the SHAPE command?
What is worg with the following code?

<<...
conn.Provider = "MSDataShape"
conn.Open "Data Provider= 'File Name = C:\Program Files\Common
Files\System\Ole DB\Data Links\ds.udl'"
lcmd.ActiveConnection = conn
lcmd.CommandText = "SHAPE {SELECT * FROM A} " & _
             "APPEND ({SELECT * FROM B ... bla, bla, bla
...>>

The error I got is
Run-time error 80040154
class not registered
in the conn.open ... line

Thanks for answering,

--
Stavros Kostomanolakis
Software Engineer,
Center for Medical Informatics and Health Telematics Applications
Computer Vision and Robotics Division,
Institute for Computer Science,
Foundation for Research and Technology, HELLAS,
P.O. Box 1385, GR 711 10, S.TE.P., Heraklion, Crete, Greece
tel: +30 81 391692 (91), fax: +30 81 391601,



Fri, 12 Dec 2003 22:34:15 GMT  
 Using a .UDL file as Data Provider with a MSDataShape Provider
The provider should be in the datalink( uld file)
Try:
conn.Open "File Name = C:\Program Files\Common
 Files\System\Ole DB\Data Links\ds.udl"
 lcmd.ActiveConnection = conn
 lcmd.CommandText = "SHAPE {SELECT * FROM A} " & _
              "APPEND ({SELECT * FROM B ... bla, bla, bla

Quote:
> I want to use the SHAPE command.
> I have a udl file, lets say ds.udl, that defines the connection to
database.
> How can I open the SHAPE command?
> What is worg with the following code?

> <<...
> conn.Provider = "MSDataShape"
> conn.Open "Data Provider= 'File Name = C:\Program Files\Common
> Files\System\Ole DB\Data Links\ds.udl'"
> lcmd.ActiveConnection = conn
> lcmd.CommandText = "SHAPE {SELECT * FROM A} " & _
>              "APPEND ({SELECT * FROM B ... bla, bla, bla
> ...>>

> The error I got is
> Run-time error 80040154
> class not registered
> in the conn.open ... line

> Thanks for answering,

> --
> Stavros Kostomanolakis
> Software Engineer,
> Center for Medical Informatics and Health Telematics Applications
> Computer Vision and Robotics Division,
> Institute for Computer Science,
> Foundation for Research and Technology, HELLAS,
> P.O. Box 1385, GR 711 10, S.TE.P., Heraklion, Crete, Greece
> tel: +30 81 391692 (91), fax: +30 81 391601,




Sat, 13 Dec 2003 03:05:54 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. MSDataShape: data provider properties can not be set

2. USING UDL FILE WITH MSDATASHAPE

3. parameter passing to MSDatashape provider connection

4. Need help diagnosing MSDataShape provider error

5. Jet OLEDB.4.0 and MSDataShape Providers

6. ADODB Provider = msdatashape

7. MSDataShape provider

8. MSDataShape PROVIDER SETTINGS ERROR

9. Problem with AddNew when MSDataShape is the provider

10. VB6 SQL Builder with MSDataShape Provider

11. Disconnected RS with MSDataShape provider

12. UDL File - How To Read Data Source section of UDL File

 

 
Powered by phpBB® Forum Software