SQL Instance Connectivity on Windows 10
Posted: Fri Oct 21, 2016 11:07 am
Hi there
We have been struggling recently with intermittent faults updating SQL databases using our Install Aware package at client sites, spefically on Windows 10 machines. We use InstallAware Studio Admin X3. I have been doing some research and debugging and here is what I have found.
Using the sample called "SQL Server Connection" provided with X3 that I have built into a compressed single self installing exe...
I have 2 SQL Server 2014 instances on a test server that are called:
DEV-PC
DEV-PC\test
Both have the sa passwords set to the same text string. I can connect to both using the "sa" user using SQL Management Studio.
Using the sample exe mentioned above, on a Windows 7 machine, I can successfully connect to both SQL instances using the "sa" credentials.
If I use a Windows 10 machine I successfully connect to DEV-PC\test but I cannot connect to DEV-PC
It appears that if the SQL instance name does not contain the slash, the sample won't connect to the SQL Server instance on Windows 10.
Here is the code that I have tweaked (starting at approx line 68 in the sample) - obviously this works fine on Windows 7 but not on Windows 10:
Comment: Display connection progress dialog (testing the connection can take a few moments)
Display Dialog: sqlwait, use as progress dialog (non-modal)
Comment: Obtain the SQL Server machine name and instance name
Parse String $SELECTEDSERVER$ into Variables SERVERNAME and INSTANCENAME (Split at first occurrence of pattern)
if Variable INSTANCENAME Equals
Comment: An empty instance name indicates the default instance
Comment: Set Variable INSTANCENAME to SQLEXPRESS
end
Is this a known issue with X3 and Windows 10?
Thanks for your help...
John
We have been struggling recently with intermittent faults updating SQL databases using our Install Aware package at client sites, spefically on Windows 10 machines. We use InstallAware Studio Admin X3. I have been doing some research and debugging and here is what I have found.
Using the sample called "SQL Server Connection" provided with X3 that I have built into a compressed single self installing exe...
I have 2 SQL Server 2014 instances on a test server that are called:
DEV-PC
DEV-PC\test
Both have the sa passwords set to the same text string. I can connect to both using the "sa" user using SQL Management Studio.
Using the sample exe mentioned above, on a Windows 7 machine, I can successfully connect to both SQL instances using the "sa" credentials.
If I use a Windows 10 machine I successfully connect to DEV-PC\test but I cannot connect to DEV-PC
It appears that if the SQL instance name does not contain the slash, the sample won't connect to the SQL Server instance on Windows 10.
Here is the code that I have tweaked (starting at approx line 68 in the sample) - obviously this works fine on Windows 7 but not on Windows 10:
Comment: Display connection progress dialog (testing the connection can take a few moments)
Display Dialog: sqlwait, use as progress dialog (non-modal)
Comment: Obtain the SQL Server machine name and instance name
Parse String $SELECTEDSERVER$ into Variables SERVERNAME and INSTANCENAME (Split at first occurrence of pattern)
if Variable INSTANCENAME Equals
Comment: An empty instance name indicates the default instance
Comment: Set Variable INSTANCENAME to SQLEXPRESS
end
Is this a known issue with X3 and Windows 10?
Thanks for your help...
John