ColdFusion lets you access SQL Server databases from both Windows NT and UNIX, via ODBC and OLE DB drivers.
If ColdFusion Server is installed on a Windows NT server, you can configure Microsoft SQL Server as a ColdFusion data source using any either an ODBC or OLE DB driver. For information about using OLE DB drivers with ColdFusion data sources, see "OLE DB Drivers".
![]() |
ODBC: Microsoft SQL Server Options (Windows) |
The following table describes ColdFusion ODBC options for Microsoft SQL Server data sources. You set these options when you configure a ColdFusion data source. See "Adding Data Sources for ColdFusion" for more information.
Microsoft SQL Server ODBC Options | |
---|---|
Option | Description |
Data Source Name | A name for your ODBC data source. |
Description | A short description of the data source. |
Server | The name of the server hosting the database you want to use. |
Use Trusted Connection -- Allows SQL Server to authenticate users based on their Windows NT logins. You can use this option if the SQL Server database is using an Integrated or Mixed security mode. Integrated security uses NT authentication schemes for all connections. Only users with trusted connections are allowed to connect to SQL Server. It is not necessary to populate the ColdFusion username and password fields because SQL Server ignores these values; using a trusted connection connects to the database as a ColdFusion service user, not a ColdFusion runtime user. Mixed security allows both trusted and nontrusted connections. If the username and password are left blank, SQL Server will use NT domain credentials. However, if you do pass a username and password, SQL Server tries to authenticate using the passed information. | |
Login Info | Database -- The name of the SQL Server database. |
Language -- The national language used by SQL Server. | |
Generate Stored Procedure for Prepared Statement -- Stored procedures are created for prepared statements when this option is selected. The SQL Server driver prepares a statement by placing it in a procedure and compiling that procedure. | |
Translation | Convert OEM to ANSI characters -- If the SQL Server client computer and SQL Server are using the same non-ANSI character set, select this option. For example, if SQL Server uses code page 850 and this client computer uses code page 850 for the OEM code page, selecting this option will ensure that extended characters stored in the database are properly converted to ANSI for use by Windows-based applications. |
If ColdFusion Server is installed on a Solaris server, you can configure Microsoft SQL Server as a ColdFusion data source using an ODBC driver.
![]() |
ODBC: MERANT MS SQL Server Options for (Solaris) |
The following table describes ColdFusion options for the MERANT MS SQL Server ODBC driver. You set these options when you configure a ColdFusion data source. See "Adding Data Sources for ColdFusion" for more information
MERANT MS SQL Server ODBC Options | |
---|---|
Option | Description |
Data Source Name | A name for your ODBC data source. |
Description | Descriptive information about the data source. |
Database Name | The name of the database to which you want to connect. |
Server Name | The name of the server that contains the SQL database you want to access. |
Workstation ID | The workstation ID used by the client. |
Performance | Row Limit -- The number of rows the driver retrieves from the server for a fetch. Enabling this option can increase performance by reducing network traffic. Disable database cursors for Select statements -- Determines whether database cursors are used for Select statements. In some cases performance degradation can occur when performing large numbers of sequential Select statements because of the amount of overhead associated with creating database cursors. |
Customization | Enable Password Encryption from Open Client Library to Server -- Determines whether password encryption can be performed from the Open Client Library to the server. |