![]() |
![]() |
|
| Home I Company I Services I Documentation I Downloads I E-Support |
| home -> documentation -> language reference -> alias property | ||||||||||
|
Mandatory on the DATASET and QRYEXEC elements, the ALIAS property refers to the database connection that will be used when executing a certain SQL sentence. This connection alias was previously defined using the DBSP Configuration tool.
This property is always used for operations that involve database access. Each alias should reference a unique database although you could have two or more different aliases referencing the same database. However, you can not have the same alias name for two or more different databases. The ALIAS property is mandatory in DBSP tags:DATASET QRYEXEC
Example 1. Using alias with DATASET Tag. The following example shows how to display the data obtained with a simple SELECT statement using a DATASET tag. Source code
Test example
Example 2. Using QRYEXEC Tag. This example shows how to update records using a web page. Source code
OperativeExamples/QryExec/Update.dbsp
OperativeExamples/QryExec/UpdateExec.dbsp
Test example
|