Syntax
<pc:DatabaseExists
rdbms="sqlserver"
connectstr="connectstr"
database="database"
dba="dba"
dbapwd="dbapassword"
/>
|
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. In either case, this username/password information is returned in the return XML string if the database exists.
Example
This example only works if you have access to the database server using Windows Authentication:
<pc:DatabaseExists
rdbms="sqlserver"
connectstr="P6400100200\SQLEXPRESS"
database="USD91_TRAVEL"
/>
|
If the USD91_TRAVEL database account exists, the return value looks like this:
<yes
connectstr="Server=L3100100247\SQLEXPRESS;Integrated security=SSPI;database=USD91_TRAVEL2"
usoftconnectstr="L3100100247\SQLEXPRESS:USD91_TRAVEL2" />
|
If the USD91_TRAVEL database account does not exist, the return value looks like this:
<no>
<SqlServers />
</no>
|
|