WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-25-2004, 02:13 PM
WebProWorld Member
 

Join Date: Jul 2003
Posts: 39
SusieG RepRank 0
Default Cold Fusion Datasource Help

My website is cold fusion and I would like to install a new script with an access database.

I need to set the datasource but don't know how to go about this.

Can anyone help?
Reply With Quote
  #2 (permalink)  
Old 06-30-2004, 08:30 AM
WebProWorld New Member
 

Join Date: Jul 2003
Location: Jupiter, FL
Posts: 21
fmtroute RepRank 0
Default Cold Fusion Datasource Help

The datasource is simply a name that you use to refer to your database. On a local machine you set it up thru the control panel|ODBC. Your provider (host) should have a link in their control panel which would be something like "Create DSN." You provide the datasource name "mydatabase" and the physical path "C:\inetpub\wwwroot\mydatabase.mdb."

In Coldfusion you refer to the datasource as follows:
<cfquery datasource="mydatabase" name="getinfo">

</cfquery>
__________________
Foye M Troute
Internet Consultant/Developer
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0