PC Review


Reply
Thread Tools Rate Thread

Data Access Page Mapped to Database (2003)

 
 
Arturo
Guest
Posts: n/a
 
      16th Dec 2009
I posted this yesterday and got a reply from Sylvain Lafontaine telling me to
use SQL because you can't use Access as the Connection String with a Data
Access Page on the internet. Or, at least that what it souned like to me. The
post seemed to disappear so I could not reply. Here is the post:

START OF POST
I have a folder named Students. In it I have a database named MYBE.mdb. I
created a DAP named Students using a table in MYBE.mdb. As you know, it
created a DAP in the folder named Students.

I first put a record in the DAP using the Connection String
"C:\Students\MYBE.mdb." It worked great. I then put the folder and the two

files on the web. I added a second record, closed the site, returned to the
site, and the records were still there.

It was working great. Then, through some checking, I found out it was
updating the database C:\Students\MYBE.mdb and not the database in the web
folder. I will use fictitious names to illustrate what I did next.

The DAP is located at "http://www.sitename.us/Students/Students.htm." In the
Connection String of the DAP, I put the location
"http://www.sitename.us/Students/MYBE.mdb."

When I open the web page I get two Microsoft Internet Explorer error
messages. The first is "Data provider could not be initialized." The second
is "Not a valid file name."
END OF POST

HERE IS MY REPLY
We intend to use SQL at a later time. Due to time constraints and employee
availability, I have volunteered to help if I could do this in Access. We
need to gather information right now and I can manage the data if I can get
it into Access. Later, we will convert all this to SQL as Sylvain explained.

Right now, I need to know: If you can't use Access as a Connection String
file, or, if you can. If you can, would you please tell me how to fix my
dilemna?

Thank you.

 
Reply With Quote
 
 
 
 
Sylvain Lafontaine
Guest
Posts: n/a
 
      16th Dec 2009


--
Sylvain Lafontaine, ing.
MVP - Windows Live Platform
Blog/web site: http://coding-paparazzi.sylvainlafontaine.com
Independent consultant and remote programming for Access and SQL-Server
(French)


"Arturo" <(E-Mail Removed)> wrote in message
news:C6AFFD56-700E-447C-93B6-(E-Mail Removed)...
>I posted this yesterday and got a reply from Sylvain Lafontaine telling me
>to
> use SQL because you can't use Access as the Connection String with a Data
> Access Page on the internet. Or, at least that what it souned like to me.
> The
> post seemed to disappear so I could not reply. Here is the post:
>
> START OF POST
> I have a folder named Students. In it I have a database named MYBE.mdb. I
> created a DAP named Students using a table in MYBE.mdb. As you know, it
> created a DAP in the folder named Students.
>
> I first put a record in the DAP using the Connection String
> "C:\Students\MYBE.mdb." It worked great. I then put the folder and the two
>
> files on the web. I added a second record, closed the site, returned to
> the
> site, and the records were still there.
>
> It was working great. Then, through some checking, I found out it was
> updating the database C:\Students\MYBE.mdb and not the database in the web
> folder. I will use fictitious names to illustrate what I did next.
>
> The DAP is located at "http://www.sitename.us/Students/Students.htm." In
> the
> Connection String of the DAP, I put the location
> "http://www.sitename.us/Students/MYBE.mdb."
>
> When I open the web page I get two Microsoft Internet Explorer error
> messages. The first is "Data provider could not be initialized." The
> second
> is "Not a valid file name."
> END OF POST
>
> HERE IS MY REPLY
> We intend to use SQL at a later time. Due to time constraints and employee
> availability, I have volunteered to help if I could do this in Access. We
> need to gather information right now and I can manage the data if I can
> get
> it into Access. Later, we will convert all this to SQL as Sylvain
> explained.
>
> Right now, I need to know: If you can't use Access as a Connection String
> file, or, if you can. If you can, would you please tell me how to fix my
> dilemna?
>
> Thank you.


