 | CSQLSRViDetachDB Method |
Detaches a SQL Server database from a server.
Namespace:
Geosoft.Desktop.GXNet
Assembly:
geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll) Version: 2024.2.0.25
Syntaxpublic static int iDetachDB(
string server,
string user,
string password,
string db
)
public static int iDetachDB(
string server,
string user,
string password,
string db
)
Public Shared Function iDetachDB (
server As String,
user As String,
password As String,
db As String
) As Integer
Public Shared Function iDetachDB (
server As String,
user As String,
password As String,
db As String
) As Integer
public:
static int iDetachDB(
String^ server,
String^ user,
String^ password,
String^ db
)
public:
static int iDetachDB(
String^ server,
String^ user,
String^ password,
String^ db
)
static member iDetachDB :
server : string *
user : string *
password : string *
db : string -> int
static member iDetachDB :
server : string *
user : string *
password : string *
db : string -> int
Parameters
- server
- Type: SystemString
SQL server to use - user
- Type: SystemString
User name (if blank assume NT Integrated Security) - password
- Type: SystemString
Password - db
- Type: SystemString
DB name
Return Value
Type:
Int32
0 - OK
1 - DB Operation Canceled
See Also