Creates a new instance of the
MsSqlStorage Class.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Function New( _
ByVal user As String, _
ByVal password As String, _
ByVal host As String, _
ByVal database As String _
) |
| Visual Basic (Usage) | Copy Code |
|---|
Dim user As String
Dim password As String
Dim host As String
Dim database As String
Dim instance As MsSqlStorage(user, password, host, database)
|
Parameters
- user
- Specifies the name of the user that connects to the storage.
- password
- Specifies the password of the user that connects to the storage.
- host
- Specifies the hostname of the machine where the database is installed.
- database
- Specifies the name of the database that you want connect to.
Exceptions
| Exception | Description |
| ArgumentNullException | User is null, password is null and database is null. |
Requirements
Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family
See Also