powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Microsoft SQL Server [игнор отключен] [закрыт для гостей] / SQL server instances
8 сообщений из 8, страница 1 из 1
SQL server instances
    #32023930
Cold_AYS
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Привет !
У меня такой вопрос : имеется некий хост aaa.bbb.ccc.ddd, каким образом мне сделать enum of avail instances по этому айпи ?

Есть подозрения, что не существует хранимых процедур для этого дела...

???
...
Рейтинг: 0 / 0
SQL server instances
    #32023946
Cold_AYS
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
жаль, что никто не знает
...
Рейтинг: 0 / 0
SQL server instances
    #32023957
Фотография cvasil
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Если я правильно понял вопрос, то Вам подойдет утилитка SQLPing.
Исходник и бинарь можно взять здесь.
http://www.sqlsecurity.com/scripts.asp
...
Рейтинг: 0 / 0
SQL server instances
    #32023960
Фотография Дед Маздай
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Я почитал статью Q287932 в Knowledge Base и вот какое место в ней меня заинтересовало:
In addition, a named instance of SQL Server 2000 will use a dynamic destination port by default... The SQL Server Network Utility should be used to configure the destination port...
Otherwise, the client computer would need to open a random UDP port and the server UDP port 1434 will be used to send the instance name, and if the instance is clustered, the version of the SQL instance, the TCP port number that the instance is listening on, and the named pipe that the instance is using.
Т.е. если я правильно понял, если мы не оговариваем конкретный инстанс, то достаточно послушать на сервере UDP 1434 и он пришлет по нему всю инфу по инстансам, к-е на этом ip живут. Или же имя инстанса все-таки должно быть задано точно? Времени нет, кто проверит?
...
Рейтинг: 0 / 0
SQL server instances
    #32023963
Фотография cvasil
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Совершенно верно.
UDP порт 1434 выдает информацию обо всех инстансах MSSQL2000, работающих на хосте.
Вот цитата из BOL (Controlling Net-Libraries and Communications Addresses):

...
When an application requests a connection to a remote computer, Dbnetlib.dll
opens a connection to UDP port 1434 on the computer network name specified in
the connection. All computers running an instance of SQL Server 2000 listen on
this port. When a client Dbnetlib.dll connects to this port, the server returns
a packet listing all the instances running on the server.
...
...
Рейтинг: 0 / 0
SQL server instances
    #32023995
xamuga
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Там же:

...Default instances of SQL Server use TCP port 1433 by default. Named instances, however, dynamically assign an unused TCP port number the first time the instance is started. The named instance can also dynamically change it's TCP port address on a subsequent startup if the original TCP port number is being used by another application. SQL Server only dynamically changes to an unused TCP port if the port it is currently listening on was dynamically selected. That is, if the port was statically selected (manually), SQL Server will display an error and continue to listen on other ports. It is unlikely another application would attempt to use 1433 since that port is registered as a well-known address for SQL Server.
When using a named instance of SQL Server with a firewall, use the Server Network Utility to configure the named instance to listen on a specific TCP port...

Так, что если кто-то уже слушает 1433 порт или админ руками убрал сервер с 1433 порта, то на каких портах слушает сервер - ты не узнаешь ..
Я часто основной рабочий инстанс сам убираю с 1433 порта.. Не охота узнать как-нибудь утром, что кто-то нашел новую дыру в безопасности и хакнул тебе базулю...
...
Рейтинг: 0 / 0
SQL server instances
    #32023996
xamuga
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Там же:

...Default instances of SQL Server use TCP port 1433 by default. Named instances, however, dynamically assign an unused TCP port number the first time the instance is started. The named instance can also dynamically change it's TCP port address on a subsequent startup if the original TCP port number is being used by another application. SQL Server only dynamically changes to an unused TCP port if the port it is currently listening on was dynamically selected. That is, if the port was statically selected (manually), SQL Server will display an error and continue to listen on other ports. It is unlikely another application would attempt to use 1433 since that port is registered as a well-known address for SQL Server.
When using a named instance of SQL Server with a firewall, use the Server Network Utility to configure the named instance to listen on a specific TCP port...

Так, что если кто-то уже слушает 1433 порт или админ руками убрал сервер с 1433 порта, то на каких портах слушает сервер - ты не узнаешь ..
Я часто основной рабочий инстанс сам убираю с 1433 порта.. Не охота узнать как-нибудь утром, что кто-то нашел новую дыру в безопасности и хакнул тебе базулю...
...
Рейтинг: 0 / 0
SQL server instances
    #32045392
crot
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
A izmenenie porta 1433 na drugoi vliaet na skorost?
Est li raznica kakoi port vibrat?

Spasibo
...
Рейтинг: 0 / 0
8 сообщений из 8, страница 1 из 1
Форумы / Microsoft SQL Server [игнор отключен] [закрыт для гостей] / SQL server instances
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]