Nota:
El acceso a esta página requiere autorización. Puede intentar iniciar sesión o cambiar directorios.
El acceso a esta página requiere autorización. Puede intentar cambiar los directorios.
Get the version number of the specified instance of Microsoft SQL Server using the specified login and password to gain access.
Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Sintaxis
'Declaración
Public Function PingSqlServerVersion ( _
serverName As String, _
login As String, _
password As String _
) As ServerVersion
public ServerVersion PingSqlServerVersion (
string serverName,
string login,
string password
)
public:
ServerVersion^ PingSqlServerVersion (
String^ serverName,
String^ login,
String^ password
)
public ServerVersion PingSqlServerVersion (
String serverName,
String login,
String password
)
public function PingSqlServerVersion (
serverName : String,
login : String,
password : String
) : ServerVersion
Parámetros
- serverName
A String value that specifies the name of the instance of SQL Server.
- login
A String value that specifies the login
- password
A String value that specifies the login password.
Valor devuelto
A ServerVersion object value that specifies the version of the instance of SQL Server.
Notas
Este espacio de nombres, clase o miembro solamente se admite en la versión 2.0 de Microsoft .NET Framework.
Seguridad para subprocesos
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Plataformas
Plataformas de desarrollo
Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.
Plataformas de destino
Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.
Vea también
Referencia
Server Class
Server Members
Microsoft.SqlServer.Management.Smo Namespace
Otros recursos
How to: Use an SMO Method with a Parameter in Visual Basic .NET
Calling Methods
Administrar servidores