PC Review


Reply
Thread Tools Rate Thread

Database connection without DRW

 
 
=?Utf-8?B?U2tj?=
Guest
Posts: n/a
 
      23rd Jun 2005
I have been using FP2000 for quite some years now, using Access2000 as a
backend database.

The database is in a Fpdb folder with a DSN called Database1.

Can you tell me how I can write a manual SQL string to connect to the
database and display fields without using DRW.

THanks,

skc
 
Reply With Quote
 
 
 
 
Jon Spivey
Guest
Posts: n/a
 
      23rd Jun 2005
Hi,

It's usually better to lose the DSN and hit the database directly which you
can do like this
<%
set oConn=createobject("adodb.connection")
oConn.open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" &
Server.MapPath("/fpdb/database.mdb")
%>
If you want to stick with the DSN you can do
<%
set oConn=createobject("adodb.connection")
oConn.open "dsn=Database1"
%>

--
Cheers,
Jon
Microsoft MVP


"Skc" <(E-Mail Removed)> wrote in message
news:7A14C63F-8213-40CF-8BDA-(E-Mail Removed)...
>I have been using FP2000 for quite some years now, using Access2000 as a
> backend database.
>
> The database is in a Fpdb folder with a DSN called Database1.
>
> Can you tell me how I can write a manual SQL string to connect to the
> database and display fields without using DRW.
>
> THanks,
>
> skc



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question re: Frontpage/Database Connection (protected database) CGeek Microsoft Frontpage 2 20th Jun 2008 03:35 AM
Database Connection - Not Associated With Trusted Connection Mythran Microsoft ASP .NET 5 5th Oct 2005 11:50 PM
Creating Database Connection at runtime and writing Connection String to App.Config.. ROO Microsoft VB .NET 1 12th Apr 2005 09:19 PM
database connection lori Microsoft Access 0 5th Oct 2003 09:35 PM
DataBase connection varun varun Microsoft ASP .NET 1 7th Jul 2003 01:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:35 AM.