It's not just the Connection String, the provider itself (either ODBC or
OLEDB) for JET cannot work over the WAN (Wide Area Network); only over a
local LAN or through a VPN. (The VPN will emulate a LAN over the WAN but in
the case of JET, the performance will be probably abysmal up to a point of
making it unusable.)

Even in the case of SQL-Server, you must be careful about the performance
when you work over the WAN. If you don't know how to do this properly, the
performance might also abysmal (unless the required design are simple; with
few and simple queries).

In my opinion, if you want to access a database over the Internet (WAN, not
LAN), the easiest way would be to use remoting such as Terminal
Server/Citrix or Thinsoft. (Thinsoft seems to be the lest costly of all but
I never used it personally). If you have only a handful of machines, you
could also use Remote Desktop to an installed desktop machine but this
should be seen as a solution of last resort.

Even in the case that you want to switch to SQL-Server, using Remoting is
probably the way to go if you want to keep Access as the FrontEnd instead of
going with other technologies such as ASP.NET or .NET Forms. To keep Access
as the Frontend over the Internet without using TerminalServer, Citrix or
Thinsoft, you must really know what you are doing; even with SQL-Server as
the backend.

As your primary question was about DAP, I would suggest to repost about
using Remoting if you want some further advice on this.

--
Sylvain Lafontaine, ing.
MVP - Windows Live Platform
Blog/web site: http://coding-paparazzi.sylvainlafontaine.com
Independent consultant and remote programming for Access and SQL-Server
(French)


 
Reply With Quote
 
Arturo
Guest
Posts: n/a
 
      16th Dec 2009
Thanks for your quick reply. I have an SQL programmer that I am working with.
We can set up an SQL backend. If we do this and put it out on our website,
will the DAP pages still work well with the SQL?

The reason I ask this is that if they do, I can create the DAP's very
quickly while he and I build the SQL backend. What do you think? Will this
work or do I have to use something like ASP.Net?

"Sylvain Lafontaine" wrote:

>
>
> --
> Sylvain Lafontaine, ing.
> MVP - Windows Live Platform
> Blog/web site: http://coding-paparazzi.sylvainlafontaine.com
> Independent consultant and remote programming for Access and SQL-Server
> (French)
>
>
> "Arturo" <(E-Mail Removed)> wrote in message
> news:C6AFFD56-700E-447C-93B6-(E-Mail Removed)...
> >I posted this yesterday and got a reply from Sylvain Lafontaine telling me
> >to
> > use SQL because you can't use Access as the Connection String with a Data
> > Access Page on the internet. Or, at least that what it souned like to me.
> > The
> > post seemed to disappear so I could not reply. Here is the post:
> >
> > START OF POST
> > I have a folder named Students. In it I have a database named MYBE.mdb. I
> > created a DAP named Students using a table in MYBE.mdb. As you know, it
> > created a DAP in the folder named Students.
> >
> > I first put a record in the DAP using the Connection String
> > "C:\Students\MYBE.mdb." It worked great. I then put the folder and the two
> >
> > files on the web. I added a second record, closed the site, returned to
> > the
> > site, and the records were still there.
> >
> > It was working great. Then, through some checking, I found out it was
> > updating the database C:\Students\MYBE.mdb and not the database in the web
> > folder. I will use fictitious names to illustrate what I did next.
> >
> > The DAP is located at "http://www.sitename.us/Students/Students.htm." In
> > the
> > Connection String of the DAP, I put the location
> > "http://www.sitename.us/Students/MYBE.mdb."
> >
> > When I open the web page I get two Microsoft Internet Explorer error
> > messages. The first is "Data provider could not be initialized." The
> > second
> > is "Not a valid file name."
> > END OF POST
> >
> > HERE IS MY REPLY
> > We intend to use SQL at a later time. Due to time constraints and employee
> > availability, I have volunteered to help if I could do this in Access. We
> > need to gather information right now and I can manage the data if I can
> > get
> > it into Access. Later, we will convert all this to SQL as Sylvain
> > explained.
> >
> > Right now, I need to know: If you can't use Access as a Connection String
> > file, or, if you can. If you can, would you please tell me how to fix my
> > dilemna?
> >
> > Thank you.

