I need to pass data from an Access database to Teststand by using the built in Data step types(open data
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 help
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.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
Similar Messages
-
Need to pass information from MS access database to another prog
Hi,
I really need some help here...
I need to pass selected information from my database to another information.
I am able to select and display the infotmation but i am not sure how i can transfer the information to the next program. Can any one please offer me some assistance?
My code is as follow:
/* Getting data from PSM32 and displaying it *can work* */
import java.net.URL;
import java.sql.*;
import java.lang.String;
/** Application to create a Ganttchart * */
public class PSMdb
public static void main (String argv[])
//SQLQueryFormat a = new SQLQueryFormat();
System.out.println("\nEstablishing Connection - Pls Wait... \n");
/** Get Info fr database**/
try
//Connect to the database specified in the URL
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager.getConnection("jdbc:odbc:PSM32");
System.out.println("Connection Established.\n");
//Create a SELECT statement object
Statement statmt = con.createStatement();
//Issue the SELECT statement
String querySt = "SELECT Set, Name, Order " +
"FROM PMETERS " +
"WHERE Set = 'BRAKE.BAK' ";
//Create and execute query
ResultSet res = statmt.executeQuery(querySt);
while (res.next())
String Proj = res.getString(1); //get Proj Name
String Task = res.getString(2); //get Task Name
//Print statement
System.out.println("" +Proj);
System.out.println("" +Task);
//Close Statement and Connection
statmt.close();
con.close();
System.out.println("\nConnection Closed - Operation Successful.");
catch(Exception E)
//Print out the Exception Error
System.out.println("Error:" +E );
}And yes there is another problem. I can compile and run the program in a C:\folder but when i open the document in a project workspace, i cant compile the above code. Can any one please offer me assistance?
Thanks a million.To NanookOITheNorth:
Could you provide some more relevent information
about what the other program is and how data should
be transferred to it? API? Socket? File?was wanted to use the "return task" thing. Issit possible to use that?
To annie79:
my next program is supposed to retrive the events in the "task" field and display it in a applet. After retriving the tasks i will be getting the dates to produce the gantt chart. uses the jfree lib functions.
the code for the applet is as follow
/* original gantt chart program that can work*/
import java.applet.*;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.util.Calendar;
import java.util.Date;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartPanel;
import org.jfree.chart.JFreeChart;
import org.jfree.data.category.IntervalCategoryDataset;
import org.jfree.data.gantt.Task;
import org.jfree.data.gantt.TaskSeries;
import org.jfree.data.gantt.TaskSeriesCollection;
import org.jfree.data.time.SimpleTimePeriod;
/** Application to create a Ganttchart * */
public class Ganttchart extends JApplet{
/** @param title , frame title **/
public void init() {
final IntervalCategoryDataset dataset = createDataset();
final JFreeChart chart = createChart(dataset);
// add the chart to a panel...
final ChartPanel chartPanel = new ChartPanel(chart);
// this size (500, 270) here doesn't matter cos this become the html control
// how big u wan can change in the html code the width="800" height="600"
chartPanel.setPreferredSize(new java.awt.Dimension(500, 270));
setContentPane(chartPanel);
* Creates a sample dataset for a Ganttchart.
* @return The dataset.
public static IntervalCategoryDataset createDataset() {
//"Task" information should be retrived from the database to replace this current 1
/*final TaskSeries s1 = new TaskSeries("Scheduled");
s1.add(new Task("Write Proposal",
new SimpleTimePeriod(date(1, Calendar.APRIL, 2001),
date(5, Calendar.APRIL, 2001))));
s1.add(new Task("Obtain Approval",
new SimpleTimePeriod(date(9, Calendar.APRIL, 2001),
date(9, Calendar.APRIL, 2001))));
s1.add(new Task("Requirements Analysis",
new SimpleTimePeriod(date(10, Calendar.APRIL, 2001),
date(5, Calendar.MAY, 2001))));
final TaskSeries s2 = new TaskSeries("Actual");
s2.add(new Task("Write Proposal",
new SimpleTimePeriod(date(1, Calendar.APRIL, 2001),
date(5, Calendar.APRIL, 2001))));
s2.add(new Task("Obtain Approval",
new SimpleTimePeriod(date(9, Calendar.APRIL, 2001),
date(9, Calendar.APRIL, 2001))));
s2.add(new Task("Requirements Analysis",
new SimpleTimePeriod(date(10, Calendar.APRIL, 2001),
date(15, Calendar.MAY, 2001))));*/
final TaskSeriesCollection collection = new TaskSeriesCollection();
collection.add(s1);
collection.add(s2);
return collection;
* Utility method for creating <code>Date</code> objects.
* @param day the date.
* @param month the month.
* @param year the year.
* @return a date.
private static Date date(final int day, final int month, final int year) {
final Calendar calendar = Calendar.getInstance();
calendar.set(year, month, day);
final Date result = calendar.getTime();
return result;
* Creates a chart.
* @param dataset the dataset.
* @return The chart.
private JFreeChart createChart(final IntervalCategoryDataset dataset) {
final JFreeChart chart = ChartFactory.createGanttChart(
"Ganttchart", // chart title
"Task", // domain axis label
"Date", // range axis label
dataset, // data
true, // include legend
true, // tooltips
false // urls
// chart.getCategoryPlot().getDomainAxis().setMaxCategoryLabelWidthRatio(10.0f);
return chart;
}As for the "run the program in a C:\folder but when i open the
document in a project workspace, i cant compile the
above code. Can any one please offer me assistance?"The run time error that i get is "java.lang.NoSuchMethodError: main
Exception in thread "main" "
Please give me some leads on how i can cont to proceed?
Thanks a lot -
Data type structure while picking data from MS Access database
Dear All,
I have to start on new interface in which data from MS Access database will be updated in the z-table in SAP. Is there any blog available which gives step by step process for MS Access-XI-RFC interface. Or please guide me on what should be the structure of the Data Type for picking the data from the MS Access database.
Regards,
NJHi Nishu,
Sender side the structure is as follows
db_sen_dt
..... emp_row
.......... f1
.......... f2
Structure is complex then check this blog
/people/alessandro.berta/blog/2005/10/04/save-time-with-generalized-jdbc-datatypes
JDBC to RFC Scenario, but it is synchronous
SYNCHRONOUS SOAP TO JDBC - END TO END WALKTHROUGH
Also check this link
Regards
Ramesh -
Oracle select data from ms access database
please dear sirs,
exactly what i need is when i make select statment from oracle sql, i can select data from ms access database
please help me
thanks in advance
Yasser
Edited by: user4490340 on 27-Oct-2010 01:09You will need to use ODBC. Pl post details of OS and database versions.
http://download.oracle.com/docs/cd/E11882_01/gateways.112/e12070/intro.htm
HTH
Srini -
Retrieve data from MS Access database.
Hi all,
The following is part of my coding. Once I have clicked the jButton1, the jTextField1 will get the input of user and store into a variable named "bbb". After that the variable will be passed to a function as a parameter to retrieve data from MS Access database using the ResultSet method. Next, the ResultSet will be splited into many part and just the student ic will be displayed.
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
String bbb = jTextField1.getText(); //get input from user and store into a variable named bbb
ResultSet codes = getCodes(bbb); //Retrieve data from database
Code c = getCode (codes); //split the retireved date to many part
jLabel2.setText(c.ic); //display the student ic only
private static ResultSet getCodes(String bbb)
Connection con = getConnection();
try
Statement s = con.createStatement();
String select = "SELECT [Student-File].* " + "FROM [Student-File] WHERE (([Student-File].[student-code])=bbb); " ;
ResultSet rows;
rows = s.executeQuery(select);
return rows;
catch (SQLException e)
System.out.println(e.getMessage());
return null;
private static Code getCode (ResultSet codes)
try
String name = codes.getString("student-name");
String scode = codes.getString("student-code");
String ic = codes.getString ("student-ic");
String add = codes.getString ("student-address");
String phone = codes.getString ("student-phone");
return new Code (name,scode,ic,add,phone);
catch (SQLException e)
System.out.println(e.getMessage());
return null;
private static class Code
public String name ;
public String scode ;
public String ic ;
public String add;
public String phone;
public Code (String name, String scode, String ic,String add,String phone)
this.name = name;
this.scode = scode;
this.ic = ic;
this.add = add;
this.phone = phone;
}But after I have compiled the coding above, the following error existed.
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
at testing3.getCode(testing3.java:137)
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
at testing3.jButton1ActionPerformed(testing3.java:71)
at testing3.access$000(testing3.java:17)
at testing3$1.actionPerformed(testing3.java:45)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at testing3.getCode(testing3.java:137)
at testing3.jButton1ActionPerformed(testing3.java:71)
at testing3.access$000(testing3.java:17)
at testing3$1.actionPerformed(testing3.java:45)
My questions here are:
1) Will my idea above work?
2) Is it correct of my query statement that send to MS Access database?
Can anyone help me?
Thanks in advance,
ning.you may try this:
String select = "SELECT * FROM your_table_name WHERE your_column_name = '" + bbb + "'";or another approach using PreparedStatement:
String select = "SELECT * FROM your_table_name WHERE your_column_name = ?";
PreparedStatement ps = con.prepareStatement(select);
ps.setString(1, "bbb");
ResultSet rs = ps.executeQuery();hth. -
Anyone knows about using java to get data from MS Access database.
hi there
anyone knows about using java to get data from MS Access database? thank youthere is a list of jdbc drivers at:
http://industry.java.sun.com/products/jdbc/drivers
they have several ms access drivers listed.
also, you can use a jdbc-odbc bridge which allows you to use jdbc to connect to any odbc data source:
http://java.sun.com/j2se/1.3/docs/guide/jdbc/getstart/bridge.doc.html -
HT201250 how can i pass information from one mac to another mac by using the time capsule
how can i pass information from one mac to another mac by using the time capsule
If you want to transfer files, settings, etc., you must open Migration Assistant (Applications > Utilities) in the Mac that you want to transfer the files and follow the instructions
-
I followed the instructions but it seems impossible to get data from PC to iTunes.
What could be the problem?What data?
Any error messages?
Exactly what instructions? -
Attempting to Save data from an access database file into a local variable for use.
Hello! i'm trying to develop a small text based game in Visual Basic 2013 and I've recently decided i need to use a more sophisticated data storage system then dozens of .txt files and stream-readers. i'm using Microsoft access and i completed my database
last night. it stores the stat and skill values of the player-character and the non-player characters. the problem is i cannot bring the data into visual basic in a usable way. using ado.net i can bring a single record into the system as a detail view and
then read the data in from the labels but i'd far prefer to have it done purely through code. the book i purchased only covers data grid views and detail view and I've spent several hours searching for a solution online.
for clarification. i need to read each value in a record into a variable so i can calculate the stats for the games combat system.So, you want to select from MS Access?
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim connectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\Ryan\Desktop\Coding\Microsoft Access\Northwind_2012.mdb"
Dim selectCommand As String
Dim connection As New OleDbConnection(connectionString)
selectCommand = "Select * From MyExcelTable ORDER BY ID"
Me.dataAdapter = New OleDbDataAdapter(selectCommand, connection)
With DataGridView1
.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells
.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.ColumnHeader
.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.ColumnHeader
End With
Dim commandBuilder As New OleDbCommandBuilder(Me.dataAdapter)
Dim table As New DataTable()
table.Locale = System.Globalization.CultureInfo.InvariantCulture
Me.dataAdapter.Fill(table)
Me.bindingSource1.DataSource = table
Dim data As New DataSet()
data.Locale = System.Globalization.CultureInfo.InvariantCulture
DataGridView1.DataSource = Me.bindingSource1
Me.DataGridView1.AlternatingRowsDefaultCellStyle.BackColor = Color.Aqua
Me.DataGridView1.AutoResizeColumns( _
DataGridViewAutoSizeColumnsMode.AllCells)
End Sub
Then from DataGridView to a text file, right.
Private Sub button1_Click(ByVal sender As Object, ByVal e As EventArgs)
Dim dt As DataTable = New DataTable
Dim DBAdapter As OleDbDataAdapter = New OleDbDataAdapter
Dim connection As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Users\\Excel\\Desktop\\Coding\\Microsoft Access\\Nor"& _
"thwind.mdb;Jet OLEDB:System Database=system.mdw")
Dim query As String = "SELECT * FROM Orders;"
connection.Open
Dim command As OleDbCommand = New OleDbCommand(query, connection)
Dim adapter As OleDbDataAdapter = New OleDbDataAdapter(command)
adapter.Fill(dt)
Dim writer As StreamWriter = New StreamWriter("C:\\Users\\Excel\\Desktop\\FromAccess.txt")
For Each Row As DataRow In dt.Rows
For Each values As Object In Row.ItemArray
writer.Write(values)
Next
Next
writer.Close
End Sub
Knowledge is the only thing that I can give you, and still retain, and we are both better off for it. -
Reading data from a text file but can't use the data outside of the function.
I am trying to load a variable from data in a text file.
I can read the text file fine but the variable data seems
only to be available with in the function that reads it.
I need to use the variable data outside of the function.
Does anyone have any suggestions to work around this issue?
This is the actionscript code i'm using.
var pathVars= new LoadVars();
pathVars.onLoad=function(ok) {
if(ok)
trace("Loading");
path_var=pathVars.path;
trace("This is within the function "+path_var);
pathVar0="This is within the function... "+path_var;
Yet the path_var is available here fine.
pathVars.load("mypath.txt");
This is where the path_var becomes undefined
trace("This is outside the function... "+path_var);
pathVar1="This is outside the function... "+path_var;
This
is a download link for the FLA zip file
This
is a demo of the script loading the text fileThe external traces are being executed before the file is
loaded. -
my ipad says "connexion a l'Itunes Store impossible" when I click the App Store button. So, I cannot have access to the Apps. I have internet connection and I can use my emails and the safari. Please advise.
Try this:
1. Settings>General>Date & Time>Turn off set automatically
2. Set date one year ahead
3. Go back to iTunes and try again.
4. You will get the same error.
5. Go back to settings general date and time and turn back on 'set automatically'
Try connecting to iTune Store again. -
Upload data from microsoft access to oracle form(in data block)
Hi all,
Any one can help me, how we can upload data from access file to developer form(in data block).
as
we upload data from text file to developer form(in data block) using some packages.
Thank's in advanceHi Zuhair,
If you give details of the problems you are still having then we should be able to get SQL*Developer to work.
However, if you don't want to use SQL*Developer then the following options are taken from note 393760.1 available in Metalink if you have access to that -
1. Use a gateway that supports the non-Oracle database or generic connectivity if a third party ODBC driver is available to do a -
'create Oracle_table as select from non_oracle_table@database_link'
for each table. You would then have to manually create all the other objects (views, indexes, stored procedurs etc) and permissions etc that existed in the non-Oracle database.
2. Use the SQL*Plus COPY command to copy data from the non-Oracle database to the
Oracle database using a gateway or generic connectivity. The syntax is as follows:
COPY FROM username/password@oracle_sid -
INSERT destination_oracle_table -
USING query;
The following example selects all rows from the EMP table in the non-Oracle database and
inserts them into the local Oracle EMP table:
COPY FROM SCOTT/TIGER@ora10 -
INSERT EMP -
USING SELECT * FROM SCOTT.EMP@gateway;
where "gateway" is the database link created for the gateway.
3. Load the non-Oracle data into flat files and use SQL*Loader to put the data into Oracle tables. Again manual
work is required for the other objects.
4. Contact the Oracle Product Technology Services (PTS) group for assistance. See the webpage -
http://www.oracle.com/technology/tech/migration//workbench/index_sqldev_omwb.html
5. Use a third party migration tool. See -
http://www.oracle.com/technology/tech/migration/isv/third_party.html
6. Use JDBC to connect to the non-Oracle database and Java in the Oracle database. This method will work but it is not suppported by the JDBC team.
=========
The amount of work involved will depend on the number and size of Access tables that you want to migrate.
Regards,
Mike -
HOw to connect and extract the data from MS ACCESS SOURCE(Database) system
Hi experts ,
I have to extract the data from MS access database system using JDBC adapter will it work if Yes HOW?Hi Sushma,
how to configure sendor JDBC adapter ..
Select adapter type is JDBC..
Give the Transport Protocol:.JDBC 2.0 (Example)............
Message Protocol:...JDBC...........
IAdapter Engine : Integration Server
Processing Parameters..
Quality of service.....(Example)..Exactly once
Poll Interval .... Example ..10
Query Sql statement..Example ..select * from XXXXX
Document Name.....
Update Sql stetement.....
Thanks,
Satya
Reward points if it id useful... -
Error while loading the data from excel to database.
Hi,
I am using PL/SQL developer to load the data from excel to database. I will set the data source in the control panel and will proceed through ODBC importer in pl/sql developer to import the data.
What exactly the error is when i click the filename to view the result preview it shows an error as:
The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data.
Kindly help with solution.
Thanks/Regards
Sakthivarman J.Hello;
That error message comes from Microsoft, so something in you Excel sheet is the cause.
Its a pain but I would check properties of each column in case Excel decided to add something, a comma for example.
Do you have a column over 255 characters? Look there first. If any length is greater than 255 it will crash and burn.
Or convert it to a CSV and create an external table.
Best Regards
mseberg
Might also throw an 3163 as an error where you cannot see it.
Edited by: mseberg on Sep 9, 2011 7:34 AM -
APEX Application accessing data from two different databases
Hi All,
Currently as we all know that APEX Application resides in database and is connected to the schema of that database.
I want APEX Application to be running and accessing data from two different databases. Elaborating my question,
Currently, my APEX Production Application is connected with XXXX Schema of DB1 Database(Where APEX Resides). Now I want to add some pages into this APEX Application for REPORT Purpose, But I want to connect this REPORT APEX Pages to get data from Different Schema YYYY for Database DB2.
Is it possible to configure this scenario?
The reason for doing this is to avoid the REPORT related (adhoc queries) resource utilization effect on Production DB1 Database.
Thanks
Nil1. If you do the joining of two or more tables in DB1 then all data is pulled over to DB1 and then the join is executed: so more data over the databaselink and more work for DB1. Better keep the joining stuff where the data resides and just pull exactly that data over that you need.
2. Don't know about your different block sizes. Seems a nice question for one of the other forums (DBA or SQL).
3. I mean create synonyms on DB1 for reports VIEWS in DB2.
Hope all is clear!
Maybe you are looking for
-
Itunes(10.6.1.7) keep crashing
iTunes keep crashing since i have upgraded to the latest version. I have not installed any plug-ins and it works like a snail. I have to close iTunes and reopen it several times to use it. It keeps hanging on a regular basis and i don't know what ot
-
Moved library to new laptop, but it didn't take all playlists and apps
I got a new laptop recently and have been trying to phase out my old desktop. I followed the instructions for moving/importing your library. Things were made a bit simpler (I think) because my library was held on an external HD that I now have connec
-
How to import images of websites into FCP....any ideas?
Hi, I was asked to cut several trailers for an award show. Which is nice. However, they have this category about "best website", and of course, they want to use images of those websites, the banners, the headlines and so on. I don't mean single image
-
How to add "ATTACHMENTS" assignment block in standard component ERP_H
Dear All, I have a requirement where i have to add the "Attachments" assignment block to standard component "ERP_H". I have taken following steps so far and i am able to display the view in the component ERP_H, however no funtionality has been define
-
No sound on my nokia lumia 1020
i'm having problems with my nokia. i am not getting any sound coming from it either from notifications like if someone is calling/texting me nor trying to play music or hear cortana etc. Just no sounds whatsoever. Is there anything I can do to rec