Dynamic ODBC in CF7.02

Hi,
I have some CF5.0 code which uses the dynamic ODBC feature to
connect to different XLS files, SQL them for various data, read
them in and then process. If I upgrade to 7.02 I believe that these
feature has been removed.
Is anybody aware of any workaround, custom tag etc that can
allow me to continue to use this feature?
Thanks
Mark

This looks like one way:
http://www.emerle.net/programming/display.cfm/t/cfx_excel2query
Ken Ford
Adobe Community Expert
Fordwebs, LLC
http://www.fordwebs.com
"ACS LLC" <[email protected]> wrote in
message news:f2kru1$shn$[email protected]..
> Hi,
>
> I have some CF5.0 code which uses the dynamic ODBC
feature to connect to
> different XLS files, SQL them for various data, read
them in and then process.
> If I upgrade to 7.02 I believe that these feature has
been removed.
>
> Is anybody aware of any workaround, custom tag etc that
can allow me to
> continue to use this feature?
>
> Thanks
>
> Mark
>

Similar Messages

  • Cold Fusion ODBC Server (CF7)

    Just curious as to why there is a CF ODBC Server that is run
    be default?
    I thought it was necessary to run this to use data
    connections with CF, but it turns out all of our sites run 100-fold
    faster and better with the darn thing turned off and there is no
    issue connecting to data sources!?
    So why is it there at all? Just curious more than anything.

    interesting
    is it possible that when it is on, it actually handles all
    data connections, not just Access? But when off the SQL connections
    run through the native ODBC handlers?
    I only ask because our server was bogging down yesterday and
    as soon as I turned off the CF ODBC Server it was faster than it
    had ever been in the past year or so!
    Leaving the service off, the server is still way better than
    it ever has been today.

  • How to add a DSN in registry?

    Does anyone know how to add an odbc datasource in HKEY_LOCALMACHINE\Software\\ODBC\\ODBC.INI\\ODBC Data Sources??
    And yeah, using ODBC connection when JDBC is there, and that too writing into the registry is a very bad design. I know that. But, this aint my design and I need to see that ODBC datasources are created dynamically. I am able to do the creation using a simple REG ADD to create them in the odbc.ini, but I want those to be created in the ODBC Data Sources subfolder to. Any help? Thanks.

    If you search on Google, there are several articles
    about connecting to a MS Access database w/o adding a
    DSN.
    I already did that. Didnt get much help out of Google. And my db is myssql. And I need to add the DSN (not through System DSN), but by coding it in the program. Anyways, on second thoughts, guess I wll drop this idea for a while. The only way to create dynaminc DSNs in Java is to add them in the registry, which already am doing. Other than that, theres no JNDI lookup/binding (like its done for JDBC dynamic datasource creation). Theres no clean and straight way to create dynamic ODBC dsn's in Java, without manipulating the registry. So, guess I will stick to what I am doing. (unless Sun invents a clean way).

  • Essbase studio unicode character issue

    Hi all,
    We are facing issues in Essbase Studio when records with unicode character is encountered.
    E.g. We have a field like City BUCUREȘTI with a unicode character. So when the record with this filed comes, it concatenates the part of the filed (City BUCURE) before the special character to the next record and the next record gets rejected. So we are seeing the below error in the logs :
    \\Record #1060 - Incorrect Syntax For Member City BUCURECountry ZA     H668207     A676477
    We are deploying it as Unicode application
    Details : Source database : Teradata 13
    Essbase - 11.1.2.2
    We are using streaming mode and dynamic ODBC and deploying unicode application.
    Has anybody faced this issue and can help me?
    Many thanks.

    Are you definitely sure that is not an issue with the syntax of the deploy command, are you saying the Maxl works when running it from the Essbase Studio Server?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • ODBC, bulk inserts and dynamic SQL

    I am writing an application running on Windows NT 4 and using the oracle ODBC driver (8.01.05.00, that inserts many rows at a time (10000+) into an oracle 8i database.
    At present, I am using a stored procedure to insert each row into the database. The stored procedure uses dynamic SQL because I can only determine the table and field names at run time.
    Due to the large number of records, it tends to take a while to perform all the inserts. I have tried a number of solutions such as using batches of SQL statements (e.g. "INSERT...;INSERT...;INSERT..."), but the oracle ODBC driver only seems act on the first statement in the batch.
    I have also considered using the FOR ALL statement and SQL*Loader utility.
    My problem with FOR ALL is that I'm not sure it works on dynamic SQL statements and even if it did, how do I pass an array of statements to the stored procedure.
    I ruled out SQL* Loader because I could not find a way to invoke it it from an ODBC statement. Secondly, it requires the spawining of a new process.
    What I am really after is something similar the the SQL Server (forgive me!) BULK INSERT statement where you can simply create an input file with all the records you want to insert, and pass it along in an ODBC statement such as "BULK INSERT <filename>".
    Any ideas??
    null

    Hi,
    I faced this same situation years ago (Oracle 7.2!) and had the following alternatives.
    1) Use a 3rd party tool such as Sagent or CA Info pump (very pricey $$$)
    2) Use VisualC++ and OCI to hook into the array insert routines (there are examples of these in the Oracle Home).
    3) Use SQL*Loader (the best performance, but no real control of what's happening).
    I ended up using (2) and used the Rouge Wave dbtools.h++ library to speed up the development.
    These days, I would also suggest you take a look at Perl on NT (www.activestate.com) and the DBlib modules at www.perl.org. I believe they will also do bulk loading.
    Your problem is that your program is using Oracle ODBC, when you should be using Oracle OCI for best performance.
    null

  • RE: (forte-users) (Fwd) ODBC & Dynamically Choosing aDatabase Ve ndor

    The error you are getting is saying that the data source is not correctly
    specified. Make sure the data source(or the name of the ODBC driver you
    created) is correctly specified in your code.
    ka
    -----Original Message-----
    From: Duncan Kinnear [mailto:[email protected]]
    Sent: Sunday, December 19, 1999 6:26 PM
    To: [email protected]
    Subject: (forte-users) (Fwd) ODBC & Dynamically Choosing a Database
    Vendor
    I am trying to dynamically create a DBSession to connect to the
    Microsft SQL Server ODBC Driver on a Forte Server Node.
    I have tested the ODBC connection on the Local Machine and it works fine.
    I have connected to the SQL Server on that machine with a Static
    DBSession Object and that works fine.
    I have used the same code to create a DBSession to Informix on Unix
    and that worked fine.
    The error I get is a converted ODBC one:
    SYSTEM ERROR: Attempt to load partition named TestWinProject_cl0_Part1
    failed.
    Class: qqsp_ResourceException
    Error #: [1001, 4]
    Detected at: qqrt_ForteExecAgent::LoadPartition at 2
    Error Time: Mon Dec 20 12:05:37
    Distributed method called: qqrt_ForteExecAgentProxy.LoadPartition!7
    (object name Unnamed) from partition "Node Manager", (partitionId =
    40114BC0-B0FC-11D3-B4D6-E87D6941AA77:0x11c, taskId =
    [40114BC0-B0FC-11D3-B4D6-E87D6941AA77:0x11c.38]) in application
    "System
    Manager", pid 250 on node ALLY in environment testenv
    Exception occurred (remotely) on partition "Forte_Executor",
    (partitionId
    = 40114BC0-B0FC-11D3-B4D6-E87D6941AA77:0x11e, taskId =
    [40114BC0-B0FC-11D3-B4D6-E87D6941AA77:0x11e.22]) in application
    "TestWinProject_cl0", pid 235 on node ALLY in environment TestEnv.
    SYSTEM ERROR: Failed to create service object TestDataProject.TestService.
    Class: qqsp_ResourceException
    Last TOOL statement: method TestServiceMgr.
    Error Time: Mon Dec 20 12:05:37
    Exception occurred (remotely) on partition "Forte_Executor",
    (partitionId
    = 40114BC0-B0FC-11D3-B4D6-E87D6941AA77:0x11e, taskId =
    [40114BC0-B0FC-11D3-B4D6-E87D6941AA77:0x11e.22]) in application
    "TestWinProject_cl0", pid 235 on node ALLY in environment TestEnv.
    USER ERROR: (This error was converted)
    Failed to connect to database: ForteSQLServer , username: justin .
    [Microsoft][ODBC Driver Manager] Data source name not found and no
    default
    driver specified
    Class: qqdb_RemoteAccessException with ReasonCode:
    DB_ER_DBMSCONNECTION
    DBMS SQLSTATE: IM002
    Class: qqsp_ErrorDescriptor
    Detected at: qqdb_OdbcVendorInfo::DoSQLConnect at 10
    Last TOOL statement: method ServiceMgr.SetDBSession
    Error Time: Mon Dec 20 12:05:37
    Exception occurred (remotely) on partition "Forte_Executor",
    (partitionId
    = 40114BC0-B0FC-11D3-B4D6-E87D6941AA77:0x11e, taskId =
    [40114BC0-B0FC-11D3-B4D6-E87D6941AA77:0x11e.22]) in application
    "TestWinProject_cl0", pid 235 on node ALLY in environment TestEnv.
    Versions:
    SQL SERVER 6.5
    ODBC Driver SQL Server 2.65.0240
    ODBC Manager 3.0.28.22
    NT 4 sp4
    Forte 3.0.J.1
    The code I'm using is almost identical to that given in the "Dynamically
    Choosing a Database Vendor" section of the "Making a Database
    Connection" chapter of the "Accessing Databases" manual.
    Any suggestions would be greatly appreciated
    Thanks in advance.
    Cheers,
    Duncan Kinnear,
    McCarthy and Associates, Email:
    [email protected]
    PO Box 764, McLean Towers, Phone: +64 6 834 3360
    Shakespeare Road, Napier, New Zealand. Fax: +64 6 834 3369
    Providing Integrated Software to the Meat Processing Industry for over 10
    years
    For the archives, go to: http://lists.sageit.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: [email protected]

  • How to connect to SQL Anywhere db dynamically - No ODBC -

    Hello all -
    We have an application (c++) with several reports (crystal 10) that are dynamically connected to several access databases depending on the users request. We are now moving that application to .net (c#) and SQL Anywhere 11. I am able to create an odbc connection and use that connection to develop reports against the new database, but am unable to locate any information on how a connection can be established on the fly to run the report against different database instances. Can this be done dynamically from the application preferably with ADO.net? How? Where Can I find documentation supporting this?
    Thanks in advance for you assistance,
    Shawn

    See the [Crystal Reports Guide To ADO.NET|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/401c4455-a31d-2b10-ae96-fa57af5aec20]
    and [Reporting Off ADO.NET Datasets|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2091d0c3-da1d-2b10-22be-a3426b183f75]
    Other useful resources.
    Troubleshooting Issues with VS .NET Datasets and Crystal Reports blog:
    /people/ludek.uher/blog/2009/03/02/troubleshooting-issues-with-vs-net-datasets-and-crystal-reports
    Samples:
    https://smpdl.sap-ag.de/~sapidp/012002523100006252822008E/net_win_smpl.exe
    https://smpdl.sap-ag.de/~sapidp/012002523100006252722008E/csharp_win_smpl.exe
    https://smpdl.sap-ag.de/~sapidp/012002523100006252712008E/csharp_web_smpl.exe
    https://smpdl.sap-ag.de/~sapidp/012002523100006252812008E/net_web_smpl.exe
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/208edbbf-671e-2b10-d7b5-9b57a832e427
    VS2005 Walkthroughs:
    http://www.businessobjects.com/global/pdf/dev_zone/VS2005_Walkthroughs.pdf
    Also, search the forums. there is tons of info here.
    Ludek

  • (Fwd) ODBC & Dynamically Choosing a DatabaseVendor

    I am trying to dynamically create a DBSession to connect to the
    Microsft SQL Server ODBC Driver on a Forte Server Node.
    I have tested the ODBC connection on the Local Machine and it works fine.
    I have connected to the SQL Server on that machine with a Static
    DBSession Object and that works fine.
    I have used the same code to create a DBSession to Informix on Unix
    and that worked fine.
    The error I get is a converted ODBC one:
    SYSTEM ERROR: Attempt to load partition named TestWinProject_cl0_Part1 failed.
    Class: qqsp_ResourceException
    Error #: [1001, 4]
    Detected at: qqrt_ForteExecAgent::LoadPartition at 2
    Error Time: Mon Dec 20 12:05:37
    Distributed method called: qqrt_ForteExecAgentProxy.LoadPartition!7
    (object name Unnamed) from partition "Node Manager", (partitionId =
    40114BC0-B0FC-11D3-B4D6-E87D6941AA77:0x11c, taskId =
    [40114BC0-B0FC-11D3-B4D6-E87D6941AA77:0x11c.38]) in application "System
    Manager", pid 250 on node ALLY in environment testenv
    Exception occurred (remotely) on partition "Forte_Executor", (partitionId
    = 40114BC0-B0FC-11D3-B4D6-E87D6941AA77:0x11e, taskId =
    [40114BC0-B0FC-11D3-B4D6-E87D6941AA77:0x11e.22]) in application
    "TestWinProject_cl0", pid 235 on node ALLY in environment TestEnv.
    SYSTEM ERROR: Failed to create service object TestDataProject.TestService.
    Class: qqsp_ResourceException
    Last TOOL statement: method TestServiceMgr.
    Error Time: Mon Dec 20 12:05:37
    Exception occurred (remotely) on partition "Forte_Executor", (partitionId
    = 40114BC0-B0FC-11D3-B4D6-E87D6941AA77:0x11e, taskId =
    [40114BC0-B0FC-11D3-B4D6-E87D6941AA77:0x11e.22]) in application
    "TestWinProject_cl0", pid 235 on node ALLY in environment TestEnv.
    USER ERROR: (This error was converted)
    Failed to connect to database: ForteSQLServer , username: justin .
    [Microsoft][ODBC Driver Manager] Data source name not found and no default
    driver specified
    Class: qqdb_RemoteAccessException with ReasonCode: DB_ER_DBMSCONNECTION
    DBMS SQLSTATE: IM002
    Class: qqsp_ErrorDescriptor
    Detected at: qqdb_OdbcVendorInfo::DoSQLConnect at 10
    Last TOOL statement: method ServiceMgr.SetDBSession
    Error Time: Mon Dec 20 12:05:37
    Exception occurred (remotely) on partition "Forte_Executor", (partitionId
    = 40114BC0-B0FC-11D3-B4D6-E87D6941AA77:0x11e, taskId =
    [40114BC0-B0FC-11D3-B4D6-E87D6941AA77:0x11e.22]) in application
    "TestWinProject_cl0", pid 235 on node ALLY in environment TestEnv.
    Versions:
    SQL SERVER 6.5
    ODBC Driver SQL Server 2.65.0240
    ODBC Manager 3.0.28.22
    NT 4 sp4
    Forte 3.0.J.1
    The code I'm using is almost identical to that given in the "Dynamically
    Choosing a Database Vendor" section of the "Making a Database
    Connection" chapter of the "Accessing Databases" manual.
    Any suggestions would be greatly appreciated
    Thanks in advance.
    Cheers,
    Duncan Kinnear,
    McCarthy and Associates, Email: [email protected]
    PO Box 764, McLean Towers, Phone: +64 6 834 3360
    Shakespeare Road, Napier, New Zealand. Fax: +64 6 834 3369
    Providing Integrated Software to the Meat Processing Industry for over 10 years

  • Dynamic Recordset with Oracle ODBC

    I'm trying to create a recordset that will automaticaly update
    itself when the database has changed. I have tried using a
    dynamic cursor but it doesnt work. The cursor type keeps on
    getting set to a keyset cursor type. Does Oracle support
    dynamic cursors? If so, can someone post an example.

    No ODBC driver for Oracle supports the creation of dynamic resordsets. I'm not aware of a driver for any database that does.
    Justin

  • Create ODBC system DSN Dynamically ?

    Hey Guru ,
    Does any one know how to create a system DSN for CSV and
    EXCEL dynamically using coldfusion or any other languauge VB ?, on
    net there are loads of examples for access and MSSQL server but
    none forCSV or EXCEL
    Thanks a lot in advance ..

    I just tried it again as a Startup Script in the GPO, it only is applied if I add the user to the local Admins Group.
    A startup script is applied to a computer at reboot.  It is not applied to an OU with users.  Apply the GPO to the computer container.
    Just use the GPO that defines DSNs.
    ¯\_(ツ)_/¯

  • Bulk inserts and dynamic SQL

    I am writing an application running on Windows NT 4 and using the oracle ODBC driver (8.01.05.00, that inserts many rows at a time (10000+) into an oracle 8i database.
    At present, I am using a stored procedure to insert each row into the database. The stored procedure uses dynamic SQL because I can only determine the table and field names at run time.
    Due to the large number of records, it tends to take a while to perform all the inserts. I have tried a number of solutions such as using batches of SQL statements (e.g. "INSERT...;INSERT...;INSERT..."), but the oracle ODBC driver only seems act on the first statement in the batch.
    I have also considered using the FOR ALL statement and SQL*Loader utility.
    My problem with FOR ALL is that I'm not sure it works on dynamic SQL statements and even if it did, how do I pass an array of statements to the stored procedure.
    I ruled out SQL* Loader because I could not find a way to invoke it it from an ODBC statement. Secondly, it requires the spawining of a new process.
    What I am really after is something similar the the SQL Server (forgive me!) BULK INSERT statement where you can simply create an input file with all the records you want to insert, and pass it along in an ODBC statement such as "BULK INSERT <filename>".
    Any ideas??
    null

    Hi,
    I faced this same situation years ago (Oracle 7.2!) and had the following alternatives.
    1) Use a 3rd party tool such as Sagent or CA Info pump (very pricey $$$)
    2) Use VisualC++ and OCI to hook into the array insert routines (there are examples of these in the Oracle Home).
    3) Use SQL*Loader (the best performance, but no real control of what's happening).
    I ended up using (2) and used the Rouge Wave dbtools.h++ library to speed up the development.
    These days, I would also suggest you take a look at Perl on NT (www.activestate.com) and the DBlib modules at www.perl.org. I believe they will also do bulk loading.
    Your problem is that your program is using Oracle ODBC, when you should be using Oracle OCI for best performance.
    null

  • ODBC IN WIN95 & NT

    제품 : ODBC
    작성날짜 : 1997-10-10
    The ODBC (Open Database Connectivity) interface allows applications to
    access data in DBMS ( Database management systems) using SQL(structured query language). Oracle ODBC driver is a DLL that implements ODBC
    function callsand interacts with a data source.
    The flow of control when communicating from an application through
    ODBC to Oracle database is as shown below.
    Application
    |
    ODBC driver manager
    |
    Oracle7 ODBC Driver
    |
    OCI layer
    |
    SQL*Net Driver
    |
    Network Software
    ( PCTCP, Novell NetWare, Microsoft LAN Manager, etc,.)
    |
    SQL*Net Listener
    |
    Oracle7 RDBMS
    When a third party application communicates with the Oracle database
    in a Client/Server environment, several dynamic link libraries are
    involved. ODBC driver is a DLL that implements ODBC function calls.
    The ODBC driver communicates with the OCI layer. The DLLs used in
    the OCI layer are part of Required Support Files. Required Support
    Files are bundled with SQL*Net. Each version of the ODBC driver is
    linked with a specific version of RSF. Each version of SQL*Net is
    also dependent on a specific version of RSF. The matrix below shows
    the dependency.
    ODBC driver| 16/32| Supported | Supported | RSF version | RDBMS
    version | bit | Platforms | SQL*NET ver| used | version
    1.11.00.05 | 16 | Windows | 2.0.X | 7.0.X | 7.0
    | bit | 3.1X | for Windows| |
    | | | | |
    1.11.01.05 | 16 | Windows | 2.1.X | 7.1.X | 7.1
    | bit | 3.1X | for Windows| |
    1.14.01.00 | 16 | Windows | 2.2.X | 7.2.X | 7.2
    | bit | 3.1X | for Windows| |
    1.15.3.0.1A| 16 | Windows | 2.3.X | 7.3.X | 7.3
    | bit | 3.1X | for Windows| |
    1.15.3.1 | 16 | Windows | 2.3.X | 7.3.2.1.1 | 7.3
    | bit | 3.1X | for Windows| |
    1.16.3.1A | 16 | Windows | 2.3.X | 7.3.2.1.1 | 7.3
    | bit | 3.1X | for Windows| or later |
    1.13.05.00 | 32 | Windows NT | 2.2.X | 7.2.X | 7.2
    | bit | 3.1/3.51 | (32-bit)~~ | |
    | | and | | |
    | | Windows95 | | |
    1.13.05.04 | 32 | Windows NT | 2.2.X | 7.2.X | 7.2
    | bit | 3.1/3.51 | (32-bit)~~ | |
    | | and | | |
    | | Windows95 | | |
    1.15.3.0.1A| 32 | Windows NT | 2.3.X | 7.3.X | 7.3
    | bit | 3.1/3.51 | (32-bit)~~ | |
    | | and | | |
    | | Windows95 | | |
    1.15.3.1 | 32 | Windows NT | 2.3.X | 7.3.X | 7.3
    | bit | 3.1/3.51 | (32-bit)~~ | |
    | | and | | |
    | | Windows95 | | |
    1.16.3.1.0A| 32 | Windows NT | 2.3.X | 7.3.2.1.1 | 7.3
    | bit | 4.0 and | (32-bit)~~ | or later |
    | | Windows95 | | |
    ~~ : You must use SQL*Net for Windows NT, if you are running your
    application
    on Windows NT. If you are running your application on Windows 95,
    you must use SQL*Net for Windows 95.
    NOTES:
    If you are running an ODBC driver not listed in the above matrix, we
    strongly recommend that you upgrade your ODBC driver.
    Basics:
    If your application is a 32-bit application, you must use 32-bit Oracle
    ODBC driver and 32-bit SQL*Net for the platform, your application is
    targeted. For a 16-bit application, you must use 16-bit Oracle ODBC
    driver along with SQL*Net for Windows(16-bit).
    SQL*Net Version 1.X
    If you are using SQL*Net Version 1.X, your connection should work
    against 7.2 or older Oracle databases. SQL*Net Version 1.X was
    de-supported June 30,1996. We recommend that you upgrade your SQL*Net.
    Connecting to Standalone Personal Oracle Database:
    If you connect to a local, standalone Personal Oracle database, you
    will use a two-task driver ( In the above flow chart the two-task
    driver will replace SQL*Net). The connect string is 2:<SID> where
    <SID> is the instance ID. The default SID is ORCL. (no period)
    ODBC Documentation:
    The Oracle7 ODBC driver comes with on-line help. The help file name
    is DRVORA7*.HLP * could take values NULL, 1, or 2 depending upon the
    version of the Oracle ODBC driver installed.
    For ODBC API documentation, refer ODBC 2.0 Programmer's Reference and
    SDK Guide from Microsoft Press. The online version of ODBC 2.0
    Programmer's Reference and SDK guide is part of MSVC++ compiler.
    Version of Oracle product: How to find ?
    To find the versions of Oracle software installed on your machine run
    the Oracle installer (ORAINST.EXE). In case of errors, versions
    numbers are an important part of problem definition.
    Common ODBC Q&A
    Q. I have two ODBC drivers, 1.11.0.5.0 and 1.11.1.5.0. Which driver
    should I install?
    A. The version of the ODBC driver you will install is dependent on the
    Required Support Files (RSF) you have on your system. If you are
    running RSF 7.0.X, you need to install 1.11.5.0. If you are running
    RSF 7.1X, you need to install 1.11.1.5.0.
    You can find the RSF version by running ORAINST.EXE, the Oracle installer.
    When ORAINST.EXE is run the Software Asset Manager displays the
    products
    available to install as well as those products already installed.
    Search for the Required Support File and make note of the version.
    Q. What other products do I need so that the ODBC driver works?
    A. You definitely need the appropriate SQL*Net version (16-bit or 32-bit).
    Make sure that SQL*Net is installed and configured correctly before you
    try to connect through ODBC. For example, if you are using 32-bit ODBC
    driver for Windows 95, and TCP/IP is your protocol, you must have SQL*Net
    for Windows 95 (TCP/IP) installed and configured, before you can make a
    connection through ODBC.
    Note: If you are connecting to a standalone Personal Oracle7 for
    MS Windows, you do not need SQL*Net. Personal Oracle7 uses a two
    task driver - SQL2TT.dll to connect to its standalone databse.
    32-bit ODBC driver required 32-bit SQL*Net and
    16-bit ODBC driver requires 16-bit SQLNet.
    You also need the appropriate version of Required Support Files installed
    on your system.
    Error: specified driver could not be located
    solution:
    a) Check the odbc driver is present (see 1. above) and pointed to.
    b) Check correct RSFs are installed and OH\bin is on the DOS path.
    For Windows can set the DOS path in autoexec.bat or before
    running windows. For Win 95 can only set in autoexec.bat. For
    NT can set in autoexec.bat but usually through Control Panel,
    System - has list of system environment variables.
    c) For older installs nettest may be available else may have
    tnsping. If this or any Oracle product can connect then the
    net (and Sqlnet if Oracle product) is ok.
    Error: error occurred in networking software, check log file
    c:\msocklib.txt
    but only from ODBC connections - other oracle products are fine.
    Log file: TSR/DLL version incorrect
    Solution:
    a) Check the version of msocklib.dll. Sqlplus etc often picks up
    the correct one whereas ODBC will use the DOS path. Ensure
    OH\bin is first in the DOS path.
    Problem: Have ODBC 1.11 and Sqlnet 2.2 and getting gpfs in nls dlls etc.
    Solution:
    a) Generally any version of the RSFs can call any equivalent or
    later version of Sqlnet. In 2.2 of Sqlnet they changed the
    calls so they were no longer backwardly compatible. This was
    fixed in Sqlnet 2.3. Thus 7.0 and 7.1 RSFs can use net 2.0, 2.1
    or 2.3.
    Problem: Want to connect to a V6 database.
    Answer: Can't. ODBC queries the dictionary views which changed in O7.
    Problem: Using Lotus Approach version 3.0 and having various problems,
    eg no tables being retrieved for users.
    Solution: Get a patch from Lotus to take Approach to version 3.0.2.
    Problem: VB Enterprise Edition (4.0) provides a remote data control.
    This gives "driver not capable" errors.
    Reason: The data control uses RDO which we would not support most
    features of anyway since RDO is ODBC level 2 (see compliancy
    above). There is also a bug (371374) that prevents any part
    of it being used.
    Problem: Calling a stored procedure from Visual C++ with an out
    character parameter gives ora-6502: numeric or value error.
    Solution: a) initialise the C variable before it is passed to the
    procedure.
    b) make the C variable a char and not an unsigned char (uchar).
    Problem: Getting a "driver not capable" error when calling
    SQLBindParameter or SQLSetParam.
    Solution: Change any references to SQL_C_ULONG or SQL_C_SLONG to
    SQL_C_LONG (equivalent of SQL_C_SLONG). SQL_C_ULONG and
    SQL_C_SLONG are level 2 datatypes and so not supported.
    Note SQLBindParameter is also level 2 but is allowed since
    our drivers simply convert the calls to SQLSetParam.
    Problem: With NLS settings such that the NLS_NUMERIC_CHARACTERS are
    the opposite to usual (G = . and D = ,) a fetch of a decimal
    number gives "SQLSTATE: 22005, Native Return Code: 0" errors
    when querying through ODBCTEST, MS Query etc.
    Solution: This is a bug (297648) which is fixed in the 1.16 ODBC drivers.
    Question: Is there an ODBC driver for use with Java?
    Answer: JavaSoft is currently writing one for Oracle 7 on SUNOS.
    General Suggestions:
    Please read the release notes and the online documentation. They contain
    important information.
    In case of error, please write down the entire error message as seen on the
    monitor(screen). An error message is key in finding the problem.
    Where can I get Oracle ODBC drivers?
    The Oracle ODBC drivers are available as free products on the world-wide web.
    The URL is http://www.oracle.com/

    try to use trust connection in sql server
    and it will work

  • Dynamic images in CF report builder 7

    Hi :-)
    Im pulling my hair out over an issue with cfreport builder 7
    and the abillity to dynamically display images.
    I can display images dynamicaly fine using this method:
    application.coverimage & "/" & query.image
    The problem is ive no idea how to say " if there is no image
    available then display noimage.jpg"
    ive played with the iif and fileexists functions but cant
    seem to get it to work within the report builder.
    If using cf report builder 8 the answer is simple, you can
    change an attribute of the image to say "on error do not display
    image" but i really need to do this with CF7.
    Can anyone help please? :-)

    I just found this solution and it helped me, and then I found a nice way to show your "noimage.jpg". You make a report function which sets a persistent variable containing the path to your image (I use the Request scope, so "Request.imagePath" for example). The variable is set to your "noimage.jpg" if it can't find the image path. You can pass parameters to the function from your query, if you wish. The function itself always returns "true". Call this function in the "Print when" property (remember, it's always true so it will always show), and the persistent variable is used as the image path. That way you can have your proper image or your default image show.
    I almost gave up on the CF Report Builder -- the report functions made it cool enough to keep using.

  • Get the Exception:invalid dynamic status

    I have the problem that when I use "Connection.close()" to close the ODBC connection, I get the exception
    "[Microsoft][ODBC Microsoft Access driver]invalid dynamic status"
    I have tested several cases,
    the problem is when I open the ResultSet, then I cannot close the connection.
    The Following is my code:
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection connect=DriverManager.getConnection("jdbc:odbc:final_year");
    Statement state=connect.createStatement();
    connect.setAutoCommit(false);
    ResultSet rs=state.executeQuery("Select .....");
    if (rs.next)
    do the code
    rs.close();
    state.close();
    connect.close();
    when the program run at "connect.close()", it throws Exception

    just check whether it works when the autoCommit() is set to true or
    either commit or roll back before closing the connection

  • How to Dynamically Select the Data File for a Report at Print Time

    How do you configure a Crystal report to ask for the file to be reported on as the report is being printed, and allow the user to browse to the file?
    The environment is Crystal Reports XI, SP3, with ODBC connection to Sage Timberline Office data version 9.7.  The client names their Payroll unposted time file each pay period, and also needs to report on their posted data file, depending on the time period for the report.  The client will need to select both the date range and the file name.
    I have created a SQL statement in Add Command in Database Expert, which prompts for a file name, but it does not let you browse to select a file on the computer.
    Therefore, in the prompts when they print the report, the parameter offers the user a default file name similar to the name they currently use, so they only have to change the payroll period end date in the supplied file name to run the report successfully.
    The client is concerned that sometimes a user will name their data file differently, and not know how to input the file name into the Crystal report prompt at print time.
    My research on dynamic prompts showed you can link to fields inside the data record, but I did not see a way to dynamically link to select the actual files used in the report.
    Another question is that the naming convention used by the SQL query is different than the basic Windows file name, but I think I can handle that issue.
    The actual file name is typically similar to:
    04-10-11 BP NEW.PRT
    However, in the SQL query, the record ID looks like:
    PRT_00-00-00 BP NEW__TIME
    The SQL Statement using a parameter is:
    SELECT
    "PRT_CURRENT__TIME"."Employee",
    "EMPLOYEE1"."Employee_Name",
    "PRT_CURRENT__TIME"."Date",
    "PRT_CURRENT__TIME"."Units",
    "PRT_CURRENT__TIME"."Job",
    "JOB1"."BP_Emps_Used"
    FROM
    "PRT_CURRENT__TIME" AS "PRT_CURRENT__TIME"
    INNER JOIN "JCM_MASTER__JOB" AS "JOB1"
    ON "PRT_CURRENT__TIME"."Job"="JOB1"."Job"
    INNER JOIN "PRM_MASTER__EMPLOYEE" AS "EMPLOYEE1"
    ON "PRT_CURRENT__TIME"."Employee"="EMPLOYEE1"."Employee"
    WHERE "JOB1"."BP_Emps_Used" = 1
    AND
    ("PRT_CURRENT__TIME"."Date" BETWEEN
    {?As of Date} - 41 AND {?As of Date})
    UNION ALL
    ( SELECT
    "PRT_NEW__TIME"."Employee",
    "EMPLOYEE2"."Employee_Name",
    "PRT_NEW__TIME"."Date",
    "PRT_NEW__TIME"."Units",
    "PRT_NEW__TIME"."Job",
    "JOB2"."BP_Emps_Used"
    FROM
    "{?NEWPRT}" AS "PRT_NEW__TIME"
    INNER JOIN "JCM_MASTER__JOB" AS "JOB2"
    ON "PRT_NEW__TIME"."Job"="JOB2"."Job"
    INNER JOIN "PRM_MASTER__EMPLOYEE" AS "EMPLOYEE2"
    ON "PRT_NEW__TIME"."Employee"="EMPLOYEE2"."Employee"
    WHERE "JOB2"."BP_Emps_Used" = 1
    AND
    ("PRT_NEW__TIME"."Date" BETWEEN
    {?As of Date} - 41 AND {?As of Date})

    Hello,
    Sorry you'll have to contact Sage on how to do this. We can help you once you get connected but we can't help you get around their connection methods.
    There is no Preview Set Database Connection method you can use in CR Designer. The Designer assumes you select it first or use the Set Location option before previewing or refreshing the data.
    If you are doing this in the Sage program itself we can't help you, you'll have to contact Sage for assistance.
    Sage is an OEM Partner they are responsible for supporting their product and CR. If they have issues help you then they will contact us directly for assistance.
    Thank you
    Don

Maybe you are looking for