asp tutorials, asp.net tutorials, sample code, and Microsoft news from 15Seconds
Data Access  |   Troubleshooting  |   Security  |   Performance  |   ADSI  |   Upload  |   Email  |   Control Building  |   Component Building  |   Forms  |   XML  |   Web Services  |   ASP.NET  |   .NET Features  |   .NET 2.0  |   App Development  |   App Architecture  |   IIS  |   Wireless
 
Pioneering Active Server
 Power Search





Active News
15 Seconds Weekly Newsletter
• Complete Coverage
• Site Updates
• Upcoming Features

More Free Newsletters
Reference
News
Articles
Code Samples
Components
Tools
New
Free
Downloads
Vendors
FAQ
Feedback
Books
Links
DL Archives
Community
Messageboard
List Servers
Mailing List
WebHosts
Consultants
Tech Jobs
15 Seconds
Home
Site Map
Press
Legal
Privacy Policy
internet.commerce














internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

HardwareCentral
Compare products, prices, and stores at Hardware Central!

There are three types of datasources, Local, System, and File.

Local datasources only allow the user creating the datasource, and the applications running under that user's name, to access the datasource. Local datasources are not good for Active Server pages, or ISAPI applications because these applications run under the system account, not under the account of the person creating a datasource.

System datasources allow every application on that computer to access the datasource, no matter what user created the datasource. These types of datasources can be used for ISAPI applications and Active Server pages. The configuration for the datasource is stored within the registry just like the local datasource.

File datasources are files that are configured with the datasource information. Any application, which has permissions to read the file, can connect to this datasource. The ODBC team recommends these types of datasources, because ODBC configuration information can be transported as easy as transporting a file.

To create a ODBC System datasource for SQL Server follow the steps below.

  1. Open the control panel.
  2. Select the ODBC icon.
  3. Click the System DSN Tab.
  4. Click the Add button.
  5. Select SQL Server from the Installed ODBC Driver list.
  6. Enter the data source name. This name is used by the application to connect to the datasource. It must be unique to the machine.
  7. Enter the server name. If the web server and the SQL Server are on the same machine, this selection should be (local).
  8. Click on Options.
  9. End the database name. This is the name of the database on the SQL Server. Left blank it will default to the default SQL Server database. The default SQL Server database is configurable from SQL Server.
  10. Exit by clicking OK, then Close, and then Close a final time.




email this code sample to a colleague

Related Articles
Dec 10, 1996 - ODBC 3.0 Connection Pooling
This issue of 15 Seconds contain an example of how to create an ISAPI server extension in MSVC 4.2 with ODBC 3.0 connection pooling. There is also an evaluation of ODBC 3.0, OLEDB, ADO and DAO.
[Read This Article]  [Top]
Related Books
Teach yourself Active Web Database Programming in 21 Days
Related Knowledge Base Articles
FIX: Repetitive Connect/Disconnect May Shut Dow...
Q164734 - 1997.06.23
INF: SQL Logs 17832 With Multiple TCP\IP Connec...
Q154628 - 1997.06.23
INF: Frequently Asked Questions About ODBC Conn...
Q169470 - 1997.07.10

Support the Active Server Industry



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers