![]() |
Creating a DSN![]() ![]() ![]() ![]() ![]()
The win32::ODBC module and other ODBC applications connect to your Access database through a Data Source Name (DSN). For CDBC to work across many different database engines, it requires a standard way to communicate with all database. The DSN contains a common set of information that all databases must supply. You must create the DSN on your computer before you can begin connecting your program to your database.
There are two primary types of DSNs: A User DSN is accessible by only the account that created it. If you are creating DSN for your own use, you should create a User DSN. A System DSN is accessible by any account. If you are creating a DSN that will be used by multiple users, you should create a System DSN. The DSN created for our examples will eventually be accessed through a web server, so it should be a System DSN. You can create a DSN through the Windows Control Panel or by using the win32: ODBC module. The following section describe the procedure to create DSN using Windows Control Panel. Using the Control Panel To create DSN for your Access database, open your Control Panel and click on the ODBC icon. Clicking on the ODBC icon brings up the ODBC Data Source Administrator, which is used to define and configure DSN entries. Select the System DSN tab and then click on the Add button to bring up the Create New Data Source dialog box. In this dialog box, select the specific driver used for your database engine. Selecting the Microsoft Access driver brings up the ODBC Microsoft Access 97 Setup dialog box. Here, you enter the name of your DSN, which is the same name you will use in your program to reference the DSN. You also can enter a brief description of the DSN. Then select the Database radio button in the System Database portion of the dialog box and click on the System Database button The Select System Database dialog box appears. Navigate to the directory that contains your database and select it.
|
|
CGI
Advantages of CGI
How CGI Works
Compiled Versus Interpreted
Input to CGI
CGI Introduction Program
HTML Forms
Accepting Input from the Browser
CGI Environment Variables
Get Versus Post Method
Get Method
Post Method
Sample <FORM> Based CGI Program
Complete Example for <FORM>
Output from CGI
Header and Body:Anatomy of Server Response
HTTP Headers
Carriage Returns and Newlines
Formatting Output CGI Common MIME TypesLocation Header Useful HTTP Stautus Codes Other Headers Dynamic Pages Sending Images Displaying the Current Date Feedback Form Program Server Side Includes Server Side Include Environment Variables Displaying the Date with Date Counter Example of SSI Counting the Number of Accesses Better Approach Towards CGI Program Client Versus Server Accessing a HTML Document Submitting a Form Accessing a CGI Program Databases ODBC Creating a DSN Win32::ODBC Module Creating a Table Inserting Data into a Table Deleting Data from a Table
Updating Data in a Table
Selecting Data from a Table Operating Systems Security Securing Your Web Server Writing Secure CGI ProgramWeb DesignDomain Names Home
FAQ
My Account
IP Address
SSL Certificates DNSWeb Hosting Web Server Cheap Web Design Dedicated web hosting Managed web hostingE Commerce Principles of E-Commerce E-Banking Electronic Payment System E-Security Credit Cards Smart Cards
The Mailbox POP Server SMTP Server IMAP Protocol |
| Home | Web Hosting | Web Design | Sitemap |
| Copyright (C) 2007. Web Domain design hosting. All rights reserved. |