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

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

???
...
Рейтинг: 0 / 0
26.02.2002, 15:27:44
    #32023946
Cold_AYS
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SQL server instances
жаль, что никто не знает
...
Рейтинг: 0 / 0
26.02.2002, 17:49:45
    #32023957
cvasil
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SQL server instances
Если я правильно понял вопрос, то Вам подойдет утилитка SQLPing.
Исходник и бинарь можно взять здесь.
http://www.sqlsecurity.com/scripts.asp
...
Рейтинг: 0 / 0
26.02.2002, 19:01:17
    #32023960
Дед Маздай
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SQL server instances
Я почитал статью 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
26.02.2002, 20:16:34
    #32023963
cvasil
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SQL server instances
Совершенно верно.
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
27.02.2002, 08:25:40
    #32023995
xamuga
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SQL server instances
Там же:

...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
27.02.2002, 08:25:51
    #32023996
xamuga
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SQL server instances
Там же:

...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
23.08.2002, 06:10:31
    #32045392
crot
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SQL server instances
A izmenenie porta 1433 na drugoi vliaet na skorost?
Est li raznica kakoi port vibrat?

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


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