Three Tier Access Database page

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Delf (delfmeek_at_yahoo.com)
Date: 06/03/04

  • Next message: Nenad Markovic: "Selecting drive, folder and file on a form"
    Date: 3 Jun 2004 09:41:53 -0700
    
    

    hello all,

    I'm new to Data Access Pages, and am trying to deploy a simple data
    access page on the internet.

    I've followed the instructions in Microsoft's MSDN article "Deploying
    Data Access Pages on the Internet or Your Intranet".

    I do not understand what I am doing wrong.

    When I place the data access page in the C:\Inetpub\wwwroot, and try
    to browse the server name by typing
    http://servername/dataccesspage.htm, all i get is the header section
    of the Data Access Page, but no controls that allow a person to enter
    data. if I open the web page directly through windows explorer, it
    tells me "The UseRemoteProvider propery is supported only for pages
    saved to Web folders". So, I do believe I have the UseRemoteProvider
    property in the access database set properly.

    It acts like the web page cannot connect to the database, which is
    also located on the webserver. Can anybody give me any pointers? I'm
    starting to get very frustrated with this. Do I need to install
    something else on my server?

    Below is a copy of my MSDFMAP.ini file from my Windows 2000 Server.

    ;[connect name] will modify the connection if ADC.connect="name"
    ;[connect default] will modify the connection if name is not found
    ;[sql name] will modify the Sql if ADC.sql="name(args)"
    ;[sql default] will modify the Sql if name is not found
    ;Override strings: Connect, UserId, Password, Sql.
    ;Only the Sql strings support parameters using "?"
    ;The override strings must not equal "" or they are ignored
    ;A Sql entry must exist in each sql section or the section is ignored
    ;An Access entry must exist in each connect section or the section is
    ignored
    ;Access=NoAccess
    ;Access=ReadOnly
    ;Access=ReadWrite
    ;[userlist name] allows specific users to have special access
    ;The Access is computed as follows:
    ; (1) First take the access of the connect section.
    ; (2) If a user entry is found, it will override.

    [connect default]
    ;If we want to disable unknown connect values, we set Access to
    NoAccess
    Access=ReadWrite

    [connect C:\database\db1.mdb]
    ;If we want to disable unknown connect values, we set Access to
    NoAccess
    Access=ReadWrite

    [sql default]
    ;If we want to disable unknown sql values, we set Sql to an invalid
    query.
    ;Sql=" "

    [connect CustomerDatabase]
    Access=ReadWrite
    Connect="DSN=AdvWorks"

    [sql CustomerById]
    Sql="SELECT * FROM Customers WHERE CustomerID = ?"

    [connect AuthorDatabase]
    Access=ReadOnly
    Connect="DSN=MyLibraryInfo;UID=MyUserID;PWD=MyPassword"

    [userlist AuthorDatabase]
    Administrator=ReadWrite

    [sql AuthorById]
    Sql="SELECT * FROM Authors WHERE au_id = ?"

    Thanks,

    Delf


  • Next message: Nenad Markovic: "Selecting drive, folder and file on a form"

    Relevant Pages

    • Re: SQL CE 3 and CF 1.0 support
      ... > We have designed our application so that all data access logic is ... > using our automated upgrade mechanism and at the same time upgrade the ... > from the engine download and the database upgrade delay). ... > I also know of applications that have been using SQL CE databases in RAM ...
      (microsoft.public.sqlserver.ce)
    • Re: Database Application Example
      ... SQL database and although it is working fine I'm not sure I'm going about it in the best way. ... If you abstract the form from the data access, then it shouldn't matter what the form Web or Windows is being used. ... The UI uses a business layer object to access the data access layer object. ... click 'Design Patterns Bootcamp: Model View * Patterns* ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: Question about Datasets and ASP.NET
      ... SQL server? ... Some features or products Microsoft gives developers to use ... data access and retrain them, because data binding is all they knew. ...
      (microsoft.public.dotnet.languages.vb)
    • Re: Data Access...
      ... > originally had to deal with DATA ACCESS lets talk in terms of DATA ACCESS. ... > manipulate data, for those people that need to manipulate data in ... >> SQL wouldn't accommodate everyone to start with. ... > Using the ANSI standard is a better soution, ...
      (microsoft.public.dotnet.framework)