Syntax
<pc:DropDatabase
rdbms="sqlserver"
connectstr="connectstr"
database="database"
dba="dba"
dbapwd="dbapassword"
droplogin="droplogin"
/>
droplogin ::= { yes | no }
|
The required rdbms must be sqlserver. The required connectstr must be the string identifying the Server Name in terms of Microsoft SQL Server Management Studio. This is the same database connect string that you use in USoft Binder to access application data, except for the database suffix introduced by a colon. The required database must be the database name. Compare the following example string in the two cases:
USoft Binder
|
USoft Blend, pc:DatabaseExists
|
MYSERVERNAME\SQLEXPRESS:MYDATABASE
|
connectstr="MYSERVERNAME\SQLEXPRESS"
|
database="MYDATABASE"
|
The combination of dba and dbapwd is a username/password combination that allows you to access the required database information using SQL Server Authentication. This combination is optional if you are connecting to the database server using Windows Authentication, and required if you are using SQL Server Authentication.
If you pass droplogin="yes", then the Login object with the same name as the database will also be dropped.
Example
This example drops the USD91_TRAVEL Database and the USD91_TRAVEL Login object, on condition that you have access to the database server using Windows Authentication.
The Object Explorer catalog in MS SQL Server Management Studio continues to show a database dropped in this way, even after you execute its Refresh (F5) function. To use this Object Explorer to check whether the database has effectively been dropped, you must expand the Tables subnode to see that the list of user tables is empty.
<pc:DropDatabase
rdbms="sqlserver"
connectstr="P6400100200\SQLEXPRESS"
database="USD91_TRAVEL"
droplogin="yes"
/>
|
|