Using JavaScript to access Database
Hi all,
I am using JSP and Tomcat for my web application.
Now i need to use Javascript to access the MS Access database. Can anyone please tell me the class and command for accessing database from javascript.
Please give me an example and that will help me. I know it is not good to access database using JavaScript. But in this situation i have to use it anyhow.
Thatnks
Hi all,
Thanks very much for your help. Now some of you said that it is not possible in JSP to access database using JavaScript, some of you said yes it is possible but not secure, I understand the both concepts.
Now my problem is last year i built a web application for my company and the scenario is like this:
The staff records their working time in that application. Now when they click a button it creates a drop down list of all clients they have and that list is in HTML as SELECT TAG. So the select tag includes 100+ client name.
Now they can add as many client as they want for example if i have worked with 10 clients i will create 10 drop down list by pressing button called ADD CLIENT and will record their hours.
Now from the description above you guys can understand that an OnClick Javascript event in involved to create multiple dropdown list.
Now what i want is that i want those 100+ client list to come from database rather than typing them in the SELECT TAG. and please remember the SELECT tag is implemented in Javascript using innerHTML event.
Now for those of you who suggested that it is not possible to use Javascript in accessing database, can you please tell me how can i implement Onclick event using JSP/Serverlet and can create dynamic drop downlist?
Thanks for your time to read this long message.
Similar Messages
-
Help on using 2 MS Access databases at the same time
I have a problem... see what basically I am trying to do is search for a string in the database 'cache'. if found the second colume is retured to the user as the output. but if not found in that 'cache' then it serches another datbase 'server' and when the req string is found there it has to return the 2nd column to the user but also add this new row in to the 'cache' database.
The source that I am trying for that is as follows.
import java.sql.*;
public class localdemo {
public static void main(String[] args) {
String s,r;
String x;
String t=args[0];
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
// Test with MS Access database (ODBC data source)
String url = "jdbc:odbc:Servers";
String urlc = "jdbc:odbc:cache";
java.sql.Connection c = DriverManager.getConnection(url,"chetan", "mavric1");
java.sql.Connection c1 = DriverManager.getConnection(urlc,"chetan", "mavric1");
java.sql.Statement st = c.createStatement();
java.sql.Statement stc = c1.createStatement();
java.sql.ResultSet rs = st.executeQuery("select * from server");
java.sql.ResultSet rsc = stc.executeQuery("select * from cache");
//java.sql.ResultSetMetaData md = rs.getMetaData();
//java.sql.ResultSetMetaData mdc = rsc.getMetaData();
while(rsc.next()) {
s=rsc.getString(1);
if(s.equals(t))
System.out.print(rsc.getString(2));
System.exit(1);
System.out.println("\nDNS Entry not found in the Cache...");
System.out.println("\nMoving to the Main server database..\n");
while(rs.next()) {
r=rs.getString(1);
if(r.equals(t))
System.out.print(rs.getString(2));
String query = "insert into cache(server,ip) values(t,rs.getString(2))";
int rows = stc.executeUpdate(query);
stc.close();
rs.close();
rsc.close();
} catch(Exception e) {
e.printStackTrace();
it gives me an error
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Undefined function 'rs.getString' in express
ion.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcStatement.executeUpdate(Unknown Source)
at localdemo.main(localdemo.java:46)
PLease help
regards
ChetanHi ,
It's always better to acquire resources when ever they are
going to be used.
So please change the code as shown below.
import java.sql.*;
public class localdemo {
public static void main(String[] args) {
String s,r;
String x;
String t=args[0];
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
// Test with MS Access database (ODBC data source)
String url = "jdbc:odbc:Servers";
String urlc = "jdbc:odbc:cache";
java.sql.Connection c = null;
java.sql.Connection c1 = DriverManager.getConnection(urlc,"chetan", "mavric1");
java.sql.Statement st = null;
java.sql.Statement stc = c1.createStatement();
java.sql.ResultSet rs = null;
java.sql.ResultSet rsc = stc.executeQuery("select * from cache");
//java.sql.ResultSetMetaData md = rs.getMetaData();
//java.sql.ResultSetMetaData mdc = rsc.getMetaData();
while(rsc.next()) {
s=rsc.getString(1);
if(s.equals(t))
System.out.print(rsc.getString(2));
System.exit(1);
rsc.close();
System.out.println("\nDNS Entry not found in the Cache...");
System.out.println("\nMoving to the Main server database..\n");
c= DriverManager.getConnection(url,"chetan", "mavric1");;
st=c.createStatement();
rs=st.executeQuery("select * from server");
while(rs.next()) {
r=rs.getString(1);
if(r.equals(t))
System.out.print(rs.getString(2));
String query = "insert into cache(server,ip) values(t,rs.getString(2))";
int rows = stc.executeUpdate(query);
stc.close();
rs.close();
} catch(Exception e) {
e.printStackTrace();
Hope this helps.
Good Luck.
Gayam.Srinivasa Reddy
Developer Technical Support
Sun Micro Sysytems
http://www.sun.com/developers/support/ -
Using SSIS for Access Database
I have a Database in Access and I want extract data from this database into SQL Server 2008 R2 using SSIS. Then i want to use Analysis Services for Facts and Dimension Tables. Then i want to load the extracted data into a web application and want to use
Reporting Services for reports. Can anybody help me in SSIS and Analysis Services and Reporting Services?Ok just help me, I want to extract data from single table of access given below and then i want to make facts and dimension tables . Kindly help me in populating these fact and dimension tables using Analysis Services.
ConsumerID
ReferenceNo
OldAccountNo
Name
RelationWith
RelationwithName
Address
ConnectionDate
RegionType
Circle
Division
SubDivision
Feeder
GridStation
Company
Tariff
Load
PresentReading
PreviousReading
UnitsConsumed
CostofElectricity
ElectricityDuty
PTVFee
GST
IncomeTax
ExtraTax
FurtherTax
NJSurcharge
FPAMonth
FPA
GSTonFPA
ITonFPA
EDonFPA
Arrears
Installment
Subsidies
TotalFPA
CurrentBill
LPSurcharge
PayableWithinDueDate
PayableAfterDueDate
BillingMonth
DueDate
1
1242
4242
Nasir
S/o
Mohiuddin
Hyderabad
01-Jan-07
Urban
Hyderabad-I
Garikhata
Garikhata
JAMSHORO 1
66KV DIGRI
HESCO
A2(a)
4
7000
5000
2000
32000
480
60
5521.6
200
Jul-08
45
7.65
0.675
53
38262
3248
38315
41563
Jan-09
03-Jan-09
2
1234
1234
Kashif
S/o
Mohsin
Jamshoro
01-Jan-09
Urban
Hyderabad-II
Garikhata
Garikhata
AMRI (SHAL.) 1
66KV TANDO GHULAM ALI
HESCO
A1(a)
1.75
451
400
51
295.29
4.42935
35
50.9522895
5.1
Jul-08
45
7.65
0.675
53
391
30
444
474
Jan-09
03-Jan-09
3
1235
1235
Afzal
S/o
Mohsin1
Jamshoro
01-Jan-09
Urban
Hyderabad-II
M.P.Khas .
Liaquat Colony
HALA ROAD 3
132KV SAMARO
HESCO
A1(a)
1.8
250
50
200
1622
24.33
35
279.8761
20
Jul-08
45
7.65
0.675
53
1981
165
2034
2199
Jan-09
03-Jan-09
4
1236
1236
Akbar
S/o
Basit
jamshoro
01-Jan-10
Urban
Hyderabad-I
Digri
Hali Road
HALA ROAD 11
132KV JHIMPIR
HESCO
A1(a)
1.95
801
500
301
3711.33
55.66995
35
640.3899915
30.1
Jul-08
45
7.65
0.675
53
4472
377
4525
4902
Jan-09
03-Jan-09
5
1237
1237
Qaisar
S/o
Nazeer
Hyderabad
01-Jan-08
Urban
Hyderabad-I
Kotri
Samaro
HYD N.P.T.S. 11
132KV MIRPUR KHAS
HESCO
A1(a)
2
750
700
50
289.5
4.3425
35
49.953225
5
Jul-08
45
7.65
0.675
53
384
29
437
466
Jan-09
03-Jan-09 -
How can I use javascript to access netui data-repeater item?
I have a 2-dim table of <netui: checkbox> using a <netui data-repeater> to interate over a contact email (column) and an event (rows).
My problem is that I need to have a select all checkbox at the bottom of each column (per email) and be able to select all event for an email (when checked) and deselect all when the checkbox is unchecked.
I can do it in java page flow but I can't have a page refresh.
I want to do it on the page with javascript. The problem is that using
document[getNetuiTagName("aform", this)][getNetuiTagName("email1", this)].checked
with the "tagId" in each <netui> tag I can't access each iteration of the data repeater (I only get the last one).
What I need is a reference to each repeater element. I do not know how many rows or columns I will have (based on the data).
Is there any way to reference the obeject itself in javascript so I can loop through the items in the netui data-repeater?
This is what is rendered in the html netui mapping:
netui_names.con1="portlet_2_3wlw-checkbox_key:{actionForm.opts[4].cons[1].selContact}"
I really want to be able to access this and loop through the arrays for opts (event) and cons(email)
Here's the code:
<netui:form action="submitEvents" tagId="eform" focus="">
<table>
<tr>
<td>
<table id="eTable" cellpadding="2" cellspacing="1" border="0">
<tr bgcolor="#cccccc" class="BlackHeavy8">
<!-- <td>Selected</td> -->
<td colspan="2">Event</td>
<netui-data:repeater dataSource="{pageFlow.contacts}" defaultText="No contacts configured.">
<netui-data:repeaterHeader>
</netui-data:repeaterHeader>
<netui-data:repeaterItem>
<netui-data:choiceMethod object="{pageFlow}" method="getAddHeader">
<netui-data:methodParameter value="{container.item.contact_icon}" />
</netui-data:choiceMethod>
<netui-data:choice value="default">
<td nowrap="true" bgcolor="#FFCCCC"><netui:image src="{container.item.contact_icon}"/>
<netui:label value="{container.item.contact_value}" defaultValue="Â "></netui:label>
</td>
</netui-data:choice>
<netui-data:choice value="blue">
<td nowrap="true" bgcolor="#D8EBFE"><netui:image src="{container.item.contact_icon}"/>
<netui:label value="{container.item.contact_value}" defaultValue="Â "></netui:label>
</td>
</netui-data:choice>
<netui-data:choice value="green">
<td nowrap="true" bgcolor="#CCFFCC"><netui:image src="{container.item.contact_icon}"/>
<netui:label value="{container.item.contact_value}" defaultValue="Â "></netui:label>
</td>
</netui-data:choice>
<netui-data:choice value="yellow">
<td nowrap="true" bgcolor="#FFFFCC"><netui:image src="{container.item.contact_icon}"/>
<netui:label value="{container.item.contact_value}" defaultValue="Â "></netui:label>
</td>
</netui-data:choice>
</netui-data:repeaterItem>
<netui-data:repeaterFooter></netui-data:repeaterFooter>
</netui-data:repeater>
</tr>
<tr>
<td colspan="7">
<netui-data:repeater dataSource="{actionForm.opts}">
<netui-data:repeaterHeader>
</netui-data:repeaterHeader>
<netui-data:repeaterItem>
<netui-data:choiceMethod object="{pageFlow}" method="isEvenRow">
<netui-data:methodParameter type="int" value="{container.index}" />
</netui-data:choiceMethod>
<netui-data:choice value="true">
<tr class="BlackNorm8">
<!-- <td align="center"> -->
<!-- </td> -->
<td colspan="2">
<netui:label value="{container.item.eventName}" />
<netui:hidden dataSource="{container.item.eventId}" />
</td>
<netui-data:repeater dataSource="{container.item.cons}">
<netui-data:repeaterHeader>
</netui-data:repeaterHeader>
<netui-data:repeaterItem>
<netui-data:choiceMethod object="{pageFlow}" method="getAddHeader">
<netui-data:methodParameter value="{container.item.contact_icon}" />
</netui-data:choiceMethod>
<netui-data:choice value="default">
<td align="center" bgcolor="#FFCCCC" >
<netui:checkBox tagId="con1" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
<netui:hidden dataSource="{container.item.contact_id}" tagId="conid1" />
</td>
</netui-data:choice>
<netui-data:choice value="blue">
<td align="center" bgcolor="#D8EBFE" >
<netui:checkBox id="con2" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
<netui:hidden dataSource="{container.item.contact_id}" tagId="conid2" />
</td>
</netui-data:choice>
<netui-data:choice value="green">
<td align="center" bgcolor="#CCFFCC" >
<netui:checkBox tagId="con3" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
<netui:hidden dataSource="{container.item.contact_id}" tagId="conid3" />
</td>
</netui-data:choice>
<netui-data:choice value="yellow">
<td align="center" bgcolor="#FFFFCC" >
<netui:checkBox tagId="con4" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
<netui:hidden dataSource="{container.item.contact_id}" tagId="conid4" />
</td>
</netui-data:choice>
</netui-data:repeaterItem>
<netui-data:repeaterFooter>
</netui-data:repeaterFooter>
</netui-data:repeater>
</tr>
</netui-data:choice>
<netui-data:choice value="false">
<tr class="BlackNorm8" bgcolor="#eeeeee">
<!--<td align="center">-->
<!--</td>-->
<td colspan="2">
<netui:label value="{container.item.eventName}" />
<netui:hidden dataSource="{container.item.eventId}" />
</td>
<netui-data:repeater dataSource="{container.item.cons}">
<netui-data:repeaterHeader>
</netui-data:repeaterHeader>
<netui-data:repeaterItem>
<netui-data:choiceMethod object="{pageFlow}" method="getAddHeader">
<netui-data:methodParameter value="{container.item.contact_icon}" />
</netui-data:choiceMethod>
<netui-data:choice value="default">
<td align="center" bgcolor="#FFCCCC" >
<netui:checkBox tagId="conalt1" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
<netui:hidden tagId="conidalt1" dataSource="{container.item.contact_id}" />
</td>
</netui-data:choice>
<netui-data:choice value="blue">
<td align="center" bgcolor="#D8EBFE" >
<netui:checkBox tagId="conalt2" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
<netui:hidden tagId="conidalt2" dataSource="{container.item.contact_id}" />
</td>
</netui-data:choice>
<netui-data:choice value="green">
<td align="center" bgcolor="#CCFFCC" >
<netui:checkBox tagId="conalt3" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
<netui:hidden tagId="conidalt3" dataSource="{container.item.contact_id}" />
</td>
</netui-data:choice>
<netui-data:choice value="yellow">
<td align="center" bgcolor="#FFFFCC" >
<netui:checkBox tagId="conalt4" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
<netui:hidden tagId="conidalt4" dataSource="{container.item.contact_id}" />
</td>
</netui-data:choice>
</netui-data:repeaterItem>
<netui-data:repeaterFooter>
</netui-data:repeaterFooter>
</netui-data:repeater>
</tr>
</netui-data:choice>
</netui-data:repeaterItem>
<netui-data:repeaterFooter>
</netui-data:repeaterFooter>
</netui-data:repeater>
 </td>
</tr>
<!-- Select All Checkboxes -->
<tr bgcolor="#cccccc" class="BlackHeavy8">
<!-- <td>Selected</td> -->
<td colspan="2">Select ALL</td>
<netui-data:repeater dataSource="{pageFlow.contacts}" defaultText="Â ">
<netui-data:repeaterHeader>
</netui-data:repeaterHeader>
<netui-data:repeaterItem>
<netui-data:choiceMethod object="{pageFlow}" method="getAddHeader">
<netui-data:methodParameter value="{container.item.contact_icon}" />
</netui-data:choiceMethod>
<netui-data:choice value="default">
<td align="center" nowrap="true" bgcolor="#FFCCCC">
<netui:hidden dataSource="{container.item.contact_id}" tagId="chbox1" />
<input type="checkbox" value="false"
onclick="selectAllEvents('chbox1')">Select ALL
</td>
</netui-data:choice>
<netui-data:choice value="blue">
<td align="center" nowrap="true" bgcolor="#D8EBFE">
<netui:hidden dataSource="{container.item.contact_id}" tagId="chbox2" />
<input type="checkbox" value="false"
onclick="selectAllEvents('chbox2')">Select All
</td>
</netui-data:choice>
<netui-data:choice value="green">
<td align="center" nowrap="true" bgcolor="#CCFFCC">
<netui:hidden dataSource="{container.item.contact_id}" tagId="chbox3" />
<input type="checkbox" value="false" onclick="selectAllEvents('chbox3')">Select All
</td>
</netui-data:choice>
<netui-data:choice value="yellow">
<td align="center" nowrap="true" bgcolor="#FFFFCC">
<netui:hidden dataSource="{container.item.contact_id}" tagId="chbox4" />
<input type="checkbox" value="false" onclick="selectAllEvents('chbox4')">Select All
</td>
</netui-data:choice>
</netui-data:repeaterItem>
<netui-data:repeaterFooter></netui-data:repeaterFooter>
</netui-data:repeater>
</tr>
<!-- END Select ALL checkboxes -->
</table>
</td>
<tr align="right">
<td>
<netui:button type="submit" value="Cancel" action="begin" styleClass="BlackNorm8"></netui:button>
<netui:button value="Update" styleClass="BlackNorm8"/>
</tr>
</table>
</netui:form>hi ,
i dont know anything about delphi but from the experience from VB if the connection to oracle in delhpi doesnt recognise object type data field. Then try using OO4O drivers from oracle.if u use these drivers then u can access the sdo_geometry field !
Hope this helps
Vikesh -
How to use javascript to access item VALUES on a portal form
Hi,
I want to pick up VALUE of an item on a portal form from the on click event of the save button. I know there is a way to acces the item name and assign a value to that item. For example,
setItemValue(this.form,'UNIT_NAME', this.value)
If I use this line of code then I get the value of the save button because I put this line of code in the on click event of the save button. Please help.
MoniqueYou can get hold of any field on your form as follows:
document.forms[0].elements['<form>.DEFAULT.<field>.01']
So for example to get (or set) a value in my form I have:
document.forms[0].elements['REQUESTFRMEU.DEFAULT.BUS_OBJ.01'].value
Note that setting a value of a field with Javascript on the Insert button's onclick event will not result in the new value being sent to the DB. I think it has to do with the values being set into a session object of sort and the DB gets updated from these values and when you update the field with JS it does not update thesee session values. If you set the value somewhere else (e.g. another event handler before the Insert button is clicked) you should be OK.
Cheers.
Anton. -
How to use MS Access database in Flash CS4 using AS3
Hello everyone,
I need help for how use the MS Access database in FlashCS4 and I want to save and retrive the data from the database and display in the Flash window.
Thanks with,
Viswa.http://www.northcode.com/blog.php/2011/05/06/Using-ADO-Data-Sources-in-Flash-Projectors
-
Uploading images in access database using jsp
Hi, am using jsp with access database and want to upload as in a profile picture for any profile on the site[i mean depending on the user's convenience] ..
I just have a code which helps select the image from the client's machine n gets its address..but then how to use it in a form or something so that it can be submitted and inserted in the database?
Any idea? I d prefer not using servelet.. but if it just cannot be done without servelet then ok can suggest with that too.
Here is the code of Browsing to obtain the picture:
<form name=uploadForm action="uploadpic.jsp" method=post enctype="multipart/form-data" > <input type="file" > <input type="submit" name="submit" /> </form>silversurface wrote:
Hi, am using jsp with access database and want to upload as in a profile picture for any profile on the site[i mean depending on the user's convenience] ..
bad. Don't put business logic in JSP, and that includes accessing databases.
Any idea? I d prefer not using servelet.. but if it just cannot be done without servelet then ok can suggest with that too.
Don't put business logic in JSP. That's what servlets are for (and EJB). -
Accessing database using EJBs in WebDynpro
Im using EJBs to access database...data is getting stored in the database...but i dnt know how to retrieve it...webDynpro is a totally new environment for me..it would be a great help if someone can help me solve my problem...
regards,
Sonal- start with "import JavaBean model" (importing model)
- put model in Used Models
- bind model with controller (web dynpro components-> double click on <application name>
- bind view with controller (same vindow)
- apply template (table for reading data) in view
and you are redy for start.
Eq
your EJB is MyEJB, and there is some function myFunction() with Vector as return (Vector contains MyEJB objects)
now in controller put (eq in wdDoInit())
MyEJB myObject = new MyEJB()
wdContext.current<NodeName>.bind(myObject.myFunction());
good luck -
Saving a complete date to access database
Hi, I am currently struggling with databases and dates, the database I use is an access database (It's obligated in the assignment). Now, what I want to do is save a COMPLETE date into the database, with this I mean: day,month,year,hour (minutes and seconds aren't necessary, but I can just put them to 00:00). Any ideas how I can add this to an access database AND order the entries by these dates? Or is it just not possible with access? (I know how I could do this in mysql, but as I said is is not allowed)
ok, but I have to say I'm new to the whole preparedstatement thing, I tried what you said, but now I get an 'arrayindexoutofboundsexception', any ideas on why this happens? here's the most important piece of the code:
dbconn = new DbConnect();
PreparedStatement pstmt = dbconn.getConn().prepareStatement("INSERT INTO Reservaties (datum,sorteerdatum,uur,terrein,gebruikersnaam) VALUES ('?',?,?,?,'?')");
pstmt.setString(1,reservatie.getDatum());
pstmt.setTimestamp(2,reservatie.getSorteerDatum());
pstmt.setInt(3,reservatie.getUur());
pstmt.setInt(4,reservatie.getTerrein());
pstmt.setString(5,reservatie.getGebruikersnaam());
pstmt.executeUpdate();
dbconn.close(); -
How to define a JPA "Entity" used to query multiple database tables
While using JPA to access database, I have a need to define a generic "Entity" class to use for query different tables. The reason is I have a lot of non-business tables (reference tables) I need to query. I intend to use Native SQL to do the query. Most query will only return 1 - 3 columns. It is tedious to define many JPA entities only to use them sparsely.
For example, if I have two Native query, and define a JavaBean that has 3 properties, how do I implement this in JPA?
Thanks for your help.
query 1:
select LASTNAME as f1, AGE as f2 from PERSON
query 2:
select zipcode as f1 from LOCATION
package model.uti;
public class SimpleBean {
private String f1;
private String f2;
private String f3;
public SimpleBean() {
public void setF1(String f1) {
this.f1 = f1;
public String getF1() {
return f1;
public void setF2(String f2) {
this.f2 = f2;
public String getF2() {
return f2;
public void setF3(String f3) {
this.f3 = f3;
public String getF3() {
return f3;
}An @Entity is mapped to a specific table. You can't fill it with totally random data from a collection of tables.
If you want to access data from multiple tables within the one entity, then the JPA spec defines an annotation @SecondaryTable, which allows you to specify a
second table and the join condition.
http://java.sun.com/javaee/5/docs/api/javax/persistence/SecondaryTable.html
The JPA spec talks about this as do most good EJB/JPA books.
-steve- -
Use javascript to Update To Database
Hi All,
First of all I'm not a javascript user but I have to use javascript for this thing.
Ok I have developed an online application using asp vbscript.
All i want is when a user click on the checkbox i want to do a database update. Obviously I can't do that using client side script and without submitting the page..My friends say the only way is to use Java applet and I never do Java applet before! :)
But i do want to learn..Do anybody have any related websites on this or examples for Java applet dummies..?? I'll appreciate it a lot..
Thks..asp vbscript.AHHHGGGG! (j/k)
>
All i want is when a user click on the checkbox i want
to do a database update. Obviously I can't do that
using client side script and without submitting the
page..What do you mean? You have no access to the server?
A db update from an HTML page, IMHO, can't be done without some server side work... -
Connect to a remote MS Access database using RmiJdbc
Hello,
I want to access a remote MS Access database from oracle stored procedures.
Does anyone know how i can load the RmiJdbc driver using the loadjava command or with any other way.
Because when i try to load RmiJdbc.zip using the loadjava command I am getting the error:
ORA-29533:attempt to overwrite class or resource string while defining or compiling scott.TestClient
this error is occured for multiple files...
I don't know how to delete this classes.
Because this error occured and the first time i tried to load Rmijdbc driver.
and when i use the dropjava command to drop it,and then load it again the same error occures.
Can anyone help me how to load this driver?
Please answer because i need it as soon as possible.
ThanksHi,
try this.
String s = "UPDATE AGENT SET afname='test',alname='u',city='d',AGENT.[percent]=1 WHERE aid=23";
-------->AGENT.[percent] -
"Connection is closed" closed error while using MS Access database
We are using MS Access database in our project. Recently the database was upgraded to 2000.
After upgrading the database, I get the folowing error when getAutoCommit() is called on a connection -
java.sql.SQLException: Connection is closed
at sun.jdbc.odbc.JdbcOdbcConnection.validateConnection(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcConnection.getAutoCommit(Unknown Source)
The connection is not closed explicity before getAutoCommit() is called, only the statement is closed.
This error is sporadic and occurs under load scenario only (when a lot of connections are open). Once the error occurs, all the database calls fail then onwards. The error was not occuring before the database was upgraded.
I suspect the jbdc-odbc driver. The driver might not be compatible with Access2000 database. Under load scenario, it might be closing connections automatically.
Has anybody faced similar problem before? Where can I find the compatible jdbc-odbc driver? And how to ensure that it is jdbc-odbc driver problem only?
The database verison - MS Access 2000
Java version - 1.3.1_01can i just point out that there is no support for transactions in Access so I wonder why you are calling autoCommit methods at all...
-
How do I open a pdf stored in a Microsoft Access database using Visual Basic studios 2012
Currently I am unable to find a valid method of being able to open a pdf stored in a Microsoft Access database using Visual Basic studios 2012. I've tried displaying the entire database on a form, but when I do this all the other columns show up with
the correct data besides the one containing the pdf's, it just displays <binary data> in each row down the column. I also tried another method with which you use the database as a dataset and can drag and drop the rows and columns into the form, which
again works for all the other columns besides the one containing the pdf's but this time I'm unable to interact with the column at all.
Not too sure if this is in the correct place, but any answers or help would be appreciated. Cheers.Alex,
This forum is dedicated to Project and Project Server. You might get better response, if you post to a Visual Basic forum. Here are couple I could find.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral%2Cvblanguage&filter=alltypes&sort=lastpostdesc
Cheers,
Prasanna Adavi, Project MVP
Blog:
Podcast:
Twitter:
LinkedIn:
-
base /open SQL Statement etc) the first time i defined the system everything was fine but when i changed the Database (using M.S.Access) the " open SQL Statement" it would show the tables but not thier columns ,I"m using win98 sec edition / Teststand 1.0.1i need to pass data from an Access database to Teststand by using the built in Data step types(open database /open SQL Statement etc) the first time i defined the system everything was fine but when i changed the Database (using M.S.Access) the " open SQL Statement" it would show the tables but not thier columns ,I"m using win98 sec edition / Teststand 1.0.1
When I tried the same thing on another cmputer the same thing
happend
appreiciate u"r helpbase /open SQL Statement etc) the first time i defined the system everything was fine but when i changed the Database (using M.S.Access) the " open SQL Statement" it would show the tables but not thier columns ,I"m using win98 sec edition / Teststand 1.0.1Hello Kitty -
Certainly it is unusual that you can still see the tables available in your MS Access database but cannot see the columns? I am assuming you are configuring an Open Statement step and are trying to use the ring-control to select columns from your table?
Can you tell me more about the changes you made to your file when you 'changed' it with MS Access? What version of Access are you using? What happens if you try and manually type in an 'Open Statement Dialog's SQL string such as...
"SELECT UUT_RESULT.TEST_SOCKET_INDEX, UUT_RESULT.UUT_STATUS, UUT_RESULT.START_DATE_TIME FROM UUT_RESULT"
Is it able to find the columns even if it can't display them? I am worried that maybe you are using a version of MS Access that is too new for the version of TestSt
and you are running. Has anything else changed aside from the file you are editing?
Regards,
-Elaine R.
National Instruments
http://www.ni.com/ask
Maybe you are looking for
-
Hi, I am executing following query and get the output as shown below. Select distinct(Entry_time), Paymentmode_code , shift_date , vehicleclass_code, Cnt from v_wog_summary model UNIQUE SINGLE REFERENCE partition by (Entry_Time) dimension b
-
hi everyone, I'm having problems with a fade out/in transition in IE8. The area I am changing has a white background (actually there are a few nested divs that all have a white background), and the fade effect triggers on a click in the navigation a
-
Adobe Form: Could not start Layout Designer (see long text) - FPUIFB 086
Hello Gurus, I have an issue when I working in SFP transaction, after create interface and form, When I switch to Layout Tab, I get and issue, please check my image blow: Could anyone help me? Thanks!
-
Custom transports for Oracle Financials or JD Edwards
Is anyone aware of a product/plug-in on the market that was built using the ALSB Transport SDK to connect to Oracle Financials or JD Edwards?
-
Could not complete request file already open
Hi, can anybody please help with this issue. In Fireworks CS6 on a Mac: When i open a file to make changes to it, then try saving it, it will give me the following error: "could not complete your request, because the file is already open in another a