Example to access MS Excel by SQL tollkit

I need example or document of accessing MS excel 2000
by SQL toolkit for LabVIEW.
My OS is win 98.
T.U

Hi Rony,
Try these ...
How Can I Use the SQL Toolkit in LabVIEW to Retrieve Data from a Microsoft Excel Spreadsheet?
http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/862567530005f09c862566ac0076c303?OpenDocument
SQL Example for Jet Databases (Excel and Access)
http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/005e3041f004ec5a86256568000a837b?OpenDocument
SQL Demo zip.
http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/005e3041f004ec5a86256568000a837b/$FILE/SQLDemo.zip
As far as I remember you can find some details in SQL Toolkit manual for G (if you don't have it, it's available for download from NI site).
Good Luck ... and Happy Holidays!

Similar Messages

  • I am trying to have access tables of the Sql Server through the Oracle

    I am trying to have access tables of the Sql Server through the Oracle and this being occurred the error:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message: [Generic Connectivity using ODBC][H006] The init parameter <HS_FDS_CONNECT_INFO> is not set.
    Please set it in init <orasid>.ora file.
    ORA-02063: preceding 2 lines from HSMSQL
    I created the ODBC with name HSMSQL.
    I made all the configurations in the archives
    tnsnames.ora:
    HSMSQL=
    (DESCRIPTION=
    (ADDRESS= (PROTOCOL = tcp)(HOST = wsus)(PORT = 1521))
    (CONNECT_DATA =
    (SID = HSMSQL)
    (HS = OK)
    listener.ora:
    (SID_DESC = (SID_NAME=HSMSQL)
    (ORACLE_HOME= C:\oracle\ora92)
    (PROGRAM =hsodbc)
    initHS_SID.ora:
    HS_FDS_CONNECT_INFO = HSMSQL
    HS_FDS_TRACE_LEVEL = OFF
    -- Create database link
    create database link HSMSQL.US.ORACLE.COM
    connect to TESTE identified by TESTE2
    using 'HSMSQL';
    But when I execute query the error occurs:
    Select * from TabTeste@HSMSQL
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message: [Generic Connectivity using ODBC][H006] The init parameter <HS_FDS_CONNECT_INFO> is not set.
    Please set it in init <orasid>.ora file.
    ORA-02063: preceding 2 lines from HSMSQL
    Please they help me, thanks, Paulo.

    Hi,
    It seems that your configuration is Ok. By the way, the workaround for this error is:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Transparent gateway for ODBC][H001] The environment variable <HS_FDS_CONNECT_INFO> is not set.
    * Set HS_FDS_CONNECT_INFO in the hs{sid}init.ora file to the data source name.
    Example: HS_FDS_CONNECT_INFO = <ODBC DataSource Name>
    * Make sure the hs{sid}init.ora file exists in the ORACLE_HOME/hs/admin directory and has the same name as the SID in the LISTENER.ORA.
    Example: If SID=hsodbc in the listener.ora file, then the hs{sid}init.ora file would be named ORACLE_HOME/hs/admin/inithsodbc.ora
    For more information see if this [url http://forums.oracle.com/forums/thread.jspa?forumID=61&threadID=576975]thread can help you.
    Cheers

  • Equivalent of MS Access First Function in SQL for Group By

    We previously had an Access database performing operations. We are now converting it over to SQL. There are queries in Access that use the "First" function to insert data, which I have not been able to find the equivalent to in SQL. Below is an
    example showing the data used, the SQL syntax and the results that it would produce.
    tbl_Data
    FirstN LastN CustNum TDate SalesPer
    Jim Smith 11111 5/10/2014 Jim Johnson
    Sally Jones 22222 5/12/2014 Alan Brown
    Sally Jones 22222 5/10/2014 Ben Doers
    Jim Smith 11111 5/12/2014 Jim Johnson
    Frank Oliver 33333 5/15/2014 Jim Johnson
    Results to be inserted into tbl_Main
    FName LName CustID TransDate SalesPerson
    Jim Smith 11111 5/10/2014 Jim Johnson
    Sally Jones 22222 5/10/2014 Ben Doers
    Frank Oliver 33333 5/15/2014 Jim Johnson
    Below is the SQL that will produce this
    INSERT INTO tbl_Main ( FName, LName, CustID, TransDate, SalesPerson)
    SELECT td.FirstN, td.LastN, td.CustNum, First(td.TDate) As SellDate, First(td.SalesPer) As SP
    FROM tbl_Data td
    GROUP BY td.FirstN, td.LastN, td.Cust;
    If anyone could assist me in an alternative that I could use in SQL to yield the same results, I'd appreciate it.

    tbl_Data
    FirstN LastN CustNum TDate SalesPer
    Jim Smith 11111 5/10/2014 Jim Johnson
    Sally Jones 22222 5/12/2014 Alan Brown
    Sally Jones 22222 5/10/2014 Ben Doers
    Jim Smith 11111 5/12/2014 Jim Johnson
    Frank Oliver 33333 5/15/2014 Jim Johnson
    Results to be inserted into tbl_Main
    FName LName CustID TransDate SalesPerson
    Jim Smith 11111 5/10/2014 Jim Johnson
    Sally Jones 22222 5/10/2014 Ben Doers
    Frank Oliver 33333 5/15/2014 Jim Johnson
    Below is the SQL that will produce this
    INSERT INTO tbl_Main ( FName, LName, CustID, TransDate, SalesPerson)
    SELECT td.FirstN, td.LastN, td.CustNum, First(td.TDate) As SellDate, First(td.SalesPer) As SP
    FROM tbl_Data td
    GROUP BY td.FirstN, td.LastN, td.Cust;
    As an aside that query is not correct in Access -  because you did not specify an ORDER BY the resultset has no particular order so you could get either row for Jim or Sally.
    It's a bit of a tricky one as it may on the surface appear that the resultset is always returned in a consistent order but this is not guaranteed (not in Access and certainly not in SQL server)

  • Import MS Access 2013 tables into SQL Server 2012

    Hi there,
    Is there a step by step example somewhere showing how to import an MS Access 2013 table into SQL Server 2012?
    I have read the existing posts and don't see a definitive answer.
    I have installed MS Access 2010 engine, first 32 bit then 64 bit.
    I have installed the MS Access 2013 runtime on my server.
    I use the Office 2015 Access Database Engine OLE DB Provider.
    I get the error:
    Error 0xc0202009: Source - APEntries [1]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E37.
    Error 0xc02020e8: Source - APEntries [1]: Opening a rowset for "`TableName`" failed. Check that the object exists in the database.
    The post regarding the above errors doesn't resolve the issue.
    I have full administrative permissions on the server.
    What is the trick to making this work?
    Thanks,
    Ric
    Ric Miller

    Hi there,
    I tried the exact same operation on a third machine.
    This machine has Windows 8.1 64 bit, SQL Server 2012 64 bit, MS Office 2013 Plus 32 bit.
    I am the administrator on this machine.
    I installed this:
    Microsoft Access Database Engine 2010 Redistributable 32 bit (because I have MS Office 2013 plus 32 bit installed.)
    From here:
    http://www.microsoft.com/en-us/download/details.aspx?id=13255
    It won't let me install the 64 bit version without uninstalling MS Office 32 bit.
    I created an MS Access database on this machine using MS Access 2013 and created a table with 3 records.
    I used the "Import and Export Data (32 bit)" from the start menu.
    After I installed the "Database Engine 2010 32 bit" driver above, I now have the option of "Office 2015 Access Database Engine OLE DB Provider" as Data Source which I did not have prior to doing this installation.
    I selected the driver and added the Properties of the Data Source Name file location of the MS Access file. I am using a blank password.
    I go thru the same sequence of selecting a table to import and after running the result is the same:
    Error 0xc0202009: Source - APEntries [1]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E37.
    "Error 0xc02020e8: Source - APEntries [1]: Opening a rowset for "`TableName`" failed. Check that the object exists in the database."
    This seems to be consistent across three machines with three operating systems with the same files and the same result.
    I understand that some people have gotten this to work.
    I would appreciate it if anyone can report an error in the above procedure to me.
    Thanks,
    Ric
    Ric Miller

  • Import Access and Excel datafile into Oracle

    Dear SQL Expert:
    Could you hint me how to import Access and Excel datafiles into a newly install oracle database. An outline doc on procedure would be helpful.
    Thanks, user607670.

    either thru one of the following methods:
    <ol>
    <li> SQL*Loader </li>
    <li> UTL_FILE </li>
    <li> PL/SQL Developer tool using the text import utility </li>
    </ol>

  • ORA-28500 when accessing an Excel file

    Hello,
    I'm getting the dreaded ORA-28500 "Optional feature not implemented" when trying to access an Excel file through HS ODBC. This is a known bug in 11.1.0.6 (6701400), however my flavor is 11.1.0.7 fully patched. Since I'm trying to use the OLAP option on Windows XP 32, I installed version 11.1.0.6 and applied patches 6890831 and 7682184, as advised on [this page|http://www.oracle.com/technology/products/bi/olap/collateral/olap_certification.html], with no error as far as I can tell. This should have fixed the problem with dg4odbc according to the bug page, however when now I try to access an Excel sheet I get the exact same message :
    SQL> select * from "International$"@refdata;
    select * from "International$"@refdata
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Microsoft][ODBC Excel Driver]Optional feature not implemented
    ORA-02063: preceding 2 lines from REFDATAIs it possible that the patch did not go as intended ? Or that the second patch did reintroduce the old behavior ? I'm really lost at what to do now.
    Thanks for your help,
    Chris

    Hi gronau,
    thanks for the prompt answer. In fact I have only one Oracle Home on this machine so this should not be the problem. Below is a log of the call that gives the error message, can you spot the error from that ?
    Thanks a lot for your help,
    Chris
    Oracle Corporation --- TUESDAY   MAR 31 2009 17:28:17.858
    Heterogeneous Agent Release
    11.1.0.7.0
    Oracle Corporation --- TUESDAY   MAR 31 2009 17:28:17.858
        Version 11.1.0.7.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "255"
    Entered hgosdip
    setting HS_OPEN_CURSORS to default of 50
    setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
    setting HS_FDS_RECOVERY_PWD to default value
    setting HS_FDS_TRANSACTION_LOG to default of "HS_TRANSACTION_LOG"
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "UCS2"
    setting HS_FDS_TIMESTAMP_AS_DATE to default of "TRUE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "TRUE"
    setting HS_FDS_SUPPORT_STATISTICS to default of "TRUE"
    Parameter HS_FDS_QUOTE_IDENTIFIER is not set
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics"
    Exiting hgosdip, rc=0
    ORACLE_SID is "refdata"
    Product-Info:
      Port Rls/Upd:7/0 PrdStat:0
      Agent:Oracle Database Gateway for ODBC
      Facility:hsa
      Class:ODBC, ClassVsn:11.1.0.7.0_0006, Instance:refdata
    Exiting hgogprd, rc=0
    hostmstr: 2068393984:      HOA After hoagprd
    hostmstr: 2068393984:      HOA Before hoainit
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=178
    HOCXU_DRV_NCHAR=1000
    HOCXU_DB_CSET=873
    HOCXU_SEM_VER=110000
    Entered hgolofn at 2009/03/31-17:28:19
    Exiting hgolofn, rc=0 at 2009/03/31-17:28:19
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    Exiting hgoinit, rc=0 at 2009/03/31-17:28:19
    hostmstr: 2068393984:      HOA After hoainit
    hostmstr: 2068393984:      HOA Before hoalgon
    Entered hgolgon at 2009/03/31-17:28:19
    reco:0, name:DWO, tflag:0
    Entered hgosuec at 2009/03/31-17:28:19
    Exiting hgosuec, rc=0 at 2009/03/31-17:28:19
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned ""HS_TRANSACTION_LOG""
    HOSGIP for "HS_FDS_TIMESTAMP_AS_DATE" returned "TRUE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULT_SET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using DWO as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2009/03/31-17:28:20
    HS_FDS_CONNECT_INFO = "refdata"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2009/03/31-17:28:20
    dsn:refdata, name:DWO
    optn:
    ##>Connect Parameters (len=27)<##
    ## DSN=refdata;
    #! UID=DWO;
    #! PWD=*
    Exiting hgogenconstr, rc=0 at 2009/03/31-17:28:20
    DriverName:odbcjt32.dll, DriverVer:04.00.6304
    DBMS Name:EXCEL, DBMS Version:08.00.0000
    Exiting hgocont, rc=0 at 2009/03/31-17:28:21
    SQLGetInfo returns Y for SQL_CATALOG_NAME
    SQLGetInfo returns 260 for SQL_MAX_CATALOG_NAME_LEN
    Exiting hgolgon, rc=0 at 2009/03/31-17:28:21
    hostmstr: 1969635328:      HOA After hoalgon
    hostmstr: 1969635328: RPC Before Upload Caps
    hostmstr: 1969635328:      HOA Before hoaulcp
    Entered hgoulcp at 2009/03/31-17:28:21
    Entered hgowlst at 2009/03/31-17:28:21
    Exiting hgowlst, rc=0 at 2009/03/31-17:28:21
    SQLGetInfo returns ` for SQL_IDENTIFIER_QUOTE_CHAR
    SQLGetInfo returns Y for SQL_COLUMN_ALIAS
    5 instance capabilities will be uploaded
      capno:1991, context:0x0001ffff, add-info:        0
      capno:1992, context:0x0001ffff, add-info:        1, translation:"`"
      capno:3007, context:0x00000000, add-info:       -3, translation:"36"
      capno:3027, context:0x00000000, add-info:       -1, translation:"0"
      capno:3036, context:0x00000000, add-info:       -4, translation:"7"
    Exiting hgoulcp, rc=0 at 2009/03/31-17:28:23
    hostmstr: 1969635328:      HOA After hoaulcp
    hostmstr: 1969635328: RPC After Upload Caps
    hostmstr: 1969635328: RPC Before Upload DDTR
    hostmstr: 1969635328:      HOA Before hoauldt
    Entered hgouldt at 2009/03/31-17:28:24
    0 instance DD translations were uploaded
    Exiting hgouldt, rc=0 at 2009/03/31-17:28:24
    hostmstr: 1969635328:      HOA After hoauldt
    hostmstr: 1969635328: RPC After Upload DDTR
    hostmstr: 1969635328: RPC Before Begin Trans
    hostmstr: 1969635328:      HOA Before hoabegn
    Entered hgobegn at 2009/03/31-17:28:24
    tflag:0 , initial:1
    hoi:0x12f074, ttid (len 28) is ...
      00: 4C4F4341 4C2E4E53 4E2E6465 36313030  [LOCAL.NSN.de6100]
      10: 65322E35 2E31302E 31353434           [e2.5.10.1544]
                     tbid (len 25) is ...
      00: 4C4F4341 4C2E4E53 4E5B352E 31302E31  [LOCAL.NSN[5.10.1]
      10: 3534345D 5B312E34 5D                 [544][1.4]]
    TXN Capable:0, Isolation Option:0x0
    Exiting hgobegn, rc=0 at 2009/03/31-17:28:24
    hostmstr: 1969635328:      HOA After hoabegn
    hostmstr: 1969635328: RPC After Begin Trans
    hostmstr: 1969635328: RPC Before Describe Table
    hostmstr: 1969635328:      HOA Before hoadtab
    Entered hgodtab at 2009/03/31-17:28:25
    count:1
      table: International$
    Entered hgopdsc at 2009/03/31-17:28:25
    Describing procedure DWO.International$
    Output hoada
    hgopdsc, line 1298: NO hoada to print
    Exiting hgopdsc, rc=942 at 2009/03/31-17:28:25
    The hoada for table International$ follows...
    hgodtab, line 651: NO hoada to print
    Exiting hgodtab, rc=0 at 2009/03/31-17:28:25
    hostmstr: 1969635328:      HOA After hoadtab
    hostmstr: 1969635328: RPC After Describe Table
    hostmstr: 1969635328: RPC Before SQL Bundling
    hostmstr: 1969635328:      HOA Before hoxpars
    Entered hgopars, cursor id 1 at 2009/03/31-17:28:26
    type:0
    SQL text from hgopars, id=1, len=30 ...
         00: 53454C45 4354202A 2046524F 4D206049  [SELECT * FROM `I]
         10: 6E746572 6E617469 6F6E616C 2460      [nternational$`]
    Exiting hgopars, rc=0 at 2009/03/31-17:28:26
    hostmstr: 1968062464:      HOA After hoxpars
    hostmstr: 1968062464: RPC After SQL Bundling
    hostmstr: 1968062464: RPC Before SQL Bundling
    hostmstr: 1968062464:      HOA Before hoxopen
    Entered hgoopen, cursor id 1 at 2009/03/31-17:28:26
    hgoopen, line 83: NO hoada to print
    Exiting hgoopen, rc=0 at 2009/03/31-17:28:26
    hostmstr: 1966489600:      HOA After hoxopen
    hostmstr: 1966489600:      HOA Before hoxdscr
    Entered hgodscr, cursor id 1 at 2009/03/31-17:28:26
    Entered hgopcda at 2009/03/31-17:28:26
    Column:1(Intl Code): dtype:12 (VARCHAR), prc/scl:255/0, nullbl:1, octet:510, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2009/03/31-17:28:26
    Entered hgopcda at 2009/03/31-17:28:26
    Column:2(Country Full Name): dtype:12 (VARCHAR), prc/scl:255/0, nullbl:1, octet:510, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2009/03/31-17:28:26
    Entered hgopcda at 2009/03/31-17:28:27
    Column:3(Country Short Name): dtype:12 (VARCHAR), prc/scl:255/0, nullbl:1, octet:510, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2009/03/31-17:28:27
    Entered hgopcda at 2009/03/31-17:28:27
    Column:4(ISO Code): dtype:12 (VARCHAR), prc/scl:255/0, nullbl:1, octet:510, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2009/03/31-17:28:27
    Entered hgopcda at 2009/03/31-17:28:27
    Column:5(Type): dtype:12 (VARCHAR), prc/scl:255/0, nullbl:1, octet:510, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2009/03/31-17:28:27
    hgodscr, line 506: Printing hoada @ 01E01CA0
    MAX:5, ACTUAL:5, BRC:100, WHT=5 (SELECT_LIST)
    DTY         NULL-OK  LEN  MAXBUFLEN   PR/SC  CST IND MOD NAME
    12 VARCHAR Y        510        510   0/  0    0   0   0 Intl Code
    12 VARCHAR Y        510        510   0/  0    0   0   0 Country Full Name
    12 VARCHAR Y        510        510   0/  0    0   0   0 Country Short Name
    12 VARCHAR Y        510        510   0/  0    0   0   0 ISO Code
    12 VARCHAR Y        510        510   0/  0    0   0   0 Type
    Exiting hgodscr, rc=0 at 2009/03/31-17:28:27
    hostmstr: 1966489600:      HOA After hoxdscr
    hostmstr: 1966489600: RPC After SQL Bundling
    hostmstr: 1966489600: RPC Before Get Statistics
    hostmstr: 1966489600:      HOA Before hoxtcis
    Entered hgotcis at 2009/03/31-17:28:27
    Calling SQLStatistics for International$
    Entered hgopoer at 2009/03/31-17:28:28
    hgopoer, line 159: got native error 106 and sqlstate HYC00; message follows...
    [Microsoft][ODBC Excel Driver]Optional feature not implemented
    Exiting hgopoer, rc=0 at 2009/03/31-17:28:28
    hgotcis, line 367: calling SQLStatistics got sqlstate HYC00
    Exiting hgotcis, rc=28500 at 2009/03/31-17:28:28 with error ptr FILE:hgotcis.c LINE:367 ID:SQLStatistics
    hostmstr: 1966489600:      HOA After hoxtcis
    hostmstr: 1966489600: RPC After Get Statistics

  • Can i use pandrive with iPad, i want to access word, excel, pdf files on iPad via pandrive

    Can i use pandrive with iPad, i want to access word, excel, pdf files on iPad via pandrive

    You cannot use pendriver.
    Have a look at the following:
    http://itunes.apple.com/sg/app/quickoffice-pro-hd-edit-office/id376212724?mt=8&l s=1
    http://itunes.apple.com/sg/app/office2-hd/id364361728?mt=8&ls=1
    http://itunes.apple.com/sg/app/documents-to-go-premium-office/id317107309?mt=8&l s=1
    http://itunes.apple.com/sg/app/polaris-office/id513188658?mt=8&ls=1

  • After hours of back-up, downloading and uploading...I am now updated with all the latest Mac software. However, I no longer have access to Excel and Word. Is there a way I can access my documents in either of those? Help, please.

    After hours of back-up, downloading and uploading...I am now updated with all the latest Mac software. However, I no longer have access to Excel and Word. Is there a way I can access my documents in either of those? Help, please.

    If you have older versions of excel and word that previously ran under the Rosetta emulator (allows PowerPC code to run on Intel system), they will no longer work with Lion.
    You can use the Apple programs Pages and Numbers to access the files. They can be bought and downloaded from the App store. NeoOffice is available at http://www.neooffice.org/neojava/en/index.php which has Lion support. OpenOffice doesn't talk to Lion support, it's at http://www.openoffice.org/

  • To export query from Access to Excel in Read/Write mode in VBA

    Below is the code which exports the query named 'LatestSNR' from Access to Excel;
    Public Sub Expdata()
    Dim rst As DAO.Recordset
    Dim Apxl As Object
    Dim xlWBk, xlWSh As Object
    Dim PathEx As String
    Dim fld As DAO.Field
    PathEx = Forms("Export").Text14 'path comes from the directory given in form
    Set Apxl = CreateObject("Excel.Application")
    Set rst = CurrentDb.OpenRecordset("LatestSNR")
    Set xlWBk = Apxl.Workbooks.Open(PathEx)
    'xlWBk.ChangeFileAccess xlReadWrite
    Set xlWBk = Workbook("PathEx")
    Apxl.Visible = True
    Set xlWSh = xlWBk.Worksheets("Metadatasheet")
    xlWSh.Activate
    xlWSh.Range("A2").Select
    For Each fld In rst.Fields
    Apxl.ActiveCell = fld.Name
    Apxl.ActiveCell.Offset(0, 1).Select
    Next
    rst.MoveFirst
    xlWSh.Range("A2").CopyFromRecordset rst
    xlWSh.Range("1:1").Select
    ' selects all of the cells
    Apxl.ActiveSheet.Cells.Select
    ' selects the first cell to unselect all cells
    xlWSh.Range("A2").Select
    rst.Close
    Set rst = Nothing
    ' Quit excel
    Apxl.Quit
    End Sub
    After the execution of code, the query is transferred to excel sheet and is viewed in 'Read only' mode. If I try to save it, a copy of the excel file is produced. Can the Excel be opened in Read/Write mode ? so as to save the workbook and also to transfer
    the query to same workbook repeatedly.
    If in case the change of mode is not possible, then is there any alternative  method?

    Try this version:
    Public Sub Expdata()
    Dim rst As DAO.Recordset
    Dim Apxl As Object
    Dim xlWBk As Object, xlWSh As Object
    Dim PathEx As String
    Dim i As Long
    PathEx = Forms("Export").Text14 'path comes from the directory given in form
    Set Apxl = CreateObject("Excel.Application")
    Set xlWBk = Apxl.Workbooks.Open(PathEx)
    Set xlWSh = xlWBk.Worksheets("Metadatasheet")
    Set rst = CurrentDb.OpenRecordset("LatestSNR")
    For i = 1 To rst.Fields.Count
    xlWSh.Cells(1, i).Value = rst.Fields(i - 1).Name
    Next i
    rst.MoveFirst
    xlWSh.Range("A2").CopyFromRecordset rst
    xlWBk.Close SaveChanges:=True
    Apxl.Quit
    rst.Close
    Set rst = Nothing
    End Sub
    or else
    Public Sub Expdata()
    Dim PathEx As String
    PathEx = Forms("Export").Text14 'path comes from the directory given in form
    DoCmd.TransferSpreadsheet TransferType:=acExport, _
    SpreadsheetType:=acSpreadsheetTypeExcel12Xml, _
    TableName:="LatestSNR", _
    Filename:=PathEx, _
    HasFieldNames:=True, _
    Range:="Metadatasheet!"
    End Sub
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • MS Access Crosstab to Oracle SQL

    Gurus,
    I am trying to convert MS Access Query to Oracle SQL, What would be the Oracle query for this MS Access Crosstab Query?
    I am working on Oracle 10g so, I can't take advantage of oracle PIVOT function.
    Thank you
    Edited by: 951334 on Aug 10, 2012 6:52 AM
    Edited by: 951334 on Aug 13, 2012 5:51 AM

    if your crosstab columns are static you can use well-known technique like
    select tablespace_name,
    sum(case segment_type when 'TABLE' then bytes end) TABLES_BYTES,
    sum(case segment_type when 'INDEX' then bytes end) INDEXES_BYTES,
    sum(case segment_type when 'LOBSEGMENT' then bytes end) LOB_BYTES
    from dba_segments
    group by tablespace_name;
    for dynamic crosstab columns you require to build this query dynamically in application

  • Multi-level UPCs (I can do as pivot table in Access and Excel, but not SAP)

    I'm working for a shoe manufacturer. We've got inventory that can be grouped into "cases" as well as "open-case" in regards to UPCs. We're able to apply the UPC to individual items such as open-case stock OR case-only, but we can't figure out how we can add the groupings needed to add UPCs to individual items AND the cases associated with each shoe/size. Here's a little more detail: We sell shoes in cases, MOSTLY. Occasionally, we have a shoe model that will sell as open-case. The cases (which have a UPC) contain an assortment of sizes (each of which has its own UPC). We need to be able to access the information for the associated cases when looking at a product and when on a case, we need to see the make-up of the case - such as associated sizes, qty contained, and their respective UPCs. I know we could easily do this in Access or Excel using pivot tables... Is this POSSIBLE in SAP Business One???

    You may check Sales BOM function to see if that meet your need. The case can be set up as an Sales BOM item.
    Thanks,
    Gordon

  • Non-English string access from excel sheet through JDBC

    My excel sheet data is
    Test ������������
    I am using JDBC connectivity for accessing the Excel sheet.
    Code looks like,
    List Output = new List();
    try
    Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
    c = DriverManager.getConnection( "jdbc:odbc:qa-list", "", "" );
    stmnt = c.createStatement();
    ResultSet rs = stmnt.executeQuery("select * from [Sheet1$];");
    ResultSetMetaData rsmd = rs.getMetaData();
    int numberOfColumns = rsmd.getColumnCount();
    for(int i=1; i <= numberOfColumns; i++){
    Output.add(rsmd.getColumnLabel(i));
    catch( Exception e )
    System.err.println( e );
    finally
    try
    stmnt.close();
    c.close();
    catch( Exception e )
    System.err.println( e );
    Now. I am showing those data into the table(JTable) Applet programming.
    For, English string it is showing properly but, for non-English string are showing �???????????????????�
    I would like to know what could be the reason.
    Addional info:
    ava version "1.6.0_01"
    Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
    Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)
    If possible please send some reference code .

    I have one excel sheet which having differenct countries specific meaining of common words.
    I am using JDBC connectivity for accessing that Excel sheet.
    Code looks like,
    List Output = new List();
    try
    Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
    c = DriverManager.getConnection( "jdbc:odbc:qa-list", "", "" );
    stmnt = c.createStatement();
    ResultSet rs = stmnt.executeQuery("select * from [Sheet1$];");
    ResultSetMetaData rsmd = rs.getMetaData();
    int numberOfColumns = rsmd.getColumnCount();
    for(int i=1; i <= numberOfColumns; i++){
    Output.add(rsmd.getColumnLabel(i));
    catch( Exception e ){
    System.err.println( e );
    finally{
    try{
    stmnt.close();
    c.close();
    catch( Exception e ){
    System.err.println( e );
    Now. I am showing those output data into the table(JTable) in my Applet programming.
    For, English string it is showing properly but, for non-English strings are showing question marks like, �?????�
    I would like to know what could be the reason.
    Please help me, i am stuck in my project.

  • Migration: Access 2003 to Oracle SQL

    Dear All
    I would like to perform a migration from Access 2003, to Oracle 10g. I am using SQL Developer for the task, and have reached the point of capturing the XML file that I exported from Access. I need to create a migration repository on the target database, and this is causing problems as I do not have all the necessary privileges.
    In the process, I have been advised that migrations from Access to Oracle are not easy to achieve, and in fact require careful planning before execution. My objective is not really to transfer the data stored within the database file. I only really want to convert Access logic into Oracle SQL code. I was wondering if anyone could advise on the typical odds of success in achieving this task.
    I migrated the same Access database to MS SQL Server some time ago and the process seemed to go smoothly. Would it be reasonable then to migrate from MS SQL to Oracle SQL if this is easier?
    Any feedback would be very much appreciated.
    Thank you.
    M

    Thanks for your response.
    I am not familiar with the intricacies of the process, I'm just following the instructions set out in the Oracle Migrating 3rd Party Databases white paper.
    In this document, a process is set out consisting of steps that export an Access database, and then capture it to an Oracle user area with appropriate privileges. The process is achieved through Oracle SQL Developer.
    I'd be very grateful if you could expand on your answer if there is a better way of translating Access queries into Oracle SQL. I am aware that an Access front-end is capable of connecting with an Oracle database to execute queries, however, there are considerable limitations in the use of Access that I would like to avoid - hence the migration.

  • Migration Error from Access to Oracle through SQL Developer.

    Hi,
    Actually I am trying to migrate data from MS Access 2002 to Oracle 9i database through the SQL Developer. But Whenever I go to Capture Database from Access it will show me an error.... Invalid procedure Call and then it shows an error message... >>>>>>
    ShowSplashScreen("_OracleSplashScreen",3)
    after that i wont be able to do this task anymore..... So please help me get out of it... How Cam I Maigrate data from Access to Oracle 9i...
    Is any other tool i use or you can help me for this tool to migrate date...
    Please tell me..
    If yu can send me a mail then mail me on [email protected]
    regards,
    Vishal

    Hi Vishal,
    I have responded to your related thread on the Migration Workbench forum - Migration Error from Access to Oracle through SQL Developer.
    Regards,
    Hilary

  • How can I access my Excel and MS word docs now that I down loaded Lion?

    How can I access my Excel and MS word docs now that I down loaded Lion?

    Isn't it the kind of question which would have been better asked before switching to Lion ?
    Of course it would be more logical to ask in a M…oSoft dedicated forum.
    In case you forgot it, here you are in a forum dedicated to an Apple product named Numbers
    Yvan KOENIG (VALLAURIS, France) samedi 23 juillet 2011 12:43:13
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

Maybe you are looking for

  • XML - 0112 Error on parsing using SAX and xml file in InputSource object.

    I need to parse a XML string and extract some information. I have to use SAX parser. I'm converting hte string to InputSource and then trying to parese. i'm getting XML-0112 error, my guess is that it is not able to locate DTD file but i tried hardco

  • Batch Change "Date Modified" to match Exif Data After iPhoto Export

    Among several other posts about similar situations, I have found none that directly and simply resolve this issue. My wife imported a bunch of photos into iPhoto directly, but I wanted them in a folder on the hard drive. I pulled them out of iPhoto i

  • Are there any IPhone antenna signal booster available

    Hi, We have two iphones in our family. The problem is that usually we have VERY poor signal strength in our house. I've gone to ATT's site to check out coverage (they have a map of signal strength by geographical location on their site) and sure enou

  • Is 9i db compatible with 10g AS

    We have a three-tier application: Tier 1: Client using Web deployed forms using Jinitiator Tier 2: Oracle 9i Application Server (on Windows) Tier 3: Oracle 9i Database (on Unix) We want to upgrade Tier 2 to Oracle 10g Application Server. Do we also h

  • To call Java Procedure inside Forms6i

    How do i call a java procedure (Stored either in Oracle8i database or application server )from Oracle Forms6i trigger / procedure.If this possible please let me know. Your help in this regard would be appreciated