OLEDBProvider->Provider by UniConnection designer

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
FredS
Posts: 272
Joined: Mon 10 Nov 2014 17:52

OLEDBProvider->Provider by UniConnection designer

Post by FredS » Thu 18 Jun 2015 22:49

SVN tells me that provider is being reset to an invalid value by the uniConnection designer:

'SQL Server.Authentication=auWindows'
'InterBase.Role=RDB$ADMIN'
'SQL Server.ForceCreateDatabase=False'
- 'SQL Server.OLEDBProvider=prSQL')
+ 'SQL Server.Provider=prSQL')

Options.KeepDesignConnected = False


When opening the project in XE7 using UniDac 6.0.2:
[Window Title]
Error
[Content]
Error creating form: Error reading uniConShareAudit.SpecificOptions.Strings: "Provider" is not a valid option name for SQL Server UniProvider.
[OK]

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: OLEDBProvider->Provider by UniConnection designer

Post by AlexP » Fri 19 Jun 2015 05:02

Hello,

We have introduced a check for SpecificOptions and their values. Now, when you try to use a non-existent option, or assign an invalid value, you will receive an error message.
To solve the issue, open your DFM file in the text editor and replace the code

SQL Server.OLEDBProvider=prSQL

with

SQL Server.Provider=prSQL

FredS
Posts: 272
Joined: Mon 10 Nov 2014 17:52

Re: OLEDBProvider->Provider by UniConnection designer

Post by FredS » Fri 19 Jun 2015 14:20

HI,

OK, but I get the error while opening the project with XE7 and UniDac 6.0.2.
Is "SQL Server.Provider=prSQL" valid for 6.0.2?

AlexP wrote:Hello,

We have introduced a check for SpecificOptions and their values. Now, when you try to use a non-existent option, or assign an invalid value, you will receive an error message.
To solve the issue, open your DFM file in the text editor and replace the code

SQL Server.OLEDBProvider=prSQL

with

SQL Server.Provider=prSQL

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: OLEDBProvider->Provider by UniConnection designer

Post by azyk » Mon 22 Jun 2015 09:34

Starting from UniDAC 6.1.3 the Provider option is used instead of OLEDBProvider. However, for backward compatibility, the OLEDBProvider value is supported as well.

So, for projects using UniDAC 6.0.2, the correct value will be:

Code: Select all

SQL Server.OLEDBProvider=prSQL
and starting from UniDAC 6.1.3 - both values will be correct:

Code: Select all

SQL Server.OLEDBProvider=prSQL
SQL Server.Provider=prSQL

FredS
Posts: 272
Joined: Mon 10 Nov 2014 17:52

Re: OLEDBProvider->Provider by UniConnection designer

Post by FredS » Mon 22 Jun 2015 15:34

azyk wrote:and starting from UniDAC 6.1.3 - both values will be correct:

Code: Select all

SQL Server.OLEDBProvider=prSQL
SQL Server.Provider=prSQL
Thanks azyk, however once you open the designer in 6.1.4 it forces the change and breaks 6.0.2. A valid change if 6.1.4 was usable.. but so far I can't create a SQL Server db with it.

Anyhow, will revert that setting to default and make changes Uni version specific in code.

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: OLEDBProvider->Provider by UniConnection designer

Post by azyk » Wed 24 Jun 2015 09:09

After you open the project form in the designer, UniDAC 6.1.4 automatically replaces the deprecated OLEDBProvider option name with the new one - Provider - in the DFM file. In order for the project to be opened correctly in UniDAC 6.0.2 after this change: in a text editor, open the DFM file, for which you are getting the specified error message, and replace all the entries:

Code: Select all

SQL Server.Provider
with

Code: Select all

SQL Server.OLEDBProvider
After that, the project must open in UniDAC 6.0.2 correctly.

Post Reply