Hi,
I am getting an error when trying to create a SQL Server ODBC DSN
within my project. When running the project (only tested on a XP machine at this stage) I get the following error:-
Error
Error configuring ODBC data source: TESS_SC5_LIVE, ODBC error 8: Invalid keyword-value pairs. Verify that the file TESS_SC5_LIVE exists and the you can access it.
The attributes specified in the Create ODBC DSN command are as follows:-
Data Source Name = TESS_SC5_LIVE
Driver Name = SQL Server
Registration= Per Machine
Attributes=
Description=Tesseract DB
Server=[SC5_SQLServerSetup]
QuotedId=No
AnsiNPW=No
Database=[SC5_SQLServerSetupDB]
LastUser=[SC5_SQLServerSetupLogin]
Any ideas?
I have also tried hardcoding the attributes as opposed to using variables but this gives the same result. I am able to execute SQL scripts from the same project on the same SQL Server without any problems.
Kind Regards
Chris
Issue when creating ODBC DSN in InstallAware 7.0
-
Tesseract_Support
- Posts: 12
- Joined: Mon Jul 30, 2007 10:24 am
-
MichaelNesmith
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
-
Tesseract_Support
- Posts: 12
- Joined: Mon Jul 30, 2007 10:24 am
-
Tesseract_Support
- Posts: 12
- Joined: Mon Jul 30, 2007 10:24 am
-
Tesseract_Support
- Posts: 12
- Joined: Mon Jul 30, 2007 10:24 am
-
Tesseract_Support
- Posts: 12
- Joined: Mon Jul 30, 2007 10:24 am
Seeing as IA couldn't be botherd to provide any support on this issue posted over two months ago I though I'd post some discoveries I made on my own just in case there are any other fustrated users struggling with the same error and no support.
I managed to track down the "Invalid keyword-value pairs." error message.
The error is generated because the current ODBC SQL Server driver does not support writing USER or PWD parameters to registry (for security reasons).
Generally, whenever you get this error, you are trying to create a DSN with a parameter (keyword) that is not supported by the driver. To find out which one is not supported, start removing parameters one at a time.
To resolve this issue I had to remove the "LastUser=" line from the Attributes field.
When you select an existing ODBC Source to base your new one on IA put this value into the attributes for you, this in itself is a problem that should be addressed in a future release.
I am now able to successfully create an ODBC DSN with hardcoded attribute values. However as soon as I try to include variables within the attributes it fails again with the following error:
Error
Error configuring ODBC data source: TESS_SC5_LIVE, ODBC error 9: Invalid DSN. Verify that the file TESS_SC5_LIVE exists and that you can access it.
These are my attributes when it fails:-
Description=Tesseract SC5 Live Database
Server=[SQLSERVERNAME]
QuotedId=No
AnsiNPW=No
Database=SC5_TEST
These are my attributes when it works:-
Description=Tesseract SC5 Live Database
Server=SQL-SERVER
QuotedId=No
AnsiNPW=No
Database=SC5_TEST
Why is it not accepting the variables passed?
Please help.
I managed to track down the "Invalid keyword-value pairs." error message.
The error is generated because the current ODBC SQL Server driver does not support writing USER or PWD parameters to registry (for security reasons).
Generally, whenever you get this error, you are trying to create a DSN with a parameter (keyword) that is not supported by the driver. To find out which one is not supported, start removing parameters one at a time.
To resolve this issue I had to remove the "LastUser=" line from the Attributes field.
When you select an existing ODBC Source to base your new one on IA put this value into the attributes for you, this in itself is a problem that should be addressed in a future release.
I am now able to successfully create an ODBC DSN with hardcoded attribute values. However as soon as I try to include variables within the attributes it fails again with the following error:
Error
Error configuring ODBC data source: TESS_SC5_LIVE, ODBC error 9: Invalid DSN. Verify that the file TESS_SC5_LIVE exists and that you can access it.
These are my attributes when it fails:-
Description=Tesseract SC5 Live Database
Server=[SQLSERVERNAME]
QuotedId=No
AnsiNPW=No
Database=SC5_TEST
These are my attributes when it works:-
Description=Tesseract SC5 Live Database
Server=SQL-SERVER
QuotedId=No
AnsiNPW=No
Database=SC5_TEST
Why is it not accepting the variables passed?
Please help.
Using IA Studio v7.0 (Build lonepine_rtm.071107)
-
Tesseract_Support
- Posts: 12
- Joined: Mon Jul 30, 2007 10:24 am
Happy to see the CreateDSN problems will finally be fixed.
Is there any news on when these fixes will be released?
Will it be possible to switch off the Dynamic Port option (required when connecting to SQL Express hosted on Vista through a firewall)?
Is there a comprehensive list of the parameters support by CreateDSN?
Cheers, Bruce.
Is there any news on when these fixes will be released?
Will it be possible to switch off the Dynamic Port option (required when connecting to SQL Express hosted on Vista through a firewall)?
Is there a comprehensive list of the parameters support by CreateDSN?
Cheers, Bruce.

