In the good old oledb times I used UDL files and the related wizard to check and create connection strings. Nowadays the connection strings you can create this way aren’t that universal any more. The ADO.NET Entity Framework for example creates decorated connection strings which the UDL wizard can’t handle. Is there any tool to create the universal data links of today?
I think there is a difference between:
Today's (ie: .NET?) connection strings are not less universal than OleDb connection strings. They are always specific for a given provider. The key/value pairs may not be the same, but the concept is always there.
The UDL tool works using COM objects and can still be used. For example, one could write an extension to the UDL tool for Entity Framework connection strings. Here is a link on the official reference: Provider Extensible Data Link User Interface API
.UDL files are still usable in .NET (with P/Invoke) using IDBPromptInitialize and IDataInitialize OleDb's interfaces, although I agree, it does not seem so natural these days :)
A universal “data link” cannot support all functions of all databases vendors/versions, most software is written in house by corporations to talk to their in house databases, so don’t need to be database independent.
It is harder to code against an API that is not a good match for the functions your chosen database provides as the documentation never seems to match the database you are trying to use.
Microsoft now expect the database vendor to provide the Ado.net data access support for the database, hence the data access tends to be different for each database – but most people don’t care as there code only needs to work with a single database vender.
There are 3rd party options like, devArt's dotConnect and DataDirect that provides a universal “data link” for .net but at a price.
nHibernate will sit on top of most of the venders .net database access layer and hide most of the differences if you are happy to use a ORM.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With