NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

DatabaseOptions Callback

Hello,

We are trying to use the DatabaseOptions callback from within Teststand this way multiple databases may be accessed from different sequence files.  I read the forum discussion 2V39NFO6 which is the same exact problem I am having.  We followed the instructions carefully.  However, when "Disable database logging" is enabled from the station configuration, the callback does not appear to modify the database options (changing "Disable database logging" to True).  The connection string we are using is specified in an expression as:

Parameters.DatabaseOptions.ConnectionString =
"Provider=MSDASQL.1;Persist Security Info=False;User ID=psgest1;Data Source=myodbc;Extended Properties='DATABASE=xxxxxx;
DSN=myodbc;OPTION=H,í;PORT=0;UID=xxxxxx'"

Using this connection string outside of the callback, it works and data is written to the database fine...any ideas?

Thanks,
Adam
0 Kudos
Message 1 of 4
(3,612 Views)

Hi,

Are your quotes (") balanced?

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 4
(3,602 Views)
I have two double quotes and two single quotes, so I would *think* they are.

When I use the connection string in the global database options dialog it seems to work fine.

It is only when I use the DatabaseOptions callback that it appears to have no effect.
0 Kudos
Message 3 of 4
(3,599 Views)

Hi,

Put a breakpoint at the point before setting the parameter and then compare the values received from the dialog setup to what you are setting it to.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 4 of 4
(3,594 Views)