CREATE [DATA] SERVICE data-service TYPE data-service-type [CATALOG [NAME] catalog-name] [DOMAIN [NAME] domain-name] [REGISTER [( catalog-name1 [,catalog-name2 …]) | ALL] [register-options]] [data-service-options]
driver= is not specified in a connection
string. If a driver is specified in a connection string using conopts-configuration-list when
creating the data service, it is used when connecting to a data source.
A standard DSN is a single-service DSN created for a particular data service and is parented to that data service. The scope is limited to one data service and contains connection information, such as server name, port, path or other connection options specific to a data service.
A federated DSN is a collection of one or more DSNs. Unlike the standard DSN which is parented to a data service, the federated DSN is parented to the federation server itself, even if it only contains DSNs from a single data service. Federated DSNs can contain other federated DSNs. Since federated DSNs are typically used to provide access to data from multiple, disparate data sources, the FedSQL dialect is required.
These system DSNs are created during installation of SAS Federation Server:
CONNECT permission to the ADMIN DSN. SAS Federation Server
automatically checks user privileges when administration SQL is submitted.
Users can submit administration SQL for which they have privileges,
such as selecting against Information Views. Some administration SQL
can be executed by the server administrator only. See the SAS
FedSQL Reference Guide for details.
To create a DSN, one of the following conditions must be met:
A user must have CONNECT permission to establish connection to a DSN. This permission is effective from the user object, inherited through the hierarchy, or acquired through group permissions. For a standard DSN, the CONNECT permission must be on (in order of inheritance):
Here is the syntax for creating a standard DSN under a data service:
CREATE DSN dsn-name UNDER data-service create-dsn-options [ AS ADMINISTRATOR ]
Federated DSNs are objects of SAS Federation Server. Therefore, they are not created under a data service. Here is the syntax for creating a federated DSN:
CREATE DSN dsn-name
create-dsn-options
ADD "(" dsn-name ["," ...] ")"