473,394 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

SQLDatasourceEnumerator

Dom
I use this class to find all the SQL Servers on the network, and it
works fine. The problem is this: For the server name, I get, eg,
"CASSIUS", I do not get "CASSIUS\SQLEXPRESS". When I use this short
name in the ConnectionString for SQLConnection.Open(), the Open-method
fails, presumably because it needs the full name. In fact, when I
hoke it up in the debugger, and use the full name, it works fine.

Isn't there something wrong here? Shouldn't the Enumerator class
return a value that gets plugged into the ConnectionString?

Dom

Sep 18 '07 #1
0 1686

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: wschlichtman | last post by:
I may be missing something so... I am using the SqlDataSourceEnumerator class to retrieve server names on a network into a listbox to allow the user to select the proper connection. Works great....
6
by: Nathan M | last post by:
Hi, I have a few projects with which I am using Access as a backend. I am thinking about upgrading them to the .NET framework 2.0 and switching to SQL Server. First I want to make sure I can...
3
by: Mark | last post by:
Hello, how I can detect via code (C++, C#) which sql servers like oracle, mssql, mysql are close to me and connectable within one or two second (timeout to wait for answers should be variable)?...
1
by: Microsoft | last post by:
In my app I want to create a drop down that lists the available SQL Servers on the Network. How do I discover what servers are out there? This is exactly like when you use File/Connect in Query...
9
by: Rico | last post by:
Hello, I have an application which I'd like to determine if SQL Server is installed, and if so, what version. Is there any way to do this outside of error trapping? Thanks! Rick
2
by: j-in-uk | last post by:
I am using NetServerEnum to get a list of sqlserver databases in my c# code. I notice it does not return sqlexpress databases. What can I use to get a list of all sqlservers? Thanks
8
by: =?Utf-8?B?UGV0ZXI=?= | last post by:
I'm trying to get a list of SQL Server Instances thru a VB.NET application. I have tried GetDataSource and SMO. I have also tried using ListSQLSvr.exe from...
4
by: Jacek Jurkowski | last post by:
.... dialog box for creating a connection string to sql server?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.