Accessing tables From Multi-userid's
not sure if this is the correct place for this but..
I have a Visual Foxpro ver 9. application. The application has several users and each user is defined by their windows
login. When the applications executes, the data is copied to the following direcotry on the hard dirve,
c:\douments and settings\userid\local settings\temp...
this works no problem. My problem is on the CR2008 side. I need to set the data source for the tables to the located
mentioned above, for example c:\douments and settings\jpower\local settings\temp...
nad if there was a "guest" login..c:\douments and settings\guest\local settings\temp...
how can I set up my connection/datasource in CR2008 reports to point to the correct userid directory...
I did this using ver 8.5 and can;t remeber how I did it...
any suggestions greatly appreciated..
thanks in advance
Moved to Legacy Forum.
Need more info. What version of the RDC are you using?
Or are you wanting to do this in the designer and just use your app to view the report?
CR 2008 no longer ships the RDC so you may have to roll back to CR XI R2 or upgrade your app to .NET.
Thanks
Don
Similar Messages
-
Accessing tables from different schema in CDS and AMDP
Hi All,
We are working on a HANA system which has several schema replicated from SAP R/3/Non SAP systems. We have BW 7.4 SP9 deployed on the same system and accessing the HANA views using latest BW virtual objects such as Open ODS , Composite providers etc.
We are also using the BW system for few ABAP based data processing developments. We are currently accessing HANA views in ABAP programs by creating dictionary views based on external HANA views.
We would like to however use recent possibilities of CDS and AMDP for better life cycle management of ABAP based solutions. The open SAP course on this subject was of very good help. Thanks a lot "open SAP team" for that. I would however have few open questions,
As I understand AMDP gives us full flexibility of writing sql procedures within ABAP development environment, but can we access tables from different schema into AMDP code. If yes, then sample code would help.
If the answer of first question is yes, then how do we manage transports between development and production systems where the schema names would be different. Currently in open HANA developments, such transport is manged using Schema mapping.
Can I also use different schema tables in CDS views.
We are updating few tables in ABAP dictionary after applying processing logic in ABAP program as detailed in step 1. With the new approach using AMDP, can we directly update database schema tables which will give us an optimization advantage.
New ABAP HANA program interfaces are quite promising and we would like to use them to optimize many data intensive applications.
Thanks & Regards,
AnilHi Anil,
I can only answer 1. and 2. (and would be interested into 3. as well):
1.
Yes you can access tables from a different schema and also HANA views. In this case no 'using' is needed.
Examples:
RESULT = SELECT
FROM
"SAP_ECC"."T441V" AS t,
"_SYS_BIC"."tmp.package/AFPO" AS a.
WHERE ...
2. In this case, if you need schema mapping: You could use HANA (projection) views which just forward to a different schema, also see example.
Best regards,
Christoph -
Problem while creating MS-ACCESS tables from Internal tables
Hi All,
I need to create Access tables from the Internal tables of an ABAP program.
I am using RIACCESS program to create Access table and FM TABLE_EXPORT_TO_MSACCESS for populating the records into Access table.
Internal table name is ITAB1. I have created Z table with the same number of fields of ITAB1.
Key fields of Ztable is MANDT and Project ID.
I have two problems.
1. When I am trying to create access table from RIACCESS, the Access table is not having the MANDT and Project ID as key fields. Is there any way to pass the Internal table with key fields to the selection parameter of RIACCESS?
2. How to avoid the MANDT field from the Access table.
Please help me.
Thanks,
Prabhakarselect * from tablo@aaa;
ERROR at line 1:
ORA-02085: database link AAA.US.ORACLE.COM connects to HO.WORLD
Why is it unsuccessful?
02085, 00000, "database link %s connects to %s"
// *Cause: a database link connected to a database with a different name.
// The connection is rejected.
// *Action: create a database link with the same name as the database it
// connects to, or set global_names=false.
//Maybe a configuration mismatch somewhere? What's your global_names setting?
you should look in the trace files, enable listenner logging and tracing to get more clues about EOF error.
Yoann. -
Error while accessing table from procedure but no error from anonymous plsq
Hi All,
I am getting a strange error while accessing a table from a different schema.
In that concerned schema OWBSYS, i executed the following:
grant Select on wb_rt_audit to ods;In Ods schema i executed:
CREATE OR REPLACE SYNONYM wb_rt_audit FOR OWBSYS.wb_rt_audit;In ODS schema, when i execute:
create or replace
procedure pp_test as
lv_owb_reject number := 0;
lv_filename_1 varchar2(200):= 'asda';
begin
SELECT MAX(aud.rta_iid) into lv_owb_reject
FROM wb_rt_audit aud
WHERE aud.rta_lob_name LIKE Upper(lv_filename_1)
end;
/I get the error:
Warning: execution completed with warning
procedure Compiled.
ORA-00942 - TABLE OR VIEW DOES NOT EXISTHowever, when i execute as an anonymous plsql the same code:
declare
lv_owb_reject number := 0;
lv_filename_1 varchar2(200):= 'asda';
begin
SELECT MAX(aud.rta_iid) lv_owb_reject
FROM wb_rt_audit aud
WHERE aud.rta_lob_name LIKE Upper(lv_filename_1)
end;
anonymous block completedthere is no issue.
Can someone help me understand what I might be missing:
Edited by: Chaitanya on Feb 28, 2012 12:31 AMCheck if have some other steps.
SQL>conn scott1/tiger
Connected.
SQL>create table wb_rt_audit (rta_iid number);
Table created.
SQL>insert into wb_rt_audit values (100);
1 row created.
SQL>insert into wb_rt_audit values (200);
1 row created.
SQL>commit;
Commit complete.
SQL>grant select on wb_rt_audit to scott2;
Grant succeeded.
SQL>conn scott2/tiger
Connected.
SQL>create synonym wb_rt_audit for scott1.wb_rt_audit;
Synonym created.
SQL>create or replace procedure pp_test as
l_number number(10);
begin
SELECT MAX(rta_iid) into l_number
FROM wb_rt_audit;
end pp_test;
Procedure created. -
Populating ADF Table from Multi-Dimensional Array
Hello!
I'm trying to populate an ADF table from a multi-dimensional array.
Let's say that my array is
String [] [] myArr = new String [3][5].
On my page backing bean, I have a private attribute called tmpArr like this...
String [] [] tmpArr;
...which I will initialize later after I know the proper dimensions. The dimensions will come from a multimap that contains a key and and another array (for the key's value) containing values for the key. So once I know the dimensions I initialize my array with...
tmpArr = new String [x][y] where x and y are the dimensions (counters).
Now I have my multidimension array. On an jsp page I have an ADF table, and I'm setting the value for the table to the array (the table's value property is bound to the backing bean's tmpArr attribure).
Like so:
<af:panelForm id="availableOptions"
binding="#{myBackingBean.availableOptionsValues}">
<af:table emptyText="No items were found" rows="10"
value="#{myBackingBean.tmpArr}" var='myArr'>
Now I need to know how to do the following:
1) Set the table's columns based on the number of attributes on the array.
2) Set the table's rows based on the array's length.
3) Set each table cell value to values on the array's 2nd dimension. I'm assuming that ADF takes care iterating through the array, and that I should do something like...
<af:outputText value="#{myArr[][0]}"/>
<af:outputText value="#{myArr[][1]}"/>
etc...
However, this isn't working...
javax.faces.el.ReferenceSyntaxException: myArr[][0]
...bla bla bla...
Was expecting one of:
<INTEGER_LITERAL> ...
<FLOATING_POINT_LITERAL> ...
<STRING_LITERAL> ...
"true" ...
"false" ...
"null" ...
"not" ...
"empty" ...
<IDENTIFIER> ...
Is there a blog or resource (article, book, etc) that shows how this is done? Anyone has done this and would like to share how?
Thank you.This is in fact possible. I'm not sure about the "best practice" around doing this but there is a couple of ways to do this.
You can either create a managed bean then right click on it and use the wizard to create a data control or you can do it as per below
The a table will convert an array into a collection.
Once you have created an array and generated the accessors in a bean you can then reference the mutli-dimensional array from a table as per below.
<af:table value="#{pageFlowScope.PageBean.sessionArr}" var="row" rowBandingInterval="0" id="t1" varStatus="status">
<af:column sortable="false" headerText="col1" id="c1">
<af:outputText value="#{pageFlowScope.PageBean.sessionArr[status.index][0]}" id="ot1"/>
</af:column>
</af:table>
String [][] sessionArr = new String[5][2];
public void setSessionArr(String[][] sessionArr) {
this.sessionArr = sessionArr;
public String[][] getSessionArr() {
sessionArr[0][0]="rice";
sessionArr[1][0]="water";
return sessionArr;
EDIT: For either of the above methods the managed bean must have a scope of pageFlow or longer.
Cheers,
Aaron
Edited by: Aaron Rapp on Oct 6, 2011 3:28 PM -
I am creating an inventory system. I have used Java for front-end where i have created forms which display the vendor table, customer table, item table, order table, invoice tbl etc.
I have created class files for each form that im displaying. i have also made connection to the oracle dbs succesfully. i can access data from the dbs.
but my problem is,
1)
for instance i have created a vendor_master table in oracle with certain constraints like vendor_number can contain only 5 varchar2 characters ,
eg.
create table vendor_master
(v_no varchar2(5) constraint v_no_pk primary key,
v_name varchar2(25),
v_add varchar2(15),
city varchar2(15),
st varchar2(15),
zip number(10),
tel number(11),
fax number(11));
now when i want 2 insert any row in the table i should be able 2 insert only "certain" characters of "certain" length depending on the constraints i have set. how do i do tht? coz java does not allow me 2 set the max chars like VB in the properties column
i have my vendor Master class file here:
code:--------------------------------------------------------------------------------
package mainpage;
import java.io.*;
import java.io.Serializable;
import java.awt.*;
import java.awt.event.*;
import java.lang.String.*;
import javax.swing.*;
import javax.swing.JPanel;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.ResultSet;
import java.util.Vector;
import oracle.jdbc.driver.OracleDriver;
import oracle.jdbc.OracleResultSet;
import java.sql.PreparedStatement;
public class VendorMaster extends JPanel implements java.io.Serializable
JFrame venMastFrame = new JFrame("Vendor Master");
JLabel vennolbl = new JLabel();
JLabel venNamelbl = new JLabel();
JLabel venAdd = new JLabel();
JTextField venAddtxt = new JTextField();
JTextField venNotxt = new JTextField();
JTextField venNmtxt = new JTextField();
JLabel venCitylbl = new JLabel();
JTextField venCitytxt = new JTextField();
JLabel venStlbl = new JLabel();
JTextField venSttxt = new JTextField();
JLabel venZiplbl = new JLabel();
JTextField venZiptxt = new JTextField();
JLabel venTellbl = new JLabel();
JTextField venTeltxt = new JTextField();
JLabel venFaxlbl = new JLabel();
JTextField venFaxtxt = new JTextField();
JButton vPrevbtn = new JButton();
JButton vNxtbtn = new JButton();
JButton vExitbtn = new JButton();
JButton vNewbtn = new JButton();
JButton vDelbtn = new JButton();
JButton vUpdtbtn = new JButton();
JButton vSavebtn = new JButton();
int currentIndex = 0;
int totalRecords = 0;
private Vector vendorMasterRecords = new Vector();
public VendorMaster()
venMastFrame.setSize(850,760);
venMastFrame.setVisible(true);
//venMastFrame.show();
try
jbInit();
} catch (Exception e)
e.printStackTrace();
} // end of constructor
private void jbInit() throws Exception
Connection myConnection = DataManager.createConnection();
vendorMasterRecords = loadVendorMasterRecords(myConnection);
VendorMasterBean vmBean = null;
venMastFrame.getContentPane().setLayout(null);
if(vendorMasterRecords != null)
{ vmBean = (VendorMasterBean)vendorMasterRecords.elementAt(0);
totalRecords = vendorMasterRecords.size();
currentIndex = 0;
if(vmBean == null)
vmBean = new VendorMasterBean();
venNamelbl.setText("Vendor Name:");
venNamelbl.setBounds(new Rectangle(22, 87, 89, 23));
venNmtxt.setBounds(new Rectangle(153, 81, 224, 22));
venNmtxt.setEnabled(false);
venNmtxt.setText(vmBean.getVendorName());
venAdd.setText("Address:");
venAdd.setBounds(new Rectangle(25, 130, 113, 31));
venAddtxt.setBounds(new Rectangle(152, 126, 201, 22));
venAddtxt.setEnabled(false);
venAddtxt.setText(vmBean.getAddress());
vennolbl.setText("Vendor No:");
vennolbl.setBounds(new Rectangle(23, 41, 73, 22));
venNotxt.setBounds(new Rectangle(155, 38, 108, 22));
venNotxt.setEnabled(false);
venNotxt.setText(vmBean.getVendorNumber());
venCitylbl.setText("City:");
venCitylbl.setBounds(new Rectangle(25, 175, 61, 29));
venCitytxt.setBounds(new Rectangle(153, 172, 156, 24));
venCitytxt.setEnabled(false);
venCitytxt.setText(vmBean.getCity());
venStlbl.setText("State:");
venStlbl.setBounds(new Rectangle(25, 225, 64, 32));
venSttxt.setBounds(new Rectangle(152, 223, 158, 24));
venSttxt.setEnabled(false);
venSttxt.setText(vmBean.getState());
venZiplbl.setText("Zip:");
venZiplbl.setBounds(new Rectangle(24, 275, 58, 24));
venZiptxt.setBounds(new Rectangle(150, 272, 108, 24));
venZiptxt.setEnabled(false);
venZiptxt.setText(vmBean.getZipcode());
venTellbl.setText("Telephone No:");
venTellbl.setBounds(new Rectangle(25, 323, 106, 26));
venTeltxt.setBounds(new Rectangle(149, 326, 108, 26));
venTeltxt.setEnabled(false);
venTeltxt.setText(vmBean.getTelephone());
venFaxlbl.setText("Fax No:");
venFaxlbl.setBounds(new Rectangle(27, 375, 97, 26));
venFaxtxt.setBounds(new Rectangle(149, 375, 107, 26));
venFaxtxt.setEnabled(false);
venFaxtxt.setText(vmBean.getFax());
/* code for buttons */
vExitbtn.setBounds(new Rectangle(681, 457, 111, 29));
vExitbtn.setText("EXIT");
vExitbtn.addKeyListener(new VendorMaster_vExitbtn_keyAdapter(this));
vExitbtn.addActionListener(new VendorMaster_vExitbtn_actionAdapter(this));
vPrevbtn.setText("PREVIOUS");
vPrevbtn.addKeyListener(new VendorMaster_vPrevbtn_keyAdapter(this));
vPrevbtn.addActionListener(new VendorMaster_vPrevbtn_actionAdapter(this));
vPrevbtn.setBounds(new Rectangle(14, 457, 110, 29));
vPrevbtn.setEnabled(false);
vNxtbtn.setText("NEXT");
vNxtbtn.addKeyListener(new VendorMaster_vNxtbtn_keyAdapter(this));
vNxtbtn.addActionListener(new VendorMaster_vNxtbtn_actionAdapter(this));
vNxtbtn.setBounds(new Rectangle(124, 457, 111, 29));
vNewbtn.setText("NEW");
vNewbtn.setBounds(new Rectangle(235, 457, 111, 29));
vNewbtn.setActionCommand("NEW");
vNewbtn.addActionListener(new VendorMaster_vNewbtn_actionAdapter(this));
vNewbtn.addKeyListener(new VendorMaster_vNewbtn_keyAdapter(this));
vDelbtn.setText("DELETE");
vDelbtn.setBounds(new Rectangle(346, 457, 111, 29));
vDelbtn.setHorizontalAlignment(SwingConstants.CENTER);
vDelbtn.addActionListener(new VendorMaster_vDelbtn_actionAdapter(this));
vDelbtn.addKeyListener(new VendorMaster_vDelbtn_keyAdapter(this));
vUpdtbtn.setText("UPDATE");
vUpdtbtn.addActionListener(new VendorMaster_vUpdtbtn_actionAdapter(this));
vUpdtbtn.setBounds(new Rectangle(457, 457, 113, 29));
vUpdtbtn.setMaximumSize(new Dimension(71, 25));
vUpdtbtn.setMinimumSize(new Dimension(71, 25));
vUpdtbtn.setPreferredSize(new Dimension(71, 25));
/* Add all the txtboxes, lbls and buttons to the frame */
vSavebtn.setBounds(new Rectangle(570, 457, 111, 29));
vSavebtn.setText("SAVE");
vSavebtn.addActionListener(new VendorMaster_vSavebtn_actionAdapter(this));
venMastFrame.getContentPane().add(vennolbl, null);
venMastFrame.getContentPane().add(venNotxt, null);
venMastFrame.getContentPane().add(venNamelbl, null);
venMastFrame.getContentPane().add(venNmtxt, null);
venMastFrame.getContentPane().add(venAdd, null);
venMastFrame.getContentPane().add(venAddtxt, null);
venMastFrame.getContentPane().add(venCitylbl, null);
venMastFrame.getContentPane().add(venCitytxt, null);
venMastFrame.getContentPane().add(venStlbl, null);
venMastFrame.getContentPane().add(venSttxt, null);
venMastFrame.getContentPane().add(venZiplbl, null);
venMastFrame.getContentPane().add(venZiptxt, null);
venMastFrame.getContentPane().add(venTellbl, null);
venMastFrame.getContentPane().add(venTeltxt, null);
venMastFrame.getContentPane().add(venFaxlbl, null);
venMastFrame.getContentPane().add(venFaxtxt, null);
venMastFrame.getContentPane().add(vPrevbtn, null);
venMastFrame.getContentPane().add(vNxtbtn, null);
venMastFrame.getContentPane().add(vNewbtn, null);
venMastFrame.getContentPane().add(vDelbtn, null);
venMastFrame.getContentPane().add(vUpdtbtn, null);
venMastFrame.getContentPane().add(vSavebtn, null);
venMastFrame.getContentPane().add(vExitbtn, null);
} // end of jbinit
public static void main(String[] args)
VendorMaster vendorMaster1 = new VendorMaster();
} //end of main
/* this is where the data will be retrieved from the dbs */
protected Vector loadVendorMasterRecords(Connection connection)
//Connection connection = null;
Vector masterRecords = new Vector();
// From database getting values
try
//connection = connectionManager.getConnection();
Statement stmt = connection.createStatement();
String queryall = "Select * from vendor_master order by v_no";
ResultSet rs = stmt.executeQuery(queryall);
while (rs.next())
String vendorNumber = rs.getString("v_no");
String vendorName = rs.getString("v_name");
String address = rs.getString("v_add");
String city = rs.getString("city");
String state = rs.getString("st");
String zipCode = rs.getString("zip");
String telephone = rs.getString("tel");
String fax = rs.getString("fax");
VendorMasterBean vendorMasterBean = new VendorMasterBean(vendorNumber,
vendorName,
address,
city,
state,
zipCode,
telephone,
fax);
/* data retrieved from the vendormasterbean is then inserted in vector*/
masterRecords.addElement(vendorMasterBean);
} // end of while
} catch (Exception e) // end of try & start of catch
e.printStackTrace();
} // end of catch
finally
if(connection != null)
DataManager.freeConnection(connection);
return masterRecords; /* the data stored in
masterRecords is passed 2 vendormasterRecords*/
} // finally ends here
} // end of loadvendorMasterrecords
/*example- when previous button is pressed then an event is triggered
captured by the key listener and then actionPerformed method is called
which in turn calls the getPreviousRecord*/
/* to insert records */
protected void addVendorMasterRecord(VendorMasterBean vmBean )
Connection connection = null;
Vector masterRecords = new Vector();
// first check whether all the textboxes are empty
// also check whether there is already a record
//existing with the same v_no
// From database getting values
try
connection = DataManager.createConnection();
PreparedStatement newRecord = connection.prepareStatement("insert into vendor_master values(?,?,?,?,?,?,?,?)");
newRecord.setString(1,vmBean.getVendorNumber());
newRecord.setString(2, vmBean.getVendorName());
newRecord.setString(3, vmBean.getAddress());
newRecord.setString(4, vmBean.getCity());
newRecord.setString(5, vmBean.getState());
newRecord.setString(6, vmBean.getZipcode());
newRecord.setString(7, vmBean.getTelephone());
newRecord.setString(8, vmBean.getFax());
newRecord.executeUpdate();
// Insert statement
// PreparedStatement pStmt = ....;
// The assign each value in the vmBean to the pStmt
// and finally execute the pStmt
} catch (Exception e) // end of try and begin of catch
e.printStackTrace();
} // end of catch
finally
if(connection != null)
DataManager.freeConnection(connection);
}// end of if
} // end of finally
} // end of addVendorMasterRecord
void vNewbtn_actionPerformed(ActionEvent e)
/* First empty all the textboxes */
venNotxt.setText(" ");
venNmtxt.setText(" ");
venAddtxt.setText(" ");
venCitytxt.setText(" ");
venSttxt.setText(" ");
venZiptxt.setText(" ");
venTeltxt.setText(" ");
venFaxtxt.setText(" ");
venNotxt.setEnabled(true);
venNmtxt.setEnabled(true);
venAddtxt.setEnabled(true);
venCitytxt.setEnabled(true);
venSttxt.setEnabled(true);
venZiptxt.setEnabled(true);
venTeltxt.setEnabled(true);
venFaxtxt.setEnabled(true);
vPrevbtn.setEnabled(false);
vNxtbtn.setEnabled(false);
void vNewbtn_keyPressed(KeyEvent e)
/* to delete records */
protected void removeVendorMasterRecord(VendorMasterBean vmBean )
Connection connection = null;
Vector masterRecords = new Vector();
// From database getting values
try
connection = DataManager.createConnection();
PreparedStatement deleteRecord = connection.prepareStatement("delete from vendor_master where v_no = ?");
deleteRecord.setString(1, vmBean.getVendorNumber());
deleteRecord.executeUpdate();
// Delete statement for where condition pass the vendor number as parameter
//"delete from vendor_master where v_no = ?"
//PreparedStatement pStmt = ....;
// The assign v_no in the vmBean to the pStmt
// and finally execute the pStmt
} catch (Exception e)
e.printStackTrace();
finally
// After executing this new record should be removed from the Vector of results.
// uncomment this
if(connection != null){
DataManager.freeConnection(connection);
} // end of finally
} // end of removeVendorMasterRecord
void vDelbtn_actionPerformed(ActionEvent e)
String vendorNumber = venNotxt.getText();
String vendorName = venNmtxt.getText();
String address = venAddtxt.getText();
String city = venCitytxt.getText();
String state = venSttxt.getText();
String zipCode = venZiptxt.getText();
String telephone = venTeltxt.getText();
String fax = venFaxtxt.getText();
VendorMasterBean vmBean = new VendorMasterBean(vendorNumber,vendorName, address, city, state, zipCode, telephone, fax);
removeVendorMasterRecord(vmBean);
void vDelbtn_keyPressed(KeyEvent e)
/* To get next record */
protected VendorMasterBean getNextRecord()
VendorMasterBean vmBean = new VendorMasterBean();
if(currentIndex < totalRecords)
vmBean =(VendorMasterBean)vendorMasterRecords.elementAt(++currentIndex);
if(currentIndex == (totalRecords-1) )
// reached last, so disable the Next button
vNxtbtn.setEnabled(false);
// enable the Previous
vPrevbtn.setEnabled(true);
} // end of if stmt
} // end of outer if stmt
return vmBean;
} // end of getnextrecord
void vNxtbtn_keyPressed(KeyEvent e)
void vNxtbtn_actionPerformed(ActionEvent e)
VendorMasterBean vmBean = getNextRecord();
venNotxt.setText(vmBean.getVendorNumber());
venNmtxt.setText(vmBean.getVendorName());
venAddtxt.setText(vmBean.getAddress());
venCitytxt.setText(vmBean.getCity());
venSttxt.setText(vmBean.getState());
venZiptxt.setText(vmBean.getZipcode());
venTeltxt.setText(vmBean.getTelephone());
venFaxtxt.setText(vmBean.getFax());
/* to get previous record */
protected VendorMasterBean getPreviousRecord()
VendorMasterBean vmBean = new VendorMasterBean();
if(currentIndex > 0)
vmBean =(VendorMasterBean)vendorMasterRecords.elementAt(--currentIndex);
if(currentIndex == 0)
// reached first so disable the Previous button
vPrevbtn.setEnabled(false);
// enable the Next
vNxtbtn.setEnabled(true);
} // end of inner if stmt
} // end of outer if stmt
return vmBean;
} // end of previousrecord
void vPrevbtn_actionPerformed(ActionEvent e)
VendorMasterBean vmBean = getPreviousRecord();
venNmtxt.setText(vmBean.getVendorName());
venAddtxt.setText(vmBean.getAddress());
venNotxt.setText(vmBean.getVendorNumber());
venCitytxt.setText(vmBean.getCity());
venSttxt.setText(vmBean.getState());
venZiptxt.setText(vmBean.getZipcode());
venTeltxt.setText(vmBean.getTelephone());
venFaxtxt.setText(vmBean.getFax());
void vPrevbtn_keyPressed(KeyEvent e)
void vUpdtbtn_actionPerformed(ActionEvent e)
/* when the update button is pressed , only the v_no is disabled
vPrevbtn.setEnabled(false);
vNxtbtn.setEnabled(false);
venNmtxt.setEnabled(true);
venAddtxt.setEnabled(true);
venCitytxt.setEnabled(true);
venSttxt.setEnabled(true);
venZiptxt.setEnabled(true);
venTeltxt.setEnabled(true);
venFaxtxt.setEnabled(true);
//then the user should press the save button
void vExitbtn_actionPerformed(ActionEvent e)
venMastFrame.setDefaultCloseOperation(venMastFrame.EXIT_ON_CLOSE);
void vExitbtn_keyPressed(KeyEvent e)
void vSavebtn_actionPerformed(ActionEvent e)
String vendorNumber = venNotxt.getText();
String vendorName = venNmtxt.getText();
String address = venAddtxt.getText();
String city = venCitytxt.getText();
String state = venSttxt.getText();
String zipCode = venZiptxt.getText();
String telephone = venTeltxt.getText();
String fax = venFaxtxt.getText();
VendorMasterBean vmBean = new VendorMasterBean(vendorNumber, vendorName,address, city, state, zipCode, telephone, fax);
addVendorMasterRecord(vmBean);
} // end of vSavebtn_actionPerformed
} // end of class vendormaster
//Adapter classes
class VendorMaster_vNxtbtn_actionAdapter implements java.awt.event.ActionListener
VendorMaster adaptee;
VendorMaster_vNxtbtn_actionAdapter(VendorMaster adaptee)
this.adaptee = adaptee;
public void actionPerformed(ActionEvent e)
adaptee.vNxtbtn_actionPerformed(e);
class VendorMaster_vNxtbtn_keyAdapter extends java.awt.event.KeyAdapter
VendorMaster adaptee;
VendorMaster_vNxtbtn_keyAdapter(VendorMaster adaptee)
this.adaptee = adaptee;
public void keyPressed(KeyEvent e)
adaptee.vNxtbtn_keyPressed(e);
class VendorMaster_vPrevbtn_actionAdapter implements java.awt.event.ActionListener
VendorMaster adaptee;
VendorMaster_vPrevbtn_actionAdapter(VendorMaster adaptee)
this.adaptee = adaptee;
public void actionPerformed(ActionEvent e)
adaptee.vPrevbtn_actionPerformed(e);
class VendorMaster_vPrevbtn_keyAdapter extends java.awt.event.KeyAdapter
VendorMaster adaptee;
VendorMaster_vPrevbtn_keyAdapter(VendorMaster adaptee)
this.adaptee = adaptee;
public void keyPressed(KeyEvent e)
adaptee.vPrevbtn_keyPressed(e);
class VendorMaster_vExitbtn_actionAdapter implements java.awt.event.ActionListener
VendorMaster adaptee;
VendorMaster_vExitbtn_actionAdapter(VendorMaster adaptee)
this.adaptee = adaptee;
public void actionPerformed(ActionEvent e)
adaptee.vExitbtn_actionPerformed(e);
class VendorMaster_vExitbtn_keyAdapter extends java.awt.event.KeyAdapter
VendorMaster adaptee;
VendorMaster_vExitbtn_keyAdapter(VendorMaster adaptee)
this.adaptee = adaptee;
public void keyPressed(KeyEvent e)
adaptee.vExitbtn_keyPressed(e);
class VendorMaster_vNewbtn_actionAdapter implements java.awt.event.ActionListener
VendorMaster adaptee;
VendorMaster_vNewbtn_actionAdapter(VendorMaster adaptee)
this.adaptee = adaptee;
public void actionPerformed(ActionEvent e)
adaptee.vNewbtn_actionPerformed(e);
class VendorMaster_vNewbtn_keyAdapter extends java.awt.event.KeyAdapter
VendorMaster adaptee;
VendorMaster_vNewbtn_keyAdapter(VendorMaster adaptee)
this.adaptee = adaptee;
public void keyPressed(KeyEvent e)
adaptee.vNewbtn_keyPressed(e);
class VendorMaster_vDelbtn_actionAdapter implements java.awt.event.ActionListener
VendorMaster adaptee;
VendorMaster_vDelbtn_actionAdapter(VendorMaster adaptee)
this.adaptee = adaptee;
public void actionPerformed(ActionEvent e)
adaptee.vDelbtn_actionPerformed(e);
class VendorMaster_vDelbtn_keyAdapter extends java.awt.event.KeyAdapter
VendorMaster adaptee;
VendorMaster_vDelbtn_keyAdapter(VendorMaster adaptee)
this.adaptee = adaptee;
public void keyPressed(KeyEvent e)
adaptee.vDelbtn_keyPressed(e);
class VendorMaster_vUpdtbtn_actionAdapter implements java.awt.event.ActionListener {
VendorMaster adaptee;
VendorMaster_vUpdtbtn_actionAdapter(VendorMaster adaptee) {
this.adaptee = adaptee;
public void actionPerformed(ActionEvent e) {
adaptee.vUpdtbtn_actionPerformed(e);
class VendorMaster_vSavebtn_actionAdapter implements java.awt.event.ActionListener {
VendorMaster adaptee;
VendorMaster_vSavebtn_actionAdapter(VendorMaster adaptee) {
this.adaptee = adaptee;
public void actionPerformed(ActionEvent e) {
adaptee.vSavebtn_actionPerformed(e);
the following code is the vendorMasterBean class file- this file helps 2 assign data to the various textboxes.
code:--------------------------------------------------------------------------------
package mainpage;
public class VendorMasterBean
private String vendorNumber;
private String vendorName;
private String address;
private String city;
private String state;
private String zipcode;
private String telephone;
private String fax;
public int Mandatory_Value;
public VendorMasterBean()
} // end of constructor
public VendorMasterBean(String vendorNumber,String vendorName,String address,String city,String state,String zipcode,String telephone,String fax)
setVendorNumber(vendorNumber);
setVendorName(vendorName);
setAddress(address);
setCity(city);
setState(state);
setZipcode(zipcode);
setTelephone(telephone);
setFax(fax);
/* Set Method */
public void setVendorNumber(String vendorNumber)
try
if ( (vendorNumber == null) || (vendorNumber.length() <= 0) || (vendorNumber.length() > 5))
throw new ValidateException(ValidateException.MANDATORY_VALUE,
"Vendor Number");
} // end of if stmt
else {
this.vendorNumber = vendorNumber;
} // end of else
catch(Exception e)
e.printStackTrace();
} // end of setVendorNumber
public void setVendorName(String vendorName)
try
if((vendorName == null) || (vendorName.length() <=0 && vendorName.length() > 25))
throw new ValidateException(ValidateException.MANDATORY_VALUE,
"Vendor Name");
}// end of if
else
this.vendorName = vendorName;
} // end of else
} // end of try
catch(Exception e)
e.printStackTrace();
}// end of set method
public void setAddress(String address)
try
if((address == null) ||(address.length() <=0 && address.length()>15))
throw new ValidateException(ValidateException.MANDATORY_VALUE,
"Address");
else
this.address = address;
catch(Exception e)
e.printStackTrace();
public void setCity(String city)
try
if((city == null) ||(city.length()<=0 && city.length() > 15))
throw new ValidateException(ValidateException.MANDATORY_VALUE,
"City");
else
this.city = city;
catch(Exception e)
e.printStackTrace();
public void setState(String state)
try
if((state == null) || (state.length()<=0 && state.length() >15))
throw new ValidateException(ValidateException.MANDATORY_VALUE,
"State");
else
this.state = state;
catch(Exception e)
e.printStackTrace();
public void setZipcode(String zipcode)
try
if((zipcode==null) ||(zipcode.length()<=0 && zipcode.length() > 10))
throw new ValidateException(ValidateException.MANDATORY_VALUE,
"Zipcode");
else
this.zipcode = zipcode;
catch(Exception e)
e.printStackTrace();
public void setTelephone(String telephone)
try
if((telephone==null) || (telephone.length() <= 0 && telephone.length()> 7))
throw new ValidateException(ValidateException.MANDATORY_VALUE,
"Telephone");
else
this.telephone = telephone;
catch(Exception e)
e.printStackTrace();
public void setFax(String fax)
try
if((fax == null) ||(fax.length()<=0 && fax.length() > 7))
throw new ValidateException(ValidateException.MANDATORY_VALUE,
"Fax");
else
this.fax = fax;
catch(Exception e)
e.printStackTrace();
/* Get method */
public String getVendorNumber()
return vendorNumber;
public String getVendorName()
return vendorName;
public String getAddress()
return address;
public String getCity()
return city;
public String getState()
return state;
public String getZipcode()
return zipcode;
public String getTelephone()
return telephone;
public String getFax()
return fax;
/* end of get method*/
} // end of class
2) the 2nd error is in the save button method , everytme i try 2 save the inserted record it gives me an error.
in case u need my mainpage.java, here it is
code:--------------------------------------------------------------------------------
package mainpage;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.JPanel;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
//import java.sql.Statement;
//import java.sql.ResultSet;
import oracle.jdbc.driver.OracleDriver;
import oracle.jdbc.OracleResultSet;
public class MainPage extends JFrame implements ActionListener
public static String title = "Warehouse Management System";
JFrame frame = new JFrame();
JMenuBar menuBar = new JMenuBar();
JMenu viewMenu = new JMenu("VIEW");
JMenuItem vendorItem = new JMenuItem("Vendor Master");
JMenuItem custItem= new JMenuItem("Customer Master");
JMenuItem salesrepItem= new JMenuItem("Sales Rep Master");
JMenuItem itemmastItem= new JMenuItem("Item Master");
JMenuItem orderItem= new JMenuItem("Order Master");
JMenuItem invoiceItem = new JMenuItem("Invoice Master");
JMenuItem payItem= new JMenuItem("Payment Master");
JMenu transactionMenu = new JMenu("EDIT");
JMenuItem veneditItem = new JMenuItem("Vendor");
JMenuItem custeditItem = new JMenuItem("Customer");
JMenuItem saleItem = new JMenuItem("Rep Information");
JMenuItem itmeditItem= new JMenuItem("Item");
JMenuItem ordeditItem= new JMenuItem("Order");
JMenuItem inveditItem = new JMenuItem("Invoice");
JMenuItem payeditItem = new JMenuItem("Payment");
JMenu exitMenu = new JMenu("EXIT2 parts to this
Limit characters in jtextfield using a custom document
http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html#customdocument
Specify a custom editor (jtextfield) for jtable (or column)
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#validtext -
Built in Function to Populate an access table from an Oracle Table through VB 6.0
Dear all,
Is there any built in function in VB 6.0 to populate an access table directly from an oracle table or SQL Server(Assume Both has the same columns & data type).
(Just like the DoCmd command which can be used to populate an excel sheet directly from an access table).
Please help.
Regards
Sibby.Sibby,
There is no "built-in" code in VB that I am aware of. However, you could use this code which I wrote for SQL Server. For Oracle, you would have to change to the appropriate table to get all the table names. You can filter by table name to get just your tables like I did below (My_).
'* Now select all the files and add to access.
sSQL = "SELECT name, id FROM sysobjects WHERE xtype = 'U' AND SUBSTRING(name, 1, 3) = 'My_' ORDER BY name"
Set rstTemp = OpenRdSetView(sSQL:=sSQL, adoConnection:=adoConnection)
On Error GoTo TableExistError
'* Loop through all my database tables and copy to the Access database.
With rstTemp
Do While Not .EOF
'* Copy this to the Access backup database.
sTableName = .Fields("Name").Value
'* Select all records from the SQL Server table and copy to the local Access database.
sSQL = "SELECT * INTO " & sTableName & " FROM "
sSQL = sSQL & "[odbc;dsn=" & sDSN & ";UID=" & sUID & ";pwd=" & spwd & ";]." & sTableName
adoBackupConnection.Execute sSQL, , adExecuteNoRecords
'* Go to next table.
.MoveNext
Loop
End With -
How to access tables from multiple schemas
Hi,
I have access to 2 different schema (schema_a, Schema_B) through my APEX environment... I have a query that's based on tables from both the schemas... something like this
select SCHEMA_A.table1.column1, table2.column2
from
SCHEMA_A.table1, table2
it is giving me a message that table doesn't exist.
Please advice.
ThanksYou need to grant the required permission (if there is no restriction then you can use GRANT ALL), You can give the permission to particular user on the schema.
conn / as sysdba
grant select on userA.table_name to userB;
connect userB/passwordB
select userA.table1.column1, table2.column2
from
userA.table1, table2;Refer these links,
https://forums.oracle.com/forums/thread.jspa?threadID=616903
http://www.techonthenet.com/oracle/grantrevoke.php_
Thanks
Lakshmi -
Accessing tables from remote machine
I using the following code, to update the record from the emp table. This table is created locally in my machine.
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conn;
String db = "jdbc:odbc:NewDsn";
String username = "test";
String password = "test";
String tableName = "emp";
conn = DriverManager.getConnection(db, username, password);
Statement stmt1 = conn.createStatement();
String update = "update " + tableName +
" set salary=salary+1000 where empid>200";
stmt1.executeUpdate(update);
I want my application to run on two different machine and the update should be made on a single table.
Please help me, how the user from other machine can access this emp table created in my local machine?I completely agree with RPriya.
jschell, If you think that it is not correct, could you please put some focus on your statementYou mean you want me to explain how database connections work in general and how jdbc drivers would use them?
Do you know how a socket works? Do you know that it requires a client and a server?
How does a socket work if there is no server?
How do database connections work in C, C++, Perl, Ruby, Python, VB, etc, when absolutely none of those use a java type 4 driver?
Do you know how the oracle oci driver work? It is not a type 4 driver.
Do you know how the jdbc-odbc bridge works with oracle? With MS SQL Server? The jdbc-odbc bridge is not a type 4 driver. -
Accessing V$tables from within OO4O
When trying to access the V$ tables (ie. V$SQLTEXT)
by using the OO4O interface I get the error
ORA-03106 Fatal two task communication protocol error
when accessing 'ordinary' tables (ie. EMPLOYEES) the
error does not accor
any ideas on this one?
nullHi Anil,
I can only answer 1. and 2. (and would be interested into 3. as well):
1.
Yes you can access tables from a different schema and also HANA views. In this case no 'using' is needed.
Examples:
RESULT = SELECT
FROM
"SAP_ECC"."T441V" AS t,
"_SYS_BIC"."tmp.package/AFPO" AS a.
WHERE ...
2. In this case, if you need schema mapping: You could use HANA (projection) views which just forward to a different schema, also see example.
Best regards,
Christoph -
Accessing remote table from another R/3 system
Hi,
We are running our production on ECC 5.0 but we ABAP web dynpro environment on ECC7.0 portal box. We want use ABAP web dynpro for publishing some application through portal. I have read many document regarding accessing remote systems through RFC enabled function module but for the we need have function module in both system. Is it any way possible to access table from remote R/3 system programmatic without any call for function module. Please advice.
Thanks in advance,
Ravi Prakashhi,
you should use a remote enabled function no matter what to read db table on other system
grtz,
Koen -
Linking Access tables, creating a query with using both Access and Oracle
Hello,
I am using 3.0.04.34 version Oracle Developer. I am supposed to create a script/procedure to use both Access tables and oracle tables together. There is an option in developer to copy the access tables into oracle. But it doesn't help me. Because when we updated the access tables
the copied ones are not be updated. How can I created a linked access tables to oracle and create a query with using both access and oracle table together.
I will appreciate if you guys help me. I look forward to hearing from you guys.
Thanks,
PinarPinar,
to be able to query MS Access tables in Oracle you need an additional product, the Oracle Database Gateway for ODBC. It allows you to link any foreign database into an Oracle database using a suitable ODBC driver. You can then access the MS Access tables through a database link based on the Database Gateway for ODBC. This will also allow you to join local Oracle and remote MS Access tables from your Oracle database.
There's a note on My Oracle Support which gives you more details:Document 233876.1 Options for Connecting to Foreign Data Stores and Non-Oracle Databases - For example - DB2, SQL*Server, Sybase, Informix, Teradata, MySQL
And there's also a dedicated Forum: Heterogeneous Connectivity -
Writing records MS Access records from LabVIEW
I'm trying to write new records to a MS Access table from within LV. I need to use ActiveX (no chance for SQL toolkit). I'm able to create new records in the database table, but cannot write values in the fields. Can anybody help me?
thanks in advance
Giovanni MoschioniThanks for answer; as a matter of fact my problem is how to tell Access 'hey, I want this field of this record to be this value'. In a nutshell I'm not able to translate into LV the following statements extracted from MS Dao Help file:
.AddNew
!Name = strName
!Surname= strSurname
.Update
Thanks again for help!
Giovanni Moschioni -
Access 2013 crashed when I export a table from the access
Hi!
Access 2013 always crashed when I export a table from the access to the Database Symfoware.
1、The conditions of the Access 2013 crashed are the follows.
1)Create a table in the Access 2013.
2)Using the ODBC driver of the Database Symfoware to export the table from the access to the Database Symfoware.
2、The Environments are the follows.
1)Access 2013 X64(Version:15.0.4420.1017)
2)Win2008R2 X64
3)Symfoware V11.1 X64
3、The Application log from the Win2008R2 are follows.
ログの名前: Application
ソース: Application Error
日付: 2014/04/18 16:21:06
イベント ID: 1000
タスクのカテゴリ: (100)
レベル: エラー
キーワード: クラシック
ユーザー: N/A
コンピューター: WIN-29UTU2AIK6J
説明:
障害が発生しているアプリケーション名: MSACCESS.EXE、バージョン: 15.0.4420.1017、タイム スタンプ: 0x50674523
障害が発生しているモジュール名: ACECORE.DLL、バージョン: 15.0.4420.1017、タイム スタンプ: 0x506742b7
例外コード: 0xc0000005
障害オフセット: 0x0000000000171f36
障害が発生しているプロセス ID: 0xb6c
障害が発生しているアプリケーションの開始時刻: 0x01cf5ad638668c5b
障害が発生しているアプリケーション パス: C:\Program Files\Microsoft Office\Office15\MSACCESS.EXE
障害が発生しているモジュール パス: C:\Program Files\Common Files\Microsoft Shared\OFFICE15\ACECORE.DLL
レポート ID: 00e87957-c6ca-11e3-ad2c-0050568d2ced
イベント XML:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2014-04-18T07:21:06.000000000Z" />
<EventRecordID>3442</EventRecordID>
<Channel>Application</Channel>
<Computer>WIN-29UTU2AIK6J</Computer>
<Security />
</System>
<EventData>
<Data>MSACCESS.EXE</Data>
<Data>15.0.4420.1017</Data>
<Data>50674523</Data>
<Data>ACECORE.DLL</Data>
<Data>15.0.4420.1017</Data>
<Data>506742b7</Data>
<Data>c0000005</Data>
<Data>0000000000171f36</Data>
<Data>b6c</Data>
<Data>01cf5ad638668c5b</Data>
<Data>C:\Program Files\Microsoft Office\Office15\MSACCESS.EXE</Data>
<Data>C:\Program Files\Common Files\Microsoft Shared\OFFICE15\ACECORE.DLL</Data>
<Data>00e87957-c6ca-11e3-ad2c-0050568d2ced</Data>
</EventData>
</Event>
4、When the access crashed,I got the dump file .Then I use the Windbg got some information from the dump files.
The detailes are follows.
FAULTING_IP:
+58872faf03d6dd84
00000000`00000000 ?? ???
EXCEPTION_RECORD: 00000000001723c0 -- (.exr 0x1723c0)
ExceptionAddress: 000007fee3951f36 (ACECORE+0x0000000000171f36)
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 0000000000000000
Parameter[1]: 0000000000000000
Attempt to read from address 0000000000000000
FAULTING_THREAD: 00000000000010b8
DEFAULT_BUCKET_ID: WRONG_SYMBOLS
PROCESS_NAME: MSACCESS.EXE
ADDITIONAL_DEBUG_TEXT:
Use '!findthebuild' command to search for the target build information.
If the build information is available, run '!findthebuild -s ; .reload' to set symbol path and load symbols.
MODULE_NAME: ACECORE
FAULTING_MODULE: 0000000076eb0000 ntdll
DEBUG_FLR_IMAGE_TIMESTAMP: 506742b7
ERROR_CODE: (NTSTATUS) 0x80000003 - {
EXCEPTION_CODE: (NTSTATUS) 0x80000003 (2147483651) - {
MOD_LIST: <ANALYSIS/>
CONTEXT: 0000000000171ed0 -- (.cxr 0x171ed0)
rax=0000000001be3598 rbx=0000000000000000 rcx=01cf5d1b0f402a5c
rdx=0000000009cfad30 rsi=0000000006688ef0 rdi=0000000001be35d0
rip=000007fee3951f36 rsp=0000000000172490 rbp=00000000001727a0
r8=0000000009b409d0 r9=0000000006688ef0 r10=0000000000000000
r11=0000000000000246 r12=0000000000000000 r13=0000000001be19f0
r14=0000000009cfad30 r15=0000000000000000
iopl=0 nv up ei pl nz na po nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010206
ACECORE+0x171f36:
000007fe`e3951f36 4d3927 cmp qword ptr [r15],r12 ds:00000000`00000000=????????????????
Resetting default scope
PRIMARY_PROBLEM_CLASS: WRONG_SYMBOLS
BUGCHECK_STR: APPLICATION_FAULT_WRONG_SYMBOLS
LAST_CONTROL_TRANSFER: from 000007fee395c095 to 000007fee3951f36
STACK_TEXT:
00000000`00172490 000007fe`e395c095 : ffffffff`ffffffff 00000000`00000000 00000000`01bddaa2 ffffffff`ffffffff : ACECORE+0x171f36
00000000`001727b0 000007fe`e388f8eb : 000007fe`e399dc10 000007fe`e399dc30 000007fe`e399dc50 00000000`000000f9 : ACECORE+0x17c095
00000000`00172b50 000007fe`e388f590 : 00000000`06688ef0 00000000`00000004 00000000`000000f9 00000000`00000000 : ACECORE+0xaf8eb
00000000`00172ba0 000007fe`e388f406 : 00000000`00000004 00000000`000000f9 00000000`11cb1130 00000000`000000f9 : ACECORE+0xaf590
00000000`00172c30 000007fe`e391aee7 : 00000000`00000000 00000000`00173198 00000000`06688ef0 00000000`11cb0998 : ACECORE+0xaf406
00000000`00172c70 000007fe`e3933a72 : 00000000`00400100 00000000`00000002 00000000`00000001 00000000`06688ef0 : ACECORE+0x13aee7
00000000`00172e50 000007fe`e384e5b1 : 00000000`00000000 00000000`11cb0020 00000000`06688ef0 00000000`00000001 : ACECORE+0x153a72
00000000`00172e90 000007fe`e38358d1 : 00000000`000007ff 00000000`06688ef0 00000000`01bd99f0 00000000`00000000 : ACECORE+0x6e5b1
00000000`00173280 000007fe`e38718eb : 00000000`000007ff 00000000`06688ef0 00000000`11cb0000 00000000`00000000 : ACECORE+0x558d1
00000000`00173340 00000001`3f3b0cd2 : 00000000`0a0945c0 00000000`000000fe 00000000`000007ff 00000000`00000000 : ACECORE+0x918eb
00000000`00173430 00000001`3f3b0b9b : 00000000`00173730 00000000`001741e0 00000000`065e5b00 00000000`00000100 : MSACCESS!CreateIExprSrvObj+0x16af32
00000000`00173630 00000001`3f3afcea : 00000000`00173730 00000000`00000000 00000000`00000000 00000000`065e5b00 : MSACCESS!CreateIExprSrvObj+0x16adfb
00000000`001736a0 00000001`3f983140 : 00000000`00174401 00000000`0a3235e0 00000000`0a319aa0 00000000`00179fc8 : MSACCESS!CreateIExprSrvObj+0x169f4a
00000000`00174290 00000001`3f3aabeb : 00000000`00000000 00000000`00000000 00000000`00179f38 00000000`00000000 : MSACCESS!FUniqueIndexTableFieldEx+0x26ab4
00000000`00174530 00000001`3f3a9670 : 00000000`001778e0 00000000`00179f38 00000000`00000031 00000000`00000000 : MSACCESS!CreateIExprSrvObj+0x164e4b
00000000`00177870 00000001`3f3a8c1b : 00000000`00000010 00000000`108c5990 003d0044`00570050 00000000`74ac3f69 : MSACCESS!CreateIExprSrvObj+0x1638d0
00000000`001779d0 00000001`3f5450df : 00000000`0a0945c0 00000000`0000009c 00000000`0a0945c0 00000000`00000000 : MSACCESS!CreateIExprSrvObj+0x162e7b
00000000`00179e30 00000001`3f64e915 : 00000000`43ed8000 00000000`00000000 00000000`3f800000 00000000`00000000 : MSACCESS!FillADT+0x5830b
00000000`0017c450 00000001`3f33b172 : 00000000`00000000 00000000`0006075e 00000000`0017e370 00000000`00000000 : MSACCESS!IdsComboFillOfActidIarg+0xaddf1
00000000`0017d730 00000001`3f33a9ef : 00000000`0017e0a0 00000000`00000b86 00000000`00000000 00000000`0fea0000 : MSACCESS!CreateIExprSrvObj+0xf53d2
00000000`0017d790 00000001`3f33a20c : 00000000`06620400 00000000`00000000 00000000`00000001 00000000`0017e420 : MSACCESS!CreateIExprSrvObj+0xf4c4f
00000000`0017e400 00000001`3f6019cd : 0071023b`007a000a 00000000`00374a30 00000000`00000005 00000000`0000000c : MSACCESS!CreateIExprSrvObj+0xf446c
00000000`0017e850 00000000`06706fd5 : e2504700`aa00ee81 00005d1b`0f2363ea 00000000`0017e9e0 00000001`3f200000 : MSACCESS!IdsComboFillOfActidIarg+0x60ea9
00000000`0017e8f0 00000000`0a30c378 : 00000000`00000000 00000000`00000008 00000000`067069ac 00000000`00000000 : 0x6706fd5
00000000`0017e960 00000000`00000000 : 00000000`00000008 00000000`067069ac 00000000`00000000 00000000`00000008 : 0xa30c378
FOLLOWUP_IP:
ACECORE+171f36
000007fe`e3951f36 4d3927 cmp qword ptr [r15],r12
SYMBOL_STACK_INDEX: 0
SYMBOL_NAME: ACECORE+171f36
FOLLOWUP_NAME: MachineOwner
IMAGE_NAME: ACECORE.DLL
STACK_COMMAND: .cxr 0x171ed0 ; kb
BUCKET_ID: WRONG_SYMBOLS
FAILURE_BUCKET_ID: WRONG_SYMBOLS_80000003_ACECORE.DLL!Unknown
WATSON_STAGEONE_URL: http://watson.microsoft.com/StageOne/MSACCESS_EXE/15_0_4420_1017/50674523/unknown/0_0_0_0/bbbbbbb4/80000003/00000000.htm?Retriage=1
Followup: MachineOwner
5、Where the access crashed I used the ODBC trace to get the trace log of the ODBC API.
The ODBC API called by Access before it crashed are the follows.
I also ansysised the log,and I did not find any Abnormal.
Test 1174-10f0
EXIT SQLGetData with return code 0 (SQL_SUCCESS)
HSTMT 0x0000000009F7C490
UWORD
6
SWORD
-8 <SQL_C_WCHAR>
PTR 0x00000000002C1F20 [
12] "LENGTH"
SQLLEN 62
SQLLEN * 0x00000000002C1E38 (12)
Test 1174-10f0
ENTER SQLGetData
HSTMT 0x0000000009F7C490
UWORD
10
SWORD
99 <SQL_C_DEFAULT>
PTR <unknown type>
SQLLEN 4
SQLLEN * 0x00000000002C1E38
Test 1174-10f0
EXIT SQLGetData with return code 0 (SQL_SUCCESS)
HSTMT 0x0000000009F7C490
UWORD
10
SWORD
99 <SQL_C_DEFAULT>
PTR <unknown type>
SQLLEN 4
SQLLEN * 0x00000000002C1E38 (-1)
Test 1174-10f0
ENTER SQLFetch
HSTMT 0x0000000009F7C490
Test 1174-10f0
EXIT SQLFetch with return code 100 (SQL_NO_DATA_FOUND)
HSTMT 0x0000000009F7C490
Test 1174-10f0
ENTER SQLFreeStmt
HSTMT 0x0000000009F7C490
UWORD
0 <SQL_CLOSE>
Test 1174-10f0
EXIT SQLFreeStmt with return code 0 (SQL_SUCCESS)
HSTMT 0x0000000009F7C490
UWORD
0 <SQL_CLOSE>
6、I also did the test with the Access 2010,and with the Sql Srever/Oracle.
The results are the follows.
1) With the Access 2010(X86 or X64) and Access 2013 X86,it successes when I export the table to the DB Symfoware.But only with the Access 2013 X64,the Access crashed.
2)With the Access 2010(X86 or X64) and Access 2013(X86 or X64),using the Sql Srever/Oracle,it always successes .
According to all the descrived above, I wonder if it a bug of the Access2013 .
Could anyone can help me ?
Thanks for any help.George Zhao
Thank you for your help.
I have already install
the latest patches of the Office 2013.But it doesn't work.It is down also too. And ODBC
drive of Database Symfoware is the newest driver of the Database Symfoware. Now I wonder that
if it si a bug of the ODBC
drive of Database Symfoware,I should fix the bug,but I have analysised the odbc trace log and I do not find any wrongs ,so I think maybe it is a bug of the Access .
I have see many situations about the Access down on the internet . -
Can I create a Stored Procedure That access data from tables of another servers?
I'm developing a procedure and within it I'm trying to access another server and make a select into a table that belongs to this another server. When I compile this procedure I have this error message: " PLS-00904: insufficient privilege to access object BC.CADPAP", where BC.CADPAP is the problematic table.
How can I use more than one connection into an Oracle Stored Procedure?
How I can access tables of a server from a Stored Procedure since the moment I'm already connected with another server?
Can I create a Stored Procedure That access data from tables of another servers?You need to have a Database Link between two servers. Then you could do execute that statement without any problem. Try to create a database link with the help of
CREATE DATABASE LINK command. Refer Document for further details
Maybe you are looking for
-
Since updating to Mavericks, i can no longer use my USB Ethernet Adopter
Since updating to Mavericks, i can no longer use my Ethernet USB adopter as the drivers are only supported to the previous version. I need to use this where i work as Mac's cant accsess the wireless. Ive been told the only option restore to the prev
-
How do i get kids games to be available on there user login
i got 2 games for my 3 year old -go diego and dora. when i log in under my sons name i cannot play the games. I can only play them under my log in. he has done a heck of a job messing up my screen and i would like him to only be able to play on his l
-
Can I create a report at WAAS central manager based on server IP address
Hi, I have two distinct applications running at port 8080 for which I would like to have separated performance reports at Central Manager. Is there any mean to do that by using server ip address for example? If so how? Do I need to change policy? If
-
3 flat files grouped into 1 flat file ID config
Hi XI Gurus, Just a follow up to my question before: I have this scenario: Source 3 flat files - merge through BPM - map to IDOC - send to ECC Now, I need to configure them in Integration Directory. I would need 3 Communication channels for the 3 dif
-
Hi everyone, I followed the guide on setting up user defaults but I'm having some trouble with it. Basically, I followed this guide. User Defaults - GRC 10.0 Now in that guide, it shows that a loop must be created as well as a ruleset, but it doesn't