Problems using SHAPE command when building Database connection string using UDL File

Problems using SHAPE command when building Database connection string using UDL File

Post by Foxy » Wed, 01 Aug 2001 21:26:02



I cannot use the SHAPE command when using UDL file

This problem is outline in the following knowledge base article

http://support.microsoft.com/support/kb/articles/Q208/2/10.ASP

But the problem still occurs when using the Microsoft OLE DB Providor for
Oracle.
IT also doesnt work using the Informix OLE DB provider supplier by informix.

Both Providers work if the full conection string is hard coded in the
application.

I assume it has only been fixed for SQL server.

Anyone know of a work around. I do not want to use hard coded connection
strings
in the application. I am thinking of reading the UDL file using io commands
and building the
string up that way. Anybody done this or got a better solution?

Thanks

Craig

 
 
 

Problems using SHAPE command when building Database connection string using UDL File

Post by Neil Barnwel » Thu, 02 Aug 2001 01:00:39


I have to admit I was under the impression that the SHAPE command would only
work with "MSDataShape" provider.

NB.


Quote:> I cannot use the SHAPE command when using UDL file

> This problem is outline in the following knowledge base article

> http://support.microsoft.com/support/kb/articles/Q208/2/10.ASP

> But the problem still occurs when using the Microsoft OLE DB Providor for
> Oracle.
> IT also doesnt work using the Informix OLE DB provider supplier by
informix.

> Both Providers work if the full conection string is hard coded in the
> application.

> I assume it has only been fixed for SQL server.

> Anyone know of a work around. I do not want to use hard coded connection
> strings
> in the application. I am thinking of reading the UDL file using io
commands
> and building the
> string up that way. Anybody done this or got a better solution?

> Thanks

> Craig


 
 
 

1. Problem Using UDL File For SQLOLEDB Connection

I have an application that accesses a SQL 6.5 server and I'm using a UDL
file for the connection, using OLE DB.  When the application first runs it
connects fine, but I'm getting the following error intermittently during use
of the program (posting INSERTs / UPDATEs etc) :

-2147287038    %1 could not be found

This is the same error as you get when the UDL file doesn't exist, but the
file is always there.

Any ideas?

Jonathan

2. 19150-Nationwide-ERP-ORACLE-C++-PDM-CSM-Project Manager

3. Setting up .udl file for LDAP connection using OLE DB Provider for Microsoft Directory Services

4. Which of Ken Henderson's Guru's Guides should I get?

5. Using UDL file for DSnLess Connection

6. Misleading Zachary Crystal Ad

7. How to connect to SQL Server database using .udl-file

8. Connection strings & UDL files

9. Problem using shape recordsets with stored procedure that uses a temp table

10. Using a file DSN in an ADO connection string

11. Connection String for accessing Text File using ADO and C++