Click or drag to resize

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
Syntax
public static int iDetachDB(
	string server,
	string user,
	string password,
	string db
)

public static int iDetachDB(
	string server,
	string user,
	string password,
	string db
)

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