Adobe Dreamweaver API Reference CS5 Manual de usuario Pagina 63

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 533
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 62
58
DREAMWEAVER API REFERENCE
The database API
Last updated 8/27/2013
ConnectionString="jdbc:inetdae:velcro-qa-5:1433?database=pubs"
DriverName="com.inet.tds.TdsDriver2"
The connection strings for Connection 1 and Connection 2 are the same. Connection 2 connects to a more recent
version of the
TdsDriver driver. You should pass the driver name to this function to fully qualify the connection name
you want to return.
Arguments
connString, {driverName}
The connString argument is the connection string that gets the connection name.
The driverName argument, which is optional, further qualifies the connString argument.
Returns
A connection name string that corresponds to the connection string.
Example
The following code returns the string "EmpDB":
var connectionName = MMDB.getConnectionName ¬
("dsn=EmpDB;uid=;pwd=");
MMDB.getConnectionString()
Availability
Dreamweaver UltraDev 1.
Description
This function gets the connection string that is associated with the named connection.
Arguments
connName
The connName argument is a connection name that is specified in the Connection Manager. It identifies the
connection string that Dreamweaver should use to make a database connection to a live data source.
Returns
A connection string that corresponds to the named connection.
Example
The code var connectionString = MMDB.getConnectionString ("EmpDB") returns different strings for an ADO
or JDBC connection.
For an ADO connection, the following string can return:
"dsn=EmpDB;uid=;pwd=";
For a JDBC connection, the following string can return:
"jdbc:inetdae:192.168.64.49:1433?database=pubs&user=JoeUser&¬
password=joesSecret"
Vista de pagina 62
1 2 ... 58 59 60 61 62 63 64 65 66 67 68 ... 532 533

Comentarios a estos manuales

Sin comentarios