Olaf Doschke
Programmer
In my company we're working on a foxpro application using a central MS SQL database and some of the installations (but not all) have a local SQLExpress instance. Mostly notebooks, but also "hybrid" stations, eg notebooks with a docking station, used as notebook and workstation.
As I don't know if an SQLExpress instance exists, on startup I simply try to make a connection via sqlstringconnect, but on stations without an SQLExpress instance this takes about 3 seconds and makes the total startup time annoyingly slow, about 6-7 seconds in total. I already lowered the ConnectTimeout to 2 seconds, on a normal station with an SQLExpress installation a connect takes a little more than a second, which also seems rather slow to me, considering it's local.
So my question is, can I quickly find out, if SQLExpress is installed without making a test connection? Would it be reliable looking up a Software key in the registry?
Bye, Olaf.
As I don't know if an SQLExpress instance exists, on startup I simply try to make a connection via sqlstringconnect, but on stations without an SQLExpress instance this takes about 3 seconds and makes the total startup time annoyingly slow, about 6-7 seconds in total. I already lowered the ConnectTimeout to 2 seconds, on a normal station with an SQLExpress installation a connect takes a little more than a second, which also seems rather slow to me, considering it's local.
So my question is, can I quickly find out, if SQLExpress is installed without making a test connection? Would it be reliable looking up a Software key in the registry?
Bye, Olaf.