ASE ODBC driver related questions

Hi Friends,
I am using ODBC driver (the framework over ODBC API) to connect and read data from ASE database server on Windows.
I've few questions about ASE ODBC driver. Can you please guide me.
1) ASE has a DB option called "textsize" which sets the limit on amount data we can fetch in select statement.
     This option can be set either in the DSN configuration (Advanced->Textsize text field) or by "set textsize <number>" for a session.
     --- While scanning BLOBs (image data types), I want to increase this limit to 512MB in my application. But, I don't want to override the limit if user has Text Size field in the DSN configuration.
    * how can we (programatically) find out the Text Size value set in the DSN configuration?
       --- Is it possible using some ODBC function?
2) What is the maximum limit on the data returned by SQLGetData function call at a time?
     --- Can we determine the size of the data stored in a column, especially the BLOB (or image) columns using ODBC API?
         or do we need to run the query "select datalength(ColumnName) from tablename" ?
3) Which the most stable and reliable ODBC Driver Manager for Unix and Linux OSs? Is it unixODBC?
Many thanks in advance for your clarifications and time.
Best Regards

Thanks Paul.
This is not with SQLGetData. In fact, SQLGetData is working fine for me.
Getting this problem when executing query and accessing bound buffers as below (pseudo code):
// Set statement attribute to read by column, number of rows, static cursor and status pointer:
/*struct StmtAttrs
    SQLINTEGER attr;
    SQLPOINTER valptr;
    SQLINTEGER len;
    SQLHSTMT& stmt = m_stmtHdl.m_hdl;
    StmtAttrs parms[5] = \
    {{SQL_ATTR_ROW_BIND_TYPE, SQL_BIND_BY_COLUMN, 0},
    {SQL_ATTR_CURSOR_TYPE, (SQLPOINTER)SQL_CURSOR_STATIC, 0},
    {SQL_ATTR_ROW_ARRAY_SIZE, (SQLPOINTER)limit, 0},
    {SQL_ATTR_ROW_STATUS_PTR, &m_rowStatus[0], 0},
    {SQL_ATTR_ROWS_FETCHED_PTR, &m_rowsFetched, 0}};
    uint32_t i = 0;
    SQLINTEGER errcode;
    for (; i < 5; ++i)
        bool ret = sqlSetStmtAttr(stmt, parms[i].attr, parms[i].valptr, parms[i].len);
          // error handling code
//Bind the input buffers for number of columns using SQLBindCol:
//Prepare the query using SQLPrepare
// E.g.: select top 2039 numpk,convert(binary(256),ablob) from myccinfo.dbo.bigdata NOLOCK order by numpk asc ;
// Execute the query with SQLExecute(stmt);
// Fetch the data using SQLFetchScroll(stmt, SQL_FETCH_NEXT, 0);
// Iterate thru each column and the bound buffer to read the data

Similar Messages

  • Sybase ASE 15.7.103 ODBC Driver invalid descriptor index

    Hey guys,
    after migration from oracle nuc to sybase ase 15.7.101 unicode and implementation of sapnote 1558958 (dbacockpit collection for NW 702) there were everything which was in dbacockpit displayed ok.
    After upgrade to patch 103 theres a problem in the dbacockpit. I will show in the register Database SID - Space - Tables and Indices - Tables.
    After I select this. There comes follwing error: ASE Error SQL30013:07009][SAP][ASE ODBC Driver]Invalid descriptor index.
    In error details I see SQLCode 30013
    The Database ist open and there are no other kown problems with connection. SAP could establish connection to sybase ase database and users can work normally.
    In the dbacockpit Database SID - Space - Devices and Databases are shown without problems.
    message details:
    Exception CX_DBA_ADBC in class CL_SYB_RDI_QUERY method GET_TABLES_SPACE line 217
    Kernel Error ID:
    WP ID: 4
    WP PID: 4272
    SYSID: SE1
    SY-SUBRC: 0
    SQL statement: SELECT TOP 50 DBNAME, USER_NAME AS TABOWNER, TAB_NAME AS TABNAME, ' ' AS PARTITIONNAME, 0 AS ID, 0 AS PARTITIONID, ' ' AS SNAPSHOT_TIMESTAMP, ' ' AS TIMESTAMP_FROM, ' ' AS TIMESTAMP_TO, SUM(TIME_PERIOD) AS TIME_PERIOD, AVG(ROW_COUNT) AS ROW_COUNT, MAX(ROW_COUNT) AS ROW_COUNT_MAX, AVG(TAB_RESERVED_LOB_KB) AS TAB_RESERVED_LOB_KB, MAX(TAB_RESERVED_LOB_KB) AS TAB_RESERVED_LOB_KB_MAX, AVG(TAB_USED_LOB_KB) AS TAB_USED_LOB_KB, MAX(TAB_USED_LOB_KB) AS TAB_USED_LOB_KB_MAX, AVG(TAB_DATA_LOB_KB) AS TAB_DATA_LOB_KB, MAX(TAB_DATA_LOB_KB) AS TAB_DATA_LOB_KB_MAX, AVG(TAB_DATA_UTL_KB) AS TAB_DATA_UTL_KB, MAX(TAB_DATA_UTL_KB) AS TAB_DATA_UTL_KB_MAX, AVG(TAB_DATAPGCLRATIO)*100 AS TAB_DATAPGCLRATIO, MIN(TAB_DATAPGCLRATIO)*100 AS TAB_DATAPGCLRATIO_MIN, AVG(TAB_LRGIOEFF)*100 AS TAB_LRGIOEFF, MIN(TAB_LRGIOEFF)*100 AS TAB_LRGIOEFF_MIN, AVG(DATACHANGE) AS DATACHANGE, MAX(DATACHANGE) AS DATACHANGE_MAX, AVG(forwrowcnt) AS forwrowcnt, MAX(forwrowcnt) AS forwrowcnt_MAX, AVG(delrowcnt) AS delrowcnt, MAX(delrowcnt) AS delrowcnt_MAX, AVG(extent0pgcnt) AS extent0pgcnt, MAX(extent0pgcnt) AS extent0pgcnt_MAX, AVG(oamapgcnt) AS oamapgcnt, MAX(oamapgcnt) AS oamapgcnt_MAX, AVG(oampagecnt) AS oampagecnt, MAX(oampagecnt) AS oampagecnt_MAX, MAX(str_replace(str_replace(str_replace(convert(VARCHAR(19),statmoddate,23),':',NULL),'-',NULL),'T',NULL)) AS statmoddate, AVG(datarowsize) AS datarowsize, MAX(datarowsize) AS datarowsize_MAX, AVG(TAB_DATA_TOTAL_KB) AS TAB_DATA_TOTAL_KB, MAX(TAB_DATA_TOTAL_KB) AS TAB_DATA_TOTAL_KB_MAX, AVG(TAB_DATA_UTL_TOTAL_KB) AS TAB_DATA_UTL_TOTAL_KB, MAX(TAB_DATA_UTL_TOTAL_KB) AS TAB_DATA_UTL_TOTAL_KB_MAX, AVG(TAB_USED_TOTAL_KB) AS TAB_USED_TOTAL_KB, MAX(TAB_USED_TOTAL_KB) AS TAB_USED_TOTAL_KB_MAX, AVG(TAB_RESERVED_TOTAL_KB) AS TAB_RESERVED_TOTAL_KB, MAX(TAB_RESERVED_TOTAL_KB) AS TAB_RESERVED_TOTAL_KB_MAX, AVG(TAB_UNUSED_TOTAL_KB) AS TAB_UNUSED_TOTAL_KB, MAX(TAB_UNUSED_TOTAL_KB) AS TAB_UNUSED_TOTAL_KB_MAX FROM ( SELECT DBNAME, USER_NAME, TAB_NAME, SNAPSHOT_TIMESTAMP AS SNAPSHOT_TIMESTAMP, SUM(TIME_PERIOD) AS TIME_PERIOD, SUM(ROW_COUNT) AS ROW_COUNT, SUM(TAB_RESERVED_LOB_KB) AS TAB_RESERVED_LOB_KB, SUM(TAB_USED_LOB_KB) AS TAB_USED_LOB_KB, SUM(TAB_DATA_LOB_KB) AS TAB_DATA_LOB_KB, SUM(TAB_DATA_UTL_KB) AS TAB_DATA_UTL_KB, CASE WHEN SUM(ROW_COUNT) > 0 THEN SUM(ROW_COUNT*TAB_DATAPGCLRATIO) / SUM(ROW_COUNT) ELSE 1 END AS TAB_DATAPGCLRATIO, CASE WHEN SUM(ROW_COUNT) > 0 THEN SUM(ROW_COUNT*TAB_LRGIOEFF) / SUM(ROW_COUNT) ELSE 1 END AS TAB_LRGIOEFF, CASE WHEN SUM(ROW_COUNT+delrowcnt) > 0 THEN SUM((ROW_COUNT+delrowcnt)*DATACHANGE) / SUM(ROW_COUNT+delrowcnt) ELSE 0 END AS DATACHANGE, SUM(forwrowcnt) AS forwrowcnt, SUM(delrowcnt) AS delrowcnt, SUM(extent0pgcnt) AS extent0pgcnt, SUM(oamapgcnt) AS oamapgcnt, SUM(oampagecnt) AS oampagecnt, MAX(statmoddate) AS statmoddate, CASE WHEN SUM(ROW_COUNT) > 0 THEN SUM(ROW_COUNT*datarowsize) / SUM(ROW_COUNT) ELSE 0 END AS datarowsize, SUM(TAB_DATA_KB+TAB_DATA_LOB_KB) AS TAB_DATA_TOTAL_KB, SUM(TAB_DATA_UTL_KB+TAB_DATA_LOB_KB) AS TAB_DATA_UTL_TOTAL_KB, SUM(TAB_USED_KB+TAB_USED_LOB_KB) AS TAB_USED_TOTAL_KB, SUM(TAB_RESERVED_KB+TAB_RESERVED_LOB_KB) AS TAB_RESERVED_TOTAL_KB, SUM((TAB_RESERVED_KB+TAB_RESERVED_LOB_KB) - (TAB_USED_KB+TAB_USED_LOB_KB)) AS TAB_UNUSED_TOTAL_KB FROM saptools..DBH_STG_TABLES WHERE SNAPSHOT_TIMESTAMP >= dateadd(ss,TIME_PERIOD,?) AND SNAPSHOT_TIMESTAMP <= dateadd(ss,5,?) AND BDOP = 1 AND BDOI = 0 GROUP BY DBNAME, USER_NAME, TAB_NAME, SNAPSHOT_TIMESTAMP ) AS STD_AGGR GROUP BY DBNAME, USER_NAME, TAB_NAME ORDER BY TAB_RESERVED_TOTAL_KB DESC AT ISOLATION READ UNCOMMITTED
    Database: +++SYBADM
    caused by
    Exception CX_SQL_EXCEPTION in class CL_SQL_RESULT_SET
    Kernel Error ID:
    DB Error: Yes
    SQL Code: 30013
    SQL Message: [ASE Error SQL30013:07009][SAP][ASE ODBC Driver]Invalid descriptor index
    DB Object Exists: No
    Duplicated Key: No
    Internal Error: 1
    Invalid Cursor: No
    Unknown Connection: No
    Connection Closed: No

    Thanks Mr Model-Bosch,
    we have installed the latest dbsl Patch 213. And we have installed the Patch Collection twice as described in SAP Note 1558958.
    So I have to wait. I hope my SAP Message will be edited soon.

  • Configure ASE ODBC on Linux

    Hi all,
    We are trying to installed the SAP ASE 16 database on Linux.
    But is it necessary to set ASE ODBC and the ASE ODBC driver manager?
    We are getting an error when we are trying to verify the connection to database..
    By default it is using unixODBC.
    We have already set the database details in the odbc.ini file as well by using the template file.
    But we get the error 'Could not connect to SQL'.
    Do we have to use driver manger to connect ASE ODBC to UnixODBC?
    Attaching the errors :
    version details:

    Try typing in the username and password:
    isql sampledsn sa sybase
    What I used is attached.
    Regards,
    Ryan

  • [Sybase][ODBC Driver]Null ini

    Hi,
    I have issue with connecting to Sybase ASE after upgrading from base IQ 16 to SP03.
    Unable to connect to server 'SYBASE_ASE': [Sybase][ODBC Driver]Null ini
    file or ini file not found in $SYBASE or current directory
    SQLCODE=-656, ODBC 3 State="HY000"
    Valid .odbc.ini file exists in $SYBASE as well as in $HOME or in current directory.
    Does anyone have same issue with SP03?
    Driver used is libsybdrvodb.so which is pointing to Sybase ASE DataAccess64/lib and is properly loaded with LD_LIBRARY_PATH.
    Thanks,

    The IQ SP03 install does not contain any ASE ODBC driver components.  Most likely you have a path conflict.
    When you install, do you use a different $SYBASE home directory for the IQ installation vs. the ASE installation?  If so, check which $SYBASE is in use, as that points to the 'interfaces' file in use.  Your DSN my be using the interfaces name of the ASE and not the host/port.
    i.e. the IQ.sh script in the $SYBASE used by IQ will call the $SYBASE/SYBASE.sh when it runs.  If you install to a different $SYBASE directory for IQ, then this $SYBASE does not contain an interfaces file.
    Correct your paths or copy the interfaces file from the ASE $SYBASE directory to the IQ $SYBASE directory.
    Chris

  • Oracle 10g ODBC driver (ver 10.1.0.2) :  SQLConnect Hangs

    hi,
    We have a Win32 multithreaded app which uses the given 10g driver, but intermittently all the threads hang on SqlConnect.
    After running Adplus the call stack that we get , always point to oranls10. This is the call stack from the last time the server hanged when it tried to do a SQLConnect.The call stack generated by adplus is given below:
    ChildEBP RetAddr Args to Child
    WARNING: Stack unwind information not available. Following frames may be wrong.
    0135f088 612a1833 003ee494 00001399 00000002 ORANLS10!lmsapsc+0x78
    0135f2bc 612a176e 003ee494 00000002 00001399 ORANLS10!lmsagbcmt+0x103
    0135f2f0 612a1722 003ee494 00001399 00000000 ORANLS10!lmsagbcmt+0x3e
    0135f31c 031990f4 003ee494 00001399 00000000 ORANLS10!lmsagbf+0x22
    0135f334 036e0bcf 003ee494 00001399 00000000 oci!lmsagbf+0x24
    0135f360 036bed2f 02675e4c 00000000 00001399 sqora32!SQLTablesW+0x372df
    0135f3b8 036b61c3 02675e4c 0268f418 0267682c sqora32!SQLTablesW+0x1543f
    0135f4f0 036a3b2c 0268f334 02675bcc 00000006 sqora32!SQLTablesW+0xc8d3
    0135f524 4bf8e667 0268f334 0135f65c 00000006 sqora32!SQLConnectW+0xfc
    0135f554 4bf8efed 00000001 0135f65c 00000006 odbc32!SQLInternalConnectW+0xfa
    0135f6a4 4bfa1e5e 00781b28 00782628 00000006 odbc32!SQLConnectW+0x250
    0135f6e0 00397454 00781b28 01d7fffd fffffffd odbc32!SQLConnect+0x140
    01360068 016dc13a 00000005 0136f9d0 0136fa14 libsas!CM_dbopen+0x341
    Since we have been facing this issue for a long time, we decided on making use of the SQL_ATTR_LOGIN_TIMEOUT value before we issue a SQLConnect, but that driver doesn't seem to like that option even though it says its 3.5 compliant
    lRetcode = SQLSetConnectAttr( OD_DBDBC(pCtx),          SQL_ATTR_LOGIN_TIMEOUT,(SQLUINTEGER )10,     SQL_IS_UINTEGER );
    Setup details
    Oracle 10g Release 1 Enterprise database server
    App has been built using VC++6 and is running on Win2003 Enterprise Server
    Our analysis has shows that the network was fine as other apps were able to connect to the database at that time
    Question
    1. Is this a Driver related issue? Because when we were using Merant ODBC driver, everything seems to be working fine!
    2. Is there some patch that is out there which might resolve this issue?
    If you all folks could help or provide some kind of advice , i would really appreciate that.
    regards,
    GG

    Well, do you have a code example that causes it? Don't take this the wrong way, but I've seen more than a few badly written multi-threaded applications which do nothing but corrupt memory and use handles in non-threadsafe ways; all of which cause issues which rear their ugly heads in various odd ways. It may also be an Oracle bug, but comparing two different drivers does not mean it's not your application causing the crash as well.
    If you could provide a quick little code sample which causes the issue, I'll take a look at it for you.

  • ODBC Driver Error

    Using 8i oracle client and NT workstation, and the ODBC Driver is 3.52. After installing the 8i, the client logs in to the WBOE application,
    and the error is cannot load resource file sqresus.dll, but it is residing on his HD?
    Is it a permission problem or sharing or something else?
    HELP PLEASE?
    Thanks,
    Lori
    email is [email protected]

    Kam,
    We recommend that you post your inquiry to the ODBC Discussion Forum- http://forums.oracle.com/forums/forum.jsp?id=763957
    The OTN Suggestions/Feedback Forum answers questions relating to the OTN site and other customer support issues.
    Regards, Marilyn Schmidt

  • ORACLE ODBC Driver & Decimals

    Ok, I think this is a tricky one. One of my programmers has tried to fetch (via oracle's odbc driver) numeric data in a Visual foxpro application. The settings on his PC is codepage 1253 (Greek) and up to now we didnt get any problems regarding greek text going back and forth. But ..(there's always a but)now with numeric values he gets to 'see' the number i.e. 123,45 but once he tries to evaluate or use it in any way the number gets converted into an absolute value i.e. 123 (No rounding, its just like someone chopped the decimal part) Once we change the codepage in the registry into nls_lang into american everything works fine. NPlease understand the difference between this part of the world were the decimal point is a comma and not a dot
    I have already checked the responses on similar questions so heres my query and if anyone knows please guide us.
    Is there a relation between the server language setting and the client? Where should we look for this settings?
    Should the Oracle client language setting be the same as the codepage we are using. If yes what would the equivalent language setting would be for codepage 1253
    Thanking you in advance
    Christos Kyriacou

    1. Identically, best by performance - OO4O.
    2. For programming - no difference, but only OO4O may use some feature's of Oracle.
    In dir: Oracle_HOME\OO4O
    Hello from Russia, [email protected]

  • Excel ODBC Driver

    Hi everyone,
    I've tried looking into the forum as well as Metalink for ideas on how to "install" an ODBC Driver for Excel on a Windows machine so I can integrate my Excel files to Oracle DW thru ODI.
    I have not been able to configure a Data Source thru the ODBC Admin app, even after installing Microsoft Office or OpenOffice.org apps in the machine, I still could not add a Excel data source (i.e. No option available for adding Excel driver-based datasources).
    My question is, is there any available ODBC driver for Excel for 64-bit machines? What can I do to work around this issue?
    For 32-bit machine, is there anywhere I can download an installer file?
    Hoping for a response.
    Thanks,
    Jason

    Hello,
    this is an old error but the solution is quite easy... in the data model related to the excel files your spreadsheet is imported (when you reverse engineering it) inthe format
    XXXXXXX$
    actually there is a problem in the odiRef.getFrom method that is not adding the table name in brackets ("), to avoid this error simply assign the following phisical name to the datastore:
    [XXXXXXXXXX$]
    and your interface will work. If the problem persist maybe is because the problem is with the columns name, you shoudl map them as
    <Table_Alias>."column_name"
    Regards,
    VG

  • After Upgrade OBI 10g to 11g:Odbc driver returned an error - SQLExecDirectW

    Hi all,
    for an OBI upgrade from 10g to 11g I used a RPD and Webcatalog based on a remote machine other than my local machine. Firstable I am making the tests on a Linux Virtual machine, which uses the Sample Lite version from Oracle.
    I made the following steps:
    1. I upgraded the RPD and Webcatalog. It worked without any errors.
    2. I set the static variable BI_EE_HOME via Administration Tool to the path in the Linux machine.
    --> Here I am not sure if the set path is correct. It begins with: \bi\ ...\instances\...\coreapplication_obis1 (... : I can't mention here the whole path name).
    --> When the OBI Server is installed in Windows, the mentioned static variable points to something like 'C:\<install folder>\...\coreapplication_obis1'
    --> Question: is the begin of my set path correct?. I set that pointing to the Linux OBI Server, because the OBI Server is installed on Linux.
    Problem:
    After login as the user in RPD: Administrator/<Password for my upgraded RPD> I can see the links in the Catalog and the Dashboards links. But I can not see any values, any Reports when going through the links.
    For example when trying to see a Dashboard with date 12.02.2011it happens:
    Odbc driver returned an error (SQLExecDirectW).
    Status: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] general error.
    [nQSError: 43113] Message returned from OBIS.
    [nQSError: 43119] Query Failed:
    [nQSError: 17001] Oracle Error code: 12154, message: ORA-12154: TNS:could not resolve the connect identifier specified
    at OCI call OCIServerAttach.
    [nQSError: 17014] Could not connect to Oracle database. (HY000)
    SQL Issued: SELECT "Dimension_-_My Dimension"."MyDimension" saw_0 FROM "Accounting (ACC)" WHERE "Dimension_-_My Dimension"."MyDimension" LIKE 'J%' ORDER BY saw_0
    I think its not retrieving the data from the remote database, because I don't have the data of the remote database in my local. I think the OBI Server still is pointing to the local virtual machine Oracle database.
    Can anybody tell me what happens here and how can I solve this problem?.
    I would appreciate any help....

    Hi gerardnico,
    I've tried many things and did as in your articles, but I don't have success with that.
    These are the things I did:
    1. I searched for the file tnsnames.ora in my Linux virtual machine. I could find it in many paths:
    /.../Oracle_BI1/network/admin/samples/tnsnames.ora
    /.../oracle/xe/app/oracle/product/10.2.0/server/hs/admin/tnsnames.ora.sample
    /.../oracle/xe/app/oracle/product/10.2.0/server/network/admin/tnsnames.ora
    /.../oracle/xe/app/oracle/product/10.2.0/server/network/admin/samples/tnsnames.ora
    /.../oracle/xe/app/oracle/product/10.2.0/server/network/admin/temp/tnsnames.ora
    /.../usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin
    in the last path I found the listener.ora as well.
    2. I took the tnsnames.ora from the last path, because the ORACLE_HOME points to /.../usr/lib/oracle/xe/app/oracle/product/10.2.0/server
    3. I edited the tnsnames.ora this way:
    # tnsnames.ora Network Configuration File:
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = host_of_the_remote_machine)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = database_name_of_the_remote_machine)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = database_SID_of_the_remote_machine)
    (PRESENTATION = RO)
    4. I made a backup of the tnsnames.ora in path /.../Oracle_BI1/network/admin/samples/tnsnames.ora
    and copied the tnsnames.ora from /.../usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin to the Oracle_BI1 path
    5. I set the TNS_ADMIN to /.../usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin
    6. I restarted the BI Server
    No success in what I did. The error is still there.
    7. I've tried also: sqlplus database_user_remote_machine/database_password_remote_machine@database_SID_remote_machine
    I didn't get the connection:
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jun 16 04:36:10 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    Enter user-name: database_user_remote_machine
    Enter password:
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directory
    What am I doing wrong here?. I am still thinking that I need the import of the database.
    Additional SID=Service-Name=Database-name in the remote machine.

  • Microsoft SQL Server ODBC Driver 1.0 for Linux problem

    Hello! I've RedHat Linux 6 Update 1 x64 on VMware Player and MS SQL Server on real machine. My application "servernew" on RedHat. All right, but when i try connect my SQL Server:
    retcode = SQLDriverConnect(hdbc,NULL,string,sizeof(string),buf,sizeof(buf),&StringLength2,SQL_DRIVER_NOPROMPT);
    i get retocde = -1;
    Using SQLGetDiagRec:
    MessageText = Data source name not found, and no default driver specified
    To make my connection i use next attempts for connection string:
    //char constring[200]="Driver={Microsoft Server ODBC Driver 1.0 for Linux};Server=ARTPK2\\SQLEXPRESS2;Database=Kurs;Uid=sa;Pwd=2ef5Fese";
    //char constring[200]="Driver={SQL Server Native Client 11.0};Server=ARTPK2\\SQLEXPRESS2;Database=Kurs;Uid=sa;Pwd=2ef5Fese";
    //char constring[200]="Driver={Microsoft SQL Server ODBC Driver V1.0 for Linux};Server=ARTPK2\\SQLEXPRESS2;Database=Kurs;Uid=sa;Pwd=2ef5Fese";
    //char constring[200]="Driver={/opt/microsoft/sqlncli/lib64/libsqlncli-11.0.so.1790.0};Server=ARTPK2\\SQLEXPRESS2;Database=Kurs;Uid=sa;Pwd=2ef5Fese";
    char constring[200]="DSN={SQL Server Native Client 11.0};Uid=sa;Pwd=2ef5Fese";
    but...Data source name not found, and no default driver specified .. help me

    Ok. New attempts with sqlcmd:
    [root@localhost ~]# sqlcmd -S 192.168.0.3 -U sa -P 2ef5Fese -d first
    SqlState HYT00, Login timeout expired
    A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information
    see SQL Server Books Online.
    TCP Provider: Error code 0x6F
    New error 0x6F (i turned off firewall in windows).
    [root@localhost ~]# sqlcmd -S ARTPK2\\SQLEXPRESS2 -U sa -P 2ef5Fese -d first
    SqlState HYT00, Login timeout expired
    A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information
    see SQL Server Books Online.
    SQL Server Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF].
    It's bad way, but...
    [root@localhost ~]# sqlcmd -D -S ARTPK2\\SQLEXPRESS2 -U sa -P 2ef5Fese -d first
    SqlState IM002, Data source name not found, and no default driver specified
    It's like in my program!!
      retcode = SQLDriverConnect(hdbc,NULL,string,sizeof(string),buf,sizeof     (buf),&StringLength2,SQL_DRIVER_NOPROMPT);
      i get retocde = -1;
      Using SQLGetDiagRec:
      MessageText = Data source name not found, and no default driver specified
    Why "SQLDriverConnect"  is looking for DNS?!

  • I want to check all functions of PCI 6534.I have read the user manual..I have some memory related questions.​Please help me for that.

    I want to check all functions of PCI 6534.I have read the user manual..I have some memory related questions.Please help me for that.
    1.)If i am using the continuous output mode.and the size of generated data is less than 32 MB.If i want to preload the memory,what should i do?I want that first of all i load all my data to onboard memory & then i want to make start the transfer between 6534 & peripheral.Is it possible?As per me it should be.Plz tell me how should i do this?I think that in normal procedure the transfer between 6534-peripheral & outputting data from pc buffer to onboard memory works parallely.But i don't want this.Is it poss
    ible?
    (2).Similarly in finite input operation(pattern I/O) is it possible to preload the memory and then i read it?Because i think that the PC memory will be loaded automatically when 6534 acquires the data and then when we use DIO read vi the pc buffer data will be transferred to application buffer.If this is true,i do not want this.Is it possible?
    (3) One more question is there if i am using normal operation onboard memory will be used bydefault right?Now if i want to use DMA and if i have data of 512 bytes to acquire.How will it work and how should i do it?Please tell me the sequence of operations.As per my knowledge in normal DMA operation we have 32 Bytes FIFO is there so after acquisition of 32 bytes only i can read it.How it will known to me that 32 bytes acquisition is complete?Next,If i want to acquire each byte separately using DMA interrupts what should i do?Provide me the name of sourse from which i can get details about onboard memory & DMA process of 6534 specifically
    (4).In 6534 pattern Input mode,if i want to but only 10 bits of data.and i don't want to waste any data line what should i do?

    Hi Vishal,
    I'll try to answer your questions as best I can.
    1) It is definitely possible to preload data to the 32MB memory (per group) and start the acquisition after you have preloaded the memory. There are example programs on ni.com/support under Example Code for pattern generation and the 6534 that demonstrate which functions to use for this. Also, if your PC memory buffer is less than 32MB, it will automatically be loaded to the card. If you are in continuous mode however, you can choose to loop using the on-board memory or you can constantly be reading the PC memory buffer as you update it with your application environment.
    2) Yes, your data will automatically be loaded into the card's onboard memory. It will however be transferred as quickly as possible to the DMA FIFO on the card and then transferred to the PC memory buffer through DMA. It is not going to wait until the whole onboard memory is filled before it transfers. It will transfer throughout the acquisition process.
    3) Vishal, searching the example programs will give you many of the details of programming this type of application. I don't know you application software so I can't give you the exact functions but it is easiest to look at the examples on the net (or the shipping examples with your software). Now if you are acquiring 512 bytes of data, you will start to fill your onboard memory and at the same time, data will be sent to the DMA FIFO. When the FIFO is ready to send data to the PC memory buffer, it will (the exact algorithm is dependent on many things regarding how large the DMA packet is etc.).
    4) If I understand you correctly, you want to know if you waste the other 6 bits if you only need to acquire on 10 lines. The answer to this is Yes. Although you are only acquiring 10 bits, it is acquired as a complete word (16bits) and packed and sent using DMA. You application software (NI-DAQ driver) will filter out the last 6 bits of non-data.
    Hope that answers your questions. Once again, the example code on the NI site is a great place to start this type of project. Have a good day.
    Ron

  • Oracle ODBC Driver 8.1.7.8b causing MFC OpenEx() delay

    Hi:
    I have installed the Oracle ODBC Driver version 8.1.7.8b on a WINNT 4.0 Workstation with SP6a. I have an MFC test app with the following code:
    PostStatus(ERROR_NOERROR, APP_NAME, "Calling OpenEx()");
    CDatabase db;
    if(db.OpenEx(_T("DSN=MYTESTDSN;UID=USERID;PWD=PASSWORD"), CDatabase::openReadOnly|CDatabase::noOdbcDialog))
         PostStatus(ERROR_NOERROR, APP_NAME, "OpenEx() success,calling Close()");
         db.Close();
    } // OpenEx()
    else // OpenEx() error
         PostStatus(ERROR_MODERATE, APP_NAME, "Error opening database,OpenEx() failed!");
    The above OpenEx call is taking upto 3 seconds to return. When I use Microsoft Oracle ODBC driver, it takes less than 0.5 sec to connect/disconnect.
    Any idea why OpenEx() is taking that long? I've compiled this using VC++ 6.0 SP5, on a WIN2K and WINNT system but I get the same result.
    Thanks,
    Amit.

    This forum is for feedback about the OTN program and problems with OTN accounts. Technical questions cannot be answered here. Please post your question in the appropriate product or technology forum. http://forums.oracle.com/forums/index.jsp?cat=48

  • [Fwd: Creating an ODBC Driver with Forte]

    Has anyone created an ODBC driver with Forte? The Microsoft ODBC
    Software Development Kit (SDK) assumes that ODBC drivers will be
    developed in C. I would like to write the driver in Forte TOOL. Even
    though C++ code can be generated from TOOL code, I am not certain that
    the generated C++ code will conform to the ODBC API, and be compatible
    with other ODBC components, such as the ODBC Driver Manager, ODBC
    Installer, and ODBC Test applications supplied by Microsoft with the
    ODBC SDK. Any advice would be appreciated. (The purpose of my ODBC
    driver is to enable data access by any ODBC client application, using
    calls to Forte service objects to retrieve and process the data before
    it is sent to the client application.)
    Chris Johnson
    Unified Information, Inc.
    425-814-4007
    MailTo:[email protected]

    The following is extracted from Oralce's Metalink: (sorry lost the link)
    "This is an NLS related issue. The ODBC driver uses the values derived from the NLS_LANG setting from the Oracle Home where the driver is installed.
    The application actually uses the number setting from the NT Regional Settings.
    When these two settings differ, then the decimal character will be cut off. This behaviour is also described in Bug:694323.
    Example:
    You have set your NLS_LANG in the ORACLE_HOME of your ODBC driver to GERMAN_GERMANY.WE8ISO8859P1. This will result in a value for the NLS_NUMERIC_CHARACTERS of ",." (the first part of the NLS_NUMERIC_CHARACTERS being the decimal character and the second part being the group separator).
    So the "." is used by the Application and the "," is used by the Oracle ODBC driver.
    As a result numeric values in your Oracle Database with an integer and a decimal part will thus be displayed by the application without the decimal character, i.e. a value of 10,734 will be displayed as 10734 a value of 0,123 will be displayed as 123.
    To fix this, you will either have to correct the character used for the Decimal Symbol of your NT Regional settings to match the value of your Oracle NLS_LANG setting or vice versa. To change the value for NLS_LANG, go to your registry and change the NLS_LANG parameter that is situated under HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE/HOMEnnn/NLS_LANG where HOMEnnn is the home where your Oracle ODBC driver is installed."
    Hope this helps, resolved our issue with this problem.

  • Installing the Oracle ODBC driver

    Is there any way to wrap only the oracle odbc driver in an
    install program?
    we want to avoid having to go through an entire oracle client
    install.
    Any help would be much apprecitaed.
    null

    Radha (guest) wrote:
    : Is there any way to wrap only the oracle odbc driver in an
    : install program?
    : we want to avoid having to go through an entire oracle client
    : install.
    : Any help would be much apprecitaed.
    I have the same question. The universal installer is too
    complicated for simple client application connectivity
    installation.
    null

  • What means Rdb in "Oracle ODBC Driver for Rdb" ...

    ... I assume data basse but what about the upper R ? ^^
    thanks

    oh ok thanks, for OpenVMS platforms only and R as "relational" oki doki
    I'm surprise that, when I'm looking for the oracle odbc driver 8, I find almost only result for Rdb, is it not compatible with a windows standard edition as 2000, xp ...

Maybe you are looking for

  • How do I set up my air print

    How do I set up my printer do I need a separate app

  • ITunes version 6.0.3 trouble

    I just downloaded the updated version of iTunes (6.0.3) to my computer and it doesn't seem to work. I am running Windows XP software and I just get an hourglass that briefly pops up and then nothing happens. Any thoughts on what could be causing this

  • Valuation classes

    How the material is valuated thru in VALUATION CLASSES.(GIVE THE EXAMPLES WITH EXPLNATIONS)

  • Help needed on update rules Coding

    Hi BW Gurus. Please help me out. I am working on BI 7.0 This is my scenario.I need to take a project cost report. There are some projects in cProjects and some projects in R/3 (Project System). Each project in cProjects is linked with one or more pro

  • How to Import Standard (client specific) infosets from one Quality to Prod

    Hello Experts, Is there a way to Import Standard (client specific) infosets from Quality to Prod system without creating a transport request? (No TR is created on Quality system when changing the standard infoset) Kindly show me the steps.. Points wi