What I need to do is search for the SQL instances and put them on a combo box. But, not on the whole network, only in the local computer instead. Is there any way to do that?
I'm afraid we don't have predefined support for listing the SQL Server instances installed only on local machine. However, in order to achieve what you want you can develop your own custom action. Please take a look on the "How can I get a list of installed SQL Server instances?" thread which should be useful for you.
Just a slightly, tiny, little detail. Is there a way to make one of this options selected?
The combo box shows a blank option and only if you click on the combo it shows all the instances installed.
In order to achieve this you should just set the combo box associated property to desired element value. For example, if you have a combo box (e.g. COMBO_PROP) with the following elements:
Text: one
Value: 1
Text: two
Value 2
and you set the "COMBO_PROP" property to 2, then the combo box will display by default the "two" element.
i have a question.. i'm getting the instances on the combo box by serverbrowse, let's say i want it to always default the combo box to the default named "express" but if the instance "express" doesn't exist to default to the first available.
I'm afraid I don't fully understand your last questions. Can you please give us more details about this (maybe exemplify a bit or attach a screenshot)?