| Subject: | Re: Connecting to the Datasource in ColdFusion 8 vs CF 6 |
|---|---|
| From: | "MKK2" <webforumsuser@xxxxxxxxxxxxxx> |
| Date: | Mon, 28 Jul 2008 21:38:58 +0000 (UTC) |
| Newsgroups: | macromedia.coldfusion.database_access |
I ultimately discovered that what I needed was pretty simple
variables.dsService = CreateObject("java",
"coldfusion.server.ServiceFactory").DataSourceService;
variables.dataSource = variables.dsService.getDataSource(<data source
name>);
variables.dbConnection = variables.dataSource.getConnection();
<use the datasource>
variables.dbConnection.close();
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Database connections, kenreagan |
|---|---|
| Next by Date: | Re: Ignoring Rows with Empty Fields?, musicmp3 |
| Previous by Thread: | Re: Connecting to the Datasource in ColdFusion 8 vs CF 6, Ken Ford |
| Next by Thread: | Select in SQL server, emmim44 |
| Indexes: | [Date] [Thread] [Top] [All Lists] |