Connecting Dreamweaver to Access 2007 database
Hi, I am relatively new to Dreamweaver CS3; I have built a
database in MS Access 2007; I'm looking to do either of the
following;
1. Put the database form on the web, so users can enter
information straight into the database or/
2. Create a front end form in Dreamweaver and link it to my
database
Ideally, I would like to do #1
This is an internet website, not an intranet website.
Any help would be appreciated as I am growing frustrated.
Thanks,
Raymond!
matthew stuart wrote:
> I guess ASP may be the easiest to learn because all you
need to do is insert
> your windows XP disk an install IIS (Internet
Information Services). This
> enables you to serve ASP pages locally for testing.
That makes ASP easy to install, but ease of installation does
not
necessarily mean ease of learning.
> learning it
> is a different kettle of fish which is why I say get a
book. The current books
> seem to be mainly php with MySQL, but the older books
seem to be ASP with
> Access or MySQL.
There's a very good reason for that. Microsoft stopped
developing ASP in
2000. Although ASP is widely supported, and will continue to
be for the
foreseeable future, it's a technology that's going nowhere.
Anyone just
starting out to learn how to build a database-driven website
would be
better advised to learn one of the technologies that remain
in active
development. That means ASP.NET - which has a steeper
learning curve
than ASP - ColdFusion, or PHP.
Another important consideration is which database to use.
Access is not
designed to be used on a website. It works fine for small
websites that
don't get many visitors, but it creates bloated files, and
locks up when
traffic increases. Although MySQL and Microsoft SQL Server
are more
difficult to learn, they are a much better option for a
website.
I'm biased in favour of PHP and MySQL because I write books
about them,
but I would seriously advise Jedi7 to choose anything other
than Access/ASP.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Similar Messages
-
i've been trying to look for codes on how to access the Access 2007 database (.accdb).
i've done a previous JSP app with Access database, but it is of a lower version (.mdb).
i need something like the following, but for the 2007 version. is it just a matter of changing the extension for both statements, or is there more to it?
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String DBQ = request.getRealPath("sales.mdb");
String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=" + DBQ + ";DriverID=22;READONLY=true";thanks.<%@page import="java.sql.*" %>
<table boder="1">
<%
Statement statement;
Connection conn;
String url = "jdbc:mysql://localhost/dbName";
String user = "username";
String pass = "password";
try {
class.forName("com.mysql.jdbc.Driver");
conn = DriverManager.getConnection(url, user, pass);
statement = conn.createStatement();
String query = "SELECT images FROM database";
ResultSet results = statement.executeQuery(query);
while(results.next()) {
%>
<tr>
<td><img src="<%= results.getString("images") %>"></td>
</tr>
<% } %>
</table>The while loop will loop through your result set and print the table row for each image it finds in the query.
Hope this helps,
Jon -
Error Connecting to Access 2007 database
Hi there,
We are seeing the below error when trying to Connect to Access 2007 using Crystal 2008, when using the
Access/DAO connection wizard ..
Logon failed
Details: DAO Error Code: 0xd0f
Source: DAO.Workspace
Description: Unrecognised database format 'path to database\crs project database.aaadb
When we go to open the Access 07 file we have to select all files\there is no Option for Access 2007
Maybe we need to install something additional?
Many thanks
Jon KerrLook for Product info for our next version to see if it added to supported platforms for the next release of Crystal Reports.
Update:
Confirmed that Microsoft is not enhancing the DAO engine so we will not be updating our connector either. ODBC and OLE DB work great.
Even More info form our Product Team:
Just to be really clear - Microsoft is not exposing Access 2007 format databases (.accdb files) via DAO. They have declared DAO dead and are not enhancing it. OLEDB is the preferred way to connect to Access 2007 files.
As noted in the Platform Support document for Crystal Reports 2008:
DAO technology cannot be used to access the Microsoft Office 2007 file formats: Microsoft Access 2007 .accdb, Microsoft Excel 2007 .xlsx (XML) and .xlsb (Binary). These file formats are supported using the Microsoft 2007 Office System drivers for ODBC and OLEDB.
Anyone can download the Microsoft 2007 Office System drivers for ODBC and OLEDB, here:
http://www.microsoft.com/downloads/details.aspx?FamilyID=7554F536-8C28-4598-9B72-EF94E038C891&displaylang=en
There is no charge for those drivers. Of course if you have Office 2007 installed, you donu2019t need to download the drivers.
Starting with Office 2010, there will be 64-bit versions of these drivers, which will help our 64-bit Visual Studio customers.
Edited by: Don Williams on Feb 4, 2010 12:12 PM
Edited by: Don Williams on Feb 8, 2010 5:59 AM -
Connect to an Access (.mbd) database
Hi
I have run the azure website migration wizard on our webserver as we want to move everything to azure. i need help with one of my websites.
its a very simple 5 page site that uses html and asp. however the site connects to a simple microsoft access database to display a catalogue.
The location of this database was hard set in one of the pages for example c:\websites\database\test.mbd and i believe an odbc connecter was setup on the server to connect to .mdb under system dsn.
This is the code from the current site
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!--#Include file="admin/cn.asp"-->
<%
dim rs
dim rs2
dim cn
dim msg
set cn = Server.CreateObject("Adodb.Connection")
set rs = server.CreateObject("Adodb.Recordset")
cn.Open conn
sqlstring = "Select * From ProductCategories"
rs.open sqlstring, cn
%>
and then the cn.asp page this is the code from that
<%
' Connection Strings
dim Conn
' Add full path of database with filename here
cnProvider = "Provider=Microsoft.JET.OLEDB.4.0;"
cnDataSource = "Data Source =C:\websites\Testsite\database\aspProductCatalog.mdb"
Conn = cnProvider & cnDataSource
%>Hi,
From my experience, if host your site in azure, I think you need to change your Data Source, please try to use Server.Mappath to get the path, I think the database file in azure website server is not safe, I would suggest you put the database file in Azure
VM, if you don't want to use VM, please remember to back up it.
Best Regards,
Jambor
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Need help getting dreamweaver to recognize my database file
For a couple of years I have maintained a website that lists available apartments for a rental company. I want to create a search function to help potential tenants find an apartment more efficiently on the website. All the data (about 20 columns per apartment) for around 500 apartments is on a microsoft access .accdb file, database.accdb. I am following the adobe forum page:
http://www.adobe.com/support/ultradev/building/multiple_param_search/multiple_param_search 03.html
The page tells me to go to the Bindings page and click the + sign, then select Recordset. However, Recordset is not an option given to me. I am confused as to how to get Recordset to appear. Here are some technicals:
The site folder currently contains 3 files. #1 is database.accdb, the microsoft access database. #2 is getresults.jsp, which is the page I am trying to do the recordset on. #3 is searchpage.html, which contains a single search parameter with a submit button. The site is set up as a testing server.
I am using Dreamweaver CS5.5. Thank you in advance for your help>#2 is getresults.jsp, which is the page I am trying to do the recordset on.
1) JSP's are no longer supported in Dreamweaver
2) Access 2007 database was never supported in Dreamweaver
3) As far as I know JSP/Access was never a supported server model in DW.
So you are either going to have to pick a supported server model, or learn how to write code. I already mentioned most of this yesterday in your previous post. -
For the "jdbc:odbc:<driver> ...
what is the correct specification for <driver>
when trying to connect to a MS Access 2007 database?
WORKING example, please! the more detail, the better ... thanks!Sorry, no stars for that reply.
Lots of general information, but here is the crux of the problem:
Your reference from planet-source-code.com gives this
code:
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
// set this to a MS Access DB you have on your machine
String filename = "d:/java/mdbTEST.mdb";
String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=";
database+= filename.trim() + ";DriverID=22;READONLY=true}"; // add on to the end
// now we can get the connection from the DriverManager
Connection con = DriverManager.getConnection( database ,"","");
Well, that may work with previous versions of Access, but my
question is about Access 2007. Access 2007 does NOT
produce a .mdb file, but rather a .accdb file. So, this code
will obviously fail (and it does!).
Maybe I should give one star, because you pointed to lots of
semi-useful general information, but it does NOT answer the
question! -
Hay,
I am working on SAP PI 7.0 on Windows 2003 Server 64 Bit Server
Client has MS -ACCESS 2007 DB installed on windows XP Professional.
Now Question are :
1. How to Connect to MS-Access 2007 DB?
2. where would i find drivers for MS-Access 2007 DB ?
3. Where and How will I deploy Drivers them on SAP PI 7.0 ?
Regards
Prabhat Sharma.Hi, Nagarjuna ...
Where to Check for this driver....on SAP PI 7.01 Server ..
Give me the complete path .....for drivers ???
and about Connection string in XI.
jdbc:odbc:Driver={Microsoft Access Driver (*.accdb)};DBQ = IPAddess/ D Drive / sol.accdb
DBQ = IPAddess of Windows machine / D Drive / sol.accdb
is this the correct path -
> Client MSAccess DB is on Windows Platform (XP Professional) and then E Drive / and DB name is SOL .
Regards
prabhat Sharma. -
I am encountering the following error when trying to connect to an Access 2013 database:
The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.
I have Visual Studio 2013 SP3 running on Windows 8.1 64bit OS which also has Office 2013 installed (which includes MS Access 2013). My project is a WCF web service using .NET Framework 4.5.1 using any cpu as target. I have tried reluctantly
to install the older drivers as described by in the below article:
https://social.msdn.microsoft.com/Forums/en-US/1d5c04c7-157f-4955-a14b-41d912d50a64/how-to-fix-error-the-microsoftaceoledb120-provider-is-not-registered-on-the-local-machine?forum=vstsdb
and also went through the "Add Data Source" wizard in the Project menu to have the connect string automatically built. Even with the automatically built connect string I can not connect to the .accdb file from within my WCF web service.
What's odd is if I use the Database Explorer in Visual Studio it has no problem connecting the my Access file. I inspected the connect string and tried to use it as well but still get the same error. Even stranger is that I have no problem connecting
to the Access DB in an ASP.NET project on the same PC. I am also able to connect to the Access file using a simple Windows Forms application. So I'm wondering if it has something to do with trying to connect to the Access file from a WCF web service
project.
What I'd like to know is if anyone has been able to get this to work in an environment as I described above as a 64bit WCF web service project? I tried to switch my project to 32bit but when I do I get a different error which reads:
System.BadImageFormatException: Could not load file or assembly 'file:
Almost to the point of trying to get this web service project done with SQL Express but would like to know if it can be done with MS Access 2013. Any information anyone can provide to help me get past this issue is greatly appreciated. Thanks.Have you installed the 64-bit Access driver on your machine? See
Data Source Names and 64-Bit Operating Systems for the differences in odbcad32. Call %SystemRoot%\system32\odbcad32.exe to check the drivers.
How do you host your service? Stand-alone or IIS or embedded to another application? Keep in mind that IIS7 runs it in its application pool which is defaullt 64bit. Thus the bad image exception, when compiling your service as 32bit.
When you need the Access database for your service to store informtation, then I would switch to SQL Server (Express) or XML files depending on your actual needs.
Also check whether your account under which your service is run has the necessary NTFS file permissions on the access file and the folder. This is getting even more complex when it's a remote folder. -
Migrating tables from Access 2007 to an Oracle schema
Hi,
I want to migrate some tables(with data) from a remote Access 2007 database to an Oracle schema using Oracle SQL developer version 2.1.1.
Could someone help me with the list of steps that need to be performed for this migration??Having the .MDB file is not sufficient. You will need to Capture the Access database first. To do so, install SQL Developer on the machine where the Access Database (and Access software) resides.
From the "Tools / Migration / Microsoft Access Exporter" menu, choose to run the exporter corresponding to your version. Once done, transfer the XML generated
file to the machine you usually run the migration.
A tutorial named "Migrating a Microsoft Access Database to Oracle Database 11g" is available at http://st-curriculum.oracle.com/obe/db/hol08/sqldev_migration/msaccess/migrate_microsoft_access_otn.htm
Continue your migration starting from the step "Capturing the Microsoft Access Exported XML"
Cheers,
Jean-Patrick -
Iv 10 Tables consisting of atleast 10 fields each in a single Database. Bt, Im only able to connect 1 table at a time to a form using an ADO Control. Im able to add data from table 'student' to text-boxes in my form. Bt, hw can I add data from field(0) of
Table 'Student' to Textbox1 and data from field(0) of Table 'Marks' to Textbox2 using VB6??
This is the current sample coding iv got to connect a single table to a form:
Global con As New ADODB.Connection
Global rs As New ADODB.Recordset
Public Function Connect()
If con.State = 1 Then con.Close
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + App.Path + "\bca.mdb;Persist Security Info=False"
End Function
Private Sub Add_Click()
If rs.State = 1 Then rs.Close
rs.Open "select * from student", con, adOpenDynamic, adLockOptimistic
rs.AddNew
rs.Fields(0) = (Text1.Text)
rs.Fields(1) = (Text2.Text)
rs.Fields(2) = (Text13.Text)
rs.Fields(3) = (Text4.Text)
rs.Fields(4) = (Text5.Text)
rs.Fields(5) = (Text6.Text)
rs.Fields(6) = (Text7.Text)
rs.Fields(7) = (Text8.Text)
rs.Fields(8) = (Text9.Text)
rs.Fields(9) = (Text10.Text)
rs.Fields(10) = (Text11.Text)
rs.Update
MsgBox " Record Added"
End Sub
What can I do to add fields from 2 different tables to different text boxes within the same form using a single ado control using vb6 and MS Access 2007??Hi,
Since VB6 product is not supported in this forum, you may go to these forums for support:
#Where to post your VB 6 questions
http://social.msdn.microsoft.com/Forums/en-US/6a0719fe-14af-47f7-9f51-a8ea2b9c8d6b/where-to-post-your-vb-6-questions
Thank you for your understanding.
Best regards,
Franklin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Dreamweaver 8 access database connection
I have installed dreamweaver 8 on a local server running IIS
2
I am trying to connect to an access database also located on
the local sever
all connections appear to work and you can see the live data
that is in the database, but when I try to preview the page
or view from a diffrent machine. It displays a page not found
error
I think this may be related to the testing server, I am not
sure
I am running windows server 2003 and creating a .asp files
file and have configured the testing server as local
any ideas or is there a better way to sync my database to
dreamweaver
thanks
[email protected]It's obviously your connection to your db. Have you created a
DSN (via
Control Panel) or a connection string?
If you've created a DSN, which I suspect, try editing your
connection from
the Database panel, and chosoe Use DNS on Testing Server. The
reason it may
not work on another machine is your connection uses a DSN,
but of course the
DSN hasn't been created on the other machine. This would be
the same for any
other machines.
You may prefer to use a connection string instead. Should
look something
like this (modify path and file name):
"Driver={Microsoft Access Driver
(*.mdb)};DBQ=C:\Folder\mydatabase.mdb"
Let me know if you need more on this,
Piers -
Cannot connect to an Access database from DreamWeaver
Hello.
I'm creating my first web page with a DB connection.
I have a minimal DB with a simple table.
This is a DB as Access create it by default, with no password
and no
security constraints.
In DreamWeaver, I have created a default DB connection string
for Access
2000.
I have removed, from this connection string, the UserID and
the Password as
there is no password for my DB.
I have put the right path for this DB.
But it doesn't work!
I receive the message: (sorry for my bad english) cannot open
the DB, it is
already open by another user (it is not the case: the DB is
closed) or you
must have autorisation to visualised the data.
Do you have an idea ?
Alain."chucknado" <[email protected]> a écrit
dans le message de
news:fbnon3$47m$[email protected]..
> You might have a file or folder permissions problem.
Please see the
following:
>
>
>
http://livedocs.adobe.com/en_US/Dreamweaver/9.0/WSc78c5058ca073340dcda9110b1f693
> f21-79f0.html
>
> Charles Nadeau
> Dreamweaver
> Adobe Systems
>
I'm not an expert in file permissions so I have simply moved
my DB on the
HDD of my PC, before it was on another server.
So, now, I think I have no file permission problem anymore.
I can connect the DB from DreamWeaver but I cannot see the
tables !
If I open the Tables node of the db tree in the Database
window of
DreamWeaver, I receive the message:
"Error calling GetTables".
Do you have an idea or an advice ?
Thanks in advance,
Alain. -
Error establishing ODBC connection to Oracle database from Access 2007
I am trying to access via linked tables from Access 2007 my ODBC connections.
I am able to setup and test successfully in the ODBC Data Source Administrator my Data source, and Driver(Oracle in OraHome92), and I used this successfully when I had Access 2003 on this PC.
system details: Oracle 9i, MS Access 2007 on Windows XP
error - call failed:
detailed error from sqlnet.log:
Fatal NI connect error 12560, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleORCL)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=ORCL)(CID=(PROGRAM=C:\Program Files\Microsoft Office\Office12\MSACCESS.EXE)(HOST=USRN4WNCNH6DDQG)(USER=fznp29))))
VERSION INFORMATION:
TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 9.2.0.1.0 - Production
Time: 05-DEC-2008 11:38:05
Tracing not turned on.
Tns error struct:
nr err code: 0
ns main err code: 12560
TNS-12560: TNS:protocol adapter error
ns secondary err code: 0
nt main err code: 530
TNS-00530: Protocol adapter error
nt secondary err code: 126
nt OS err code: 0
Any ideas?Hi,
Please can you specify how you create your DSN for Oracle connection in ODBC Data Source Administrator?
What did you specify for the TNS Service Name?
What is the content of your TNSNAMES.ORA file?
Thx
Mireille -
DW Procedures to connect to MS ACCESS database located on remote server
I am confused about the procedures within Dreamweaver CS3 to connect to a MS ACCESS database on a remoter server.
I am working through a tutorial book, "Dreamweaver 8 with ASP, Cold Fusion and PHP Training from the Source", but the instructions are unclear concerning the procedures to connect to a MS ACCESS database located on a remote server.
The book indicates that the server administration has to create the DSN for you and screen shots indicate that you will result in a list of DSNs to choose from when creating the connections .asp file.
I went through the procedures to create a connections .asp and resulting in a connection without and tables (of course) because I do not initially have any connection information from my remote site.
I have generated the required two lines of code as follows for my MS ACCESS database connection on my remote server:
'Database connection info and provider
strCon="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&_
Server.MapPath("database\trans.mdb") & ";" &_
"User ID=xxx;Password=xxxxx"
The question that I have is:
How does this connection coding relate to the "connections/conn_newland.asp" file that was create within the Dreamweaver screens? How do I merge the ASP coding? The file (/connections/conn_newland.asp) generated within Dreamweaver is as follows:
<%
'FileName="Connection_odbc_conn_dsn.htm"
'Type="ADO"
'DesignationType="ADO"
'HTTP="true"
'Catelog=" "
'Schema
Dim MM_conn_newland_STRING
MM_conn_newland_STRINT = "dsn=newland;"
%>
Any advice would be appreciated. I know that this is simple but debugging an error from an ASP coding merge would be a "bear" to debug!I have not used MS Access myself (fortunately) but I believe it works much like the old, old way of achieving a multi-user database in FileMaker.
That is, it is not a true client-server database but more a peer-to-peer database and that each peer opens the same database file which is available to multiple user via file sharing. Therefore as elikness said it should just be a matter of putting the files on your Lion Server and then sharing that folder/volume using SMB sharing.
However one thing to be aware of, since MS Access is not a true client-server database I would imagine it uses record locking to manage simultaneous direct access to records in the same files. File or Record locking is something that has historically been a bit flakey when using Windows clients with a Mac file server (and probably vice versa).
While I am not proposing it as a solution to consider seriously, it is worth you knowing that FileMaker Pro is a database system that is available for both Mac and Windows and depending on how you configure things can be considered to stretch from a configuration very similar to MS Access at the low end all the way to a high-end MS SQL Server style setup at the top end. See http://www.filemaker.com for details.
There is also a a third-party tool available for migrating databases to or from FileMaker Pro and it can convert MS Access databases to FileMaker Pro see http://www.fmpromigrator.com/
You could use FileMaker Pro just on Windows machines if you wish. -
I got an exception error for connecting to Access 2007 (.accdb) . However, I can connect to the Access file with the .mdb file. I am using window vista. I would like to know is there anything I need to configure to be able to connect to the Access (.accdb).
Error:java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
How do I specify a driver?
Thank YouBB81 wrote:
I do print them? what should I do. I have no idea how to connect to the database I have now. I am wandering whether I need to download a driver? where can I download it? Does sun offer a free download driver for connection to database using ODBC?
Your code looks something like this.
DB_URL+=filename.trim()+";DriverID=22;READONLY=true}";
con = DriverManager.getConnection( DB_URL ,"","");
Your code needs to look like this.
DB_URL+=filename.trim()+";DriverID=22;READONLY=true}";
System.out.println("DB_URL=[" + DB_URL +"]");
con = DriverManager.getConnection( DB_URL ,"","");
Once you have run that then you post all of the line that println() prints here. You copy and paste it (do NOT retype it.)
Then you also post the full stack trace.
Maybe you are looking for
-
Having a lot of problems!!
omg...i dunno wut's wrong w/ the ipod nano...and it's my brother's (but i'm not sayin i did anything wrong w/ it)...we got it a little over a month ago i think..and everythin was fine and then...like a few weeks ago...the itunes wudn't open up..and m
-
Regarding file upload in struts
how can i save file in give location in struts.when i am using in <forward> tag it is opening in the given path that is file name but i want to save the file in the given location
-
Hello, Thunderbird keeps consistently changing text color (always) and font (sometimes, intermittently) when I reply to a message. I hope the attached images will make clear what I mean. I have many e-mail exchanges where individuals involved use bot
-
Reader XI erased my prior Pro version
Installed Reader XI today. Now my prior Pro version is GONE. Can't enter passwords to change prior protected documents.
-
im sorry to post this but the iphone is f##king me off. i bought it when it first came out for £270 and since then ive had nothing but problems with it. i read blogs everywhere and everybody seems to be having so many problems with it already. why wh