>
> It's not just the Connection String, the provider itself (either ODBC or
> OLEDB) for JET cannot work over the WAN (Wide Area Network); only over a
> local LAN or through a VPN. (The VPN will emulate a LAN over the WAN but in
> the case of JET, the performance will be probably abysmal up to a point of
> making it unusable.)
>
> Even in the case of SQL-Server, you must be careful about the performance
> when you work over the WAN. If you don't know how to do this properly, the
> performance might also abysmal (unless the required design are simple; with
> few and simple queries).
>
> In my opinion, if you want to access a database over the Internet (WAN, not
> LAN), the easiest way would be to use remoting such as Terminal
> Server/Citrix or Thinsoft. (Thinsoft seems to be the lest costly of all but
> I never used it personally). If you have only a handful of machines, you
> could also use Remote Desktop to an installed desktop machine but this
> should be seen as a solution of last resort.
>
> Even in the case that you want to switch to SQL-Server, using Remoting is
> probably the way to go if you want to keep Access as the FrontEnd instead of
> going with other technologies such as ASP.NET or .NET Forms. To keep Access
> as the Frontend over the Internet without using TerminalServer, Citrix or
> Thinsoft, you must really know what you are doing; even with SQL-Server as
> the backend.
>
> As your primary question was about DAP, I would suggest to repost about
> using Remoting if you want some further advice on this.
>
> --
> Sylvain Lafontaine, ing.
> MVP - Windows Live Platform
> Blog/web site: http://coding-paparazzi.sylvainlafontaine.com
> Independent consultant and remote programming for Access and SQL-Server
> (French)
>
>
> .
>

 
Reply With Quote
 
Sylvain Lafontaine
Guest
Posts: n/a
 
      16th Dec 2009
"Arturo" <(E-Mail Removed)> wrote in message
news:66B378A8-857C-4F8B-87FA-(E-Mail Removed)...
> Thanks for your quick reply. I have an SQL programmer that I am working
> with.
> We can set up an SQL backend. If we do this and put it out on our website,
> will the DAP pages still work well with the SQL?
>
> The reason I ask this is that if they do, I can create the DAP's very
> quickly while he and I build the SQL backend. What do you think? Will this
> work or do I have to use something like ASP.Net?


This will work but I will be surprised if you really can build the DAP's
very quickly; unless your forms are very simple.


 
Reply With Quote
 
Arturo
Guest
Posts: n/a
 
      17th Dec 2009
Thanks again. I'll let you know how it goes.

"Sylvain Lafontaine" wrote:

> "Arturo" <(E-Mail Removed)> wrote in message
> news:66B378A8-857C-4F8B-87FA-(E-Mail Removed)...
> > Thanks for your quick reply. I have an SQL programmer that I am working
> > with.
> > We can set up an SQL backend. If we do this and put it out on our website,
> > will the DAP pages still work well with the SQL?
> >
> > The reason I ask this is that if they do, I can create the DAP's very
> > quickly while he and I build the SQL backend. What do you think? Will this
> > work or do I have to use something like ASP.Net?

>
> This will work but I will be surprised if you really can build the DAP's
> very quickly; unless your forms are very simple.
>
>
> .
>

 
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
Data Access Page Mapped to Database (2003) Arturo Microsoft Access 1 16th Dec 2009 03:24 AM
Data Access Page & Database Updates confused!! Microsoft Access Forms 0 15th Jun 2009 03:35 PM
Searching an Access 2003 Database Using Data Access Pages Spent Microsoft Access 7 29th Jun 2006 04:00 PM
How do I put a Data Access Page on a CD with the database offline? =?Utf-8?B?bWxhMDFrcXVpbm4=?= Microsoft Access 0 5th Dec 2005 09:00 PM
Data Access page cannot connect to database Chani Microsoft Access 0 26th Aug 2003 06:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:51 PM.