Connecting JSTL with MS-Access
hi
now i am developing a JSTL web applciation and i need to connect it with MS.Access and i type the following code
<%@ taglib uri="http://java.sun.com/jstl/sql" prefix="sql" %>
<sql:setDataSource driver="sun.jdbc.odbc.JdbcOdbcDriver"
url="jdbc:odbc:jstlDB"
user=""
password="" />But i get the following exception and no way application
Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
do anyone has solution plz
thanks
Hi Chanuwar,
Below are the steps to create DSN in Vista.
Step 1 -->Click on Start-->Setting -->Control Panel-->Administrative Tool -->Data Sources (ODBC).
Step 2-->Click on System DSN--> Click on Add
Step 3 -->Once you click on Add,you will get all the Drivers name click on Microsoft Access Driver .There are two Microsoft Access Driver in the list. Please select the appropriate one based on your office version.
Step 4 -->Just double click on the Driver ,you will get an ODBC Microsoft Access Setup Screen. Enter the DSN name and select the folder where you have placed your Access File.
Once you select the path ,click on ok your DSN would get created.
Please let me know in case i can assist you further and marked this thread helpful /correct if it assisted you.
Cheers,
Andy
Similar Messages
-
An error occured when connecting java with Ms Access
Hello Everybody
I am a new developer in java and want to connect java with Microsoft Access
i am using JCreator LE
My code is to insert 3 records for 3 members and then save them in DB and retrieve the information
Here is the code
import java.sql.*;
public class Project3 {
public static void main(String[] args) {
try {
System.out.println("Beginning Connection");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String accessFileName = "Information";
String connURL = "jdbc:odbc:;DRIVER=Microsoft Access Driver (*.mdb);DBQ="+accessFileName+".mdb;PWD=";
Connection con = DriverManager.getConnection( connURL ,"","");
Statement stmt = con.createStatement();
System.out.println("Connection done successfully");
stmt.execute("Create table Member(Name String,ID Integer)");
stmt.execute("insert into Member values ('Joe','1234')");
stmt.execute(" select * from Member");
ResultSet rs=stmt.getResultSet();
if (rs != null)
while (rs.next()){
System.out.println("Name: "+rs.getString("Name")+ "ID: " + rs.getString("ID"));
stmt.close();
con.close();
catch (Exception e) {
System.out.println("An error Occurred in Connecting with the DB " );
}and the error is
Beginning Connection
Connection done successfully
An error Occurred in Connecting with the DB
it didn't insert information in the DBWell, thank u i have traced the error and fx it
but
how to modify the code and keep the user entering 3 values and search for the entered values??
Here is the correct code
import java.sql.*;
public class Project3 {
public static void main(String[] args) {
try {
System.out.println("Beginning Connection");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String accessFileName = "jdbc:odbc:Project";
String connURL = "jdbc:odbc:;DRIVER=Microsoft Access Driver (*.mdb);DBQ="+accessFileName+".mdb;PWD=";
Connection con = DriverManager.getConnection( accessFileName);
Statement stmt = con.createStatement();
System.out.println("Connection done successfully");
stmt.execute("Create table Member(Name String,ID Integer)");
stmt.execute("insert into Member values ('Joe','1234')");
stmt.execute(" select * from Member");
ResultSet rs=stmt.getResultSet();
if (rs != null)
while (rs.next()){
System.out.println("Name: "+rs.getString("Name")+ "ID: " + rs.getString("ID"));
stmt.close();
con.close();
catch (Exception err) {err.printStackTrace();}
} -
How to connect oracle with ms access database
Dear
We are on release r12, right now we have requirement to connect oracle database with ms access to get some information. We have found gateway(Heterogeneous services) using ODBC, but at the database side where is installed oracle r12 there is no installed ms access software becuse of linux operating system, so how could it will connect ms access because without installing ms-access we are unable to find ms ODBC gateway in ODBC driver under the control panel.
Can any body guide me how could achieve this
Edited by: oracle0282 on Sep 21, 2011 12:47 AMIf I understand you correctly you want to access Oracle on Linux from MS-Access (possible on Windows only). You need neither a gateway nor Heterogeneous Services, but an Oracle client including ODBC driver (Instant client with ODBC driver is enough) on the Windows machine.
Configure the ODBC driver with the connect informations to the Oracle server.
Werner -
Hi,
How do I connect MS Access with Data Integrator? Would appreciate the help.
ChanduwarHi Chanuwar,
Below are the steps to create DSN in Vista.
Step 1 -->Click on Start-->Setting -->Control Panel-->Administrative Tool -->Data Sources (ODBC).
Step 2-->Click on System DSN--> Click on Add
Step 3 -->Once you click on Add,you will get all the Drivers name click on Microsoft Access Driver .There are two Microsoft Access Driver in the list. Please select the appropriate one based on your office version.
Step 4 -->Just double click on the Driver ,you will get an ODBC Microsoft Access Setup Screen. Enter the DSN name and select the folder where you have placed your Access File.
Once you select the path ,click on ok your DSN would get created.
Please let me know in case i can assist you further and marked this thread helpful /correct if it assisted you.
Cheers,
Andy -
Connection problem with Microsoft Access DB to portal
I build a system to connect a Access DB to the portal to use it for a query IView.
In the connection tests everything went right even DQE.
But the Metadata Loader shows unable to connect to system.
When I choose the System as System Alias the tables form the Access DB are listet as null. Tablename in the Business Object column. It is possible to move some item to the right but after clicking on the SAVE button the Object vanished.
Does somebody knows the error?Hello Gregor,
We are using a Stack13 Portal and I am using the JDBC ODBC Bridge function.
The Connection Properties are as follows:
Connection URL:
jdbc:odbc:telefonbuch
Driver Class Name :sun.jdbc.odbc.JdbcOdbcDriver
telefonbuch is the dsn of the Access DB (no password on the DB)
The Connection Test are both green and in the DQE Dialogs - MetadataLoader the System Alias apears as Available System. When I click on the Buisiness Object I got the message "unable to connect to system".
And now the strange thing: I could choose my system in the System Alias pulldown box: And as Results I get every Table and View from my DB but the names all looks like null.faxe, null.Abfrage ....
It ist impossible to Add these Items to the loaded Side on the right.
The same happends when I tried to build a Query Iview.
Regards Jörg -
I have a SharePoint 2013 environment with 1 AD Server, 1 DB Server and 1 APP Server, with 13 Web Applications running under the SharePoint.
Recently I rebuilted the application because of some infrasctrucutre problems, and I was able to solve all of them, except one. I can't connect to any of those 13 Web Apps with SharePoint Designer. When I try to connect, it always ask credentials, then it
seems like loading the site, then the error appears:
"An error occurred accessing your Microsoft SharePoint Foundation site files. Authors - if you are authoring against
a Web server, please contact the Webmaster for this server's Web site. WebMasters - please see the server's application event log for more details."
I've spent hours troubleshooting it, but none of the information I found was valid. I've already tried to clean the cache, but didn't work. I found plenty of related data of this
error with FrontPage and old versions of SharePoint, but nothing helped. All the Web Apps are SPD-Enabled at Site Collection Administration. I've tried connecting from many different PC's. The 15/LOGS folder doesn't get any data from this error, neither the
Event Viewer.
I really don't know what else to do. Please Help!I found the answer of my issue was in a .NET Agent installed by NewRelic on the server. I found a connection trouble with Fiddler, then I end up figuring this out:
This can be the result of Real User Monitoring so the first step in troubleshooting would be to disable it and see how it affects the application. The .Net Agent injects snippets of javascript into the header of pages sent to the users browser to measure the
page load time on the user's end.
You can disable RUM by editing newrelic.config and changing this line:
<browserMonitoring autoInstrument="true"/>
to this:
<browserMonitoring autoInstrument="false"/> -
Need help with thinkvantage access connection
Here a log file with new access connection:
Connection status: Disconnected
Cause: Driver disconnected while associating.
Error code: 229378
Recommended actions:
Verify that the encryption settings (WEP/TKIP/AES) specified in this profile match those expected by the wireless network.
Verify that the wireless adapter in your computer has not been restricted from accessing the radio channels being used by the wireless network.
If the problem persists, contact your network administrator and provide the troubleshooting information below.
Adapter Details
Adapter name 11a/b/g Wireless LAN Mini PCI Express Adapter
Adapter type Wireless LAN
Adapter speed 54.0 Mbps
Driver/Firmware version 7.6.0.96/ N/A
Adapter status Enabled
Connection Status Disconnected
Disable unused cards? Yes
TCP/IP Settings
DHCP enabled? Yes
Append parent suffixes of the primary DNS suffix? Yes
Register connection's DNS suffix in registration? Yes
Register connection's DNS suffix in DNS registration? Yes
Enable LMHOSTS Lookup? No
NetBIOS setting "Default"
Wireless Settings
Network name (SSID) linksys
Connection type Access point
Wireless mode Auto
Security encryption None
System Information
System model 7732CTO
BIOS version 7LETB7WW (2.17 )
Operating system version Windows Vista, Service pack 2
Access connections version 5.31
Access Point scan list
Network name (SSID) Wireless mode MAC address Signal strength Channel
linksys 802.11g 00:1C:10:54:65:B6 24% 11
Global Settings
Network
Allow all users of this system to switch to any existing location profile -> No
Allow the wireless LAN radio to be turned off when inactive -> No
Allow selection of location profiles with Fn+F5 On Screen Display menu -> Yes
Enable autodeletion of unused profiles -> Yes
Notifications
Show ThinkVantage Access Connections status icon in task tray -> No
Show wireless status icon in task tray -> No
Display the progress indicator window when a profile is being applied -> Yes
Preferences
Enable sound effects -> Yes
Do not show balloon tips from the Access Connections system tray icon -> Yes
Show WiMAX page as default on Main GUI -> No
Automatic location profile switching list
Include Ethernet connections in automatic switching and prompt me to save Ethernet ports -> Yes
When no other connections are available, connect through Wireless WAN or WiMAX -> No
Wireless priority list
Selection Priority Location profile name Connection order Connection details
No 1 linksys Wireless LAN SSID: linksys
Log File
Debug Log is enabled
It didn't happen when I use old version. Can anybody help me?Are you getting any error message while connecting to ds..?
Are you able to go online on wired computer...?
Are you able to go online on any wireless computer on your network..?
Open the router setup page and under the wireless tab,Change the Channel width to 20MHz only and Channel to 11-2.462GHz and click on save settings...Under the Advanced Wireless Settings...Change the Beacon Interval to 75,Change the Fragmentation Threshold to 2304,Change the RTS Threshold to 2304 and Click on Save Settings...
Now,check. -
To connect oracle database with ms access database
i want to connect oracle database with ms access database
i have follow the following steps
1. create ms access database.
2. create system dsn.
3. make change in listener.ora.
4. make change in hs folder.
5.change the tnsname.ora.
6. lsnrctl stop and lsnrct start.
7. create database link in oracle sql*plus.
8.select the table of ms access
but i have return the foloowing error.
ORA-12154: TNS:could not resolve the connect identifier specified
using window 2000, oracle 10gHave a look on ths thread, may it helps ...
Re: copy access data into oracle with form builder 9i -
Hello All,
I am getting this error while I am connecting my access database website for the change
"This database was connected to a Microsoft Access Services site that is not compatible with this version of Microsof Access. You cannot make design changes or modify data in database."
I am using SharePoint 2010 and Microsoft Office 2010.
I have created one Contact Database Site and now I am trying to modify the layout of the form in Access. and I am getting the error that I have mentioned.
Please provide help on it.
Thanks in Advance....Hello All,
I got the answer, we have to enable the port 80 or where the access service is deployed and we have to change Trust setting and also, enable the macro from Access.
Hope this will help to other.... -
Nokia 616 connected with Sim Access to HTC Touch P...
I have problems by connecting my HTC Touch Pro to my Nokia 616 with SIM Access (As Bluetooth Handsfree OK). It works with a 2G simcard but not with 3G sim-card. Is there any solution??
Hi victorcarlsson
Unfortunately there is little likelihood of any progress in this direction.
Happy to have helped forum in a small way with a Support Ratio = 37.0 -
I want to connect an applet with an access database
I want to connect an applet with an access(*.mdb) database, how I do?
I now the jdbc odbc bridge but how work it?
Please Help me!!!!!!!!!!If you want access database please install IDSSERVER and import j102.sql.*;
Example:
import java.awt.*;
import java.io.*;
import j102.sql.*;
public class AccessMdb extends Applets {
Connection con;
ResultSet rs;
Statement stmt;
IDSDriver drv;
String _url ="jdbc:ids://localhost:your port /conn?dsn="your database"";
// make connection to database
drv = new j102.sql.IDSDriver();
try{
con = drv.connect(_url,null);
stmt = con.createStatement();
// query database
stmt.executeQuery("your SQL statement");
}catch(Exception ex){
System.out.println(ex.getMessage());
Good luck. -
How to connect Forms 6i with MS Access
Dear All:
Can we connect Forms 6i with MS Access? If yes then how? Any document? Any suggestions?
Thanks
HassanThanks Jose for your suggestions:
I am sorry I did not use the search utility of Forum.
Anyway I have connect the Forms 6i with MS Access
I created two text item in a Non-Database block and write following coding on a Push Button:
declare
connection_id EXEC_SQL.CONNTYPE;
cursorID EXEC_SQL.CURSTYPE;
sqlstr VARCHAR2(1000);
d1 VARCHAR2(100);
d2 NUMBER;
nIgn PLS_INTEGER;
nRows PLS_INTEGER := 0;
BEGIN
connection_id := EXEC_SQL.OPEN_CONNECTION('hsn','hsn','odbc:test');
cursorID := EXEC_SQL.OPEN_CURSOR(connection_id);
sqlstr := 'select d1,d2 from abdali ';
EXEC_SQL.PARSE(connection_id, cursorID, sqlstr, exec_sql.V7);
EXEC_SQL.BIND_VARIABLE(connection_id, cursorID, '', '');
EXEC_SQL.DEFINE_COLUMN(connection_id, cursorID, 1, d1, 100);
EXEC_SQL.DEFINE_COLUMN(connection_id, cursorID, 2, d2, 100);
nIgn := EXEC_SQL.EXECUTE(connection_id, cursorID);
WHILE (EXEC_SQL.FETCH_ROWS(connection_id, cursorID) > 0 ) LOOP
nRows := nRows + 1;
EXEC_SQL.COLUMN_VALUE(connection_id, cursorID, 1, :d1);
--EXEC_SQL.COLUMN_VALUE(connection_id, cursorID, 2, :d2);
next_record;
END LOOP;
message(nrows);
IF (nRows <= 0) THEN
TEXT_IO.PUT_LINE ('Warning: query returned no rows');
END IF;
END;
I can retrieve the data from MS Access but there is a problem occured.
The data type of one column in Access is defined as Intiger
I also defined a text item in form as Intiger but when retrieved then it returned following error:
FRM-40735: WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-306500.
I remarked the following coding it works fine.
EXEC_SQL.COLUMN_VALUE(connection_id, cursorID, 2, :d2);
Any suggestions: I also read the OCA_INFO.pdf but did not find how to handle this type of problem.
If you can help me to find out how to match the data types of both the databases?
Also can I insert the data from a Database Block of Oracle into MS-ACCESS thru write code on the Button.
Thanks for help
Hassan -
Connecting and modifying MS ACCESS with Asian language
i have establish the connection with MS access 2000 but SQL developer showing symbol " ????? "
the data is in Asian language (Urdu)
....any suggestion/ solution......
thanksTry this friend:
private Connection dbConn = null;
private String url;
private String username = "user";
private String password = "YourPassword";
try {
Driver d = (Driver)Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance(); // odbc driver
url= "jdbc:odbc:;DRIVER=Microsoft Access Driver (*.mdb);DBQ=C:\\YourDatabaseName.mdb;";
dbConn = DriverManager.getConnection( url , username , password );
DatabaseMetaData dbmd = dbConn.getMetaData();
if (dbmd==null) {
System.out.println("No Database Meta Data");
} else {
System.out.println("Database Product Name : " +
dbmd.getDatabaseProductName());
System.out.println("Allowable active connections: "+
dbmd.getMaxConnections());
System.out.println("Database is : " + database );
catch (ClassNotFoundException cnfex) {
cnfex.printStackTrace();
catch (SQLException sqlex) {
sqlex.printStackTrace();
System.out.println("Database is : " + database );
catch (Exception e) {
e.printStackTrace();
Good luck ! -
Connect Java with SSRS URL Access method
I am trying to connect SSRS with Java to display the reports in a browser.
My application is java 1.6 Swing application and use Applet.I read the article
http://www.javaworld.com/javaworld/jw-01-2005/jw-0110-sqlrs.html?page=4
But I am not able to understand why do we need the servlets the authors has mentioned.
I am able to connect and get back the report in pdf format without these servlets .Also what sort of access will be required for this.
Will all external users need access to the report server.
Some one please help
Any other suggestion for connection SSRS with JAVA .I have tried webservice method and it dint work either now I am planning for url access
but need help with this
ThanksCan anyone please help.I can provide any more info if needed.I tried the URL method but I get no response in my stream.
I can post the code i am using in the servlet. -
Vista - Connected with Limited Access???
Please help!!! This problem is driving me mad. Every time I try to connect to the router whilst wireless it says "Connected with Limited Access"? I then plug the cable back in and "ta dah" it works fine. I have tried almost everything and cannot understand the problem - can anyone help?
try this one out.. click start >> networks >> network and sharing center >> manage my wireless network >> and on this page remove all wireless networks listed and restart your PC.
Maybe you are looking for
-
Can i make a one-time transfer of money from my account to another itunes account
How do i make a one-time transfer of money from my itunes account to another itunes account ?
-
Running a Java application from a Swing GUI
Hi, I was wondering if there is a simple way to run a Java application from a GUI built with Swing. I would presume there would be, because the Swing GUI is a Java application itself, technically. So, I want a user to click a button on my GUI, and th
-
Cannot start solaris after successful installation. Monitor Screen blinks
After installing solaris 10 U 3 when it starts. The login prompt comes. Then it automatically tries to start X and the monitor starts blinking. Thereafter there is nothing i can do instead of restarting my computer. My concerns are as under. 1. Is th
-
Department(name) in target group
Can be closed... Edited by: MartinSch on Jul 28, 2009 8:31 AM
-
URGENT! CF8 on Windows Server 2008 WEB
Hi, Can anyone here please tell me if Coldfusion 8 will run on "Windows Server 2008 Web"? It does not list it in ther system requirements? Better still has anyone here actually installed it on this version opersating system? Thanks, Aaron