HS ODBC connection to unidata SQL translation

Experts please help.
I successfully created a db link to unidata using HS ODBC. When I execute SQL for example "SELECT NAME FROM CUSTOMER@unidata", Oracle translates the SQL as "SELECT NAME AS C000 FROM CUSTOMER@unidata".
The issue is, unidata ODBC does not recoginize "as" keyword. So I am getting a syntax error. Is there a way or a parameter I can set to disable the "as" keyword during the SQL translation ?

I have not worked on HS ODBC but you can try providing the alias yourself (if possible).
SELECT NAME NAME FROM CUSTOMER@unidata;
Does this work?

Similar Messages

  • Visio Database Wizard fails - ODBC connection to MS SQL

    When I try to create an ODBC connection in Visio's 2010's Database wizard I get the error: "Cannot set the database context information. Additional error information:ODBC Error: s1009. Database cxweba does not exist."
    Note that the database name is cxwebapp_bkk. I get the same error if I connect to any database on that server, and it always truncates the name in the error message (if that is a hint to the error). 
    Using Visio 2013, after connecting to the database: when I select the database object I get the error message:  "The selected table has only one field or contains no definition information. The Database Wizard requires a minimum of one key field
    and one additional data field."
    I have this problem using both SQL Server driver (6.02.9200.116384 and SQL Server Native Client 11.0 (2011.1102.2100.60).
    I do not have this problem connecting to a MYSQL database with either version of Visio, nor do I have this problem when I link link to the same SQL database in a drawing and link shapes in that drawing using the "Link Data to Shapes" under the
    Data tab.

    Hello,
    What's the version of the SQL Server instance you connect to? It seems that the Database Wizard in Visio 2010 not work well with the Microsoft SQL Server ODBC driver. Did you try to use the Generic OLEDB Provider for SQL Server?
    Since the issue is more related to office Visio, please post the question in the following forum. More experts there will assist you:
    Visio General Questions and Answers for IT Professionals
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • ODBC Connection problem with SQL Native Client driver with CR 11

    I am having an issue connecting my crystal reports to an ODBC connection that uses the SQL Native Client driver (Version 2005.90.2047.00).  My reports work fine when using the SQL Server driver (Version 2000.85.3006.00).   The ODBC connection is setup to use Integrated Windows Authentication and is defaulted to go to the correct database.  When I test the ODBC connection in the 'ODBC Data Source Adminstrator' it connects fine.
    The reports are trying to connect to stored procedures on a SQL Server 2005 database.  I can log onto the ODBC connection in CR X1.  When I try to set the Datasource connection for one of my reports to the ODBC connection I created, I get the following error:
    'Some tables could not be replaced, as no match was found in the new data source.  Please specify the table required for any unmodified tables.'
    When I drill down to the SP and try to update the datasource location of the SP directly I get the following errors:
    'Data Object cannot be opened/accessed'
    and
    'Unknown Database Connector Error'
    As I said, I don't have any problems when using the SQL Server 2000 driver.  One other thing to mention, when I initially connect to the ODBC connection in CR X1 with the SQL Native Client driver, it asks for a username and password.  I leave these blank since I'm using Windows Authentication.
    Any advice would be appreciated.
    System:
    Windows XP
    Service Pack 3
    Crystal Reports XI:
    Product Version 11.0.0.1282

    Hi Jeff,
    I just tried to create a new report using the native driver and there is no option to use Trusted Authentication. This would be why it's failing.
    I don't believe we fully supported Native driver in Cr XI. Try downloading CR Xi R2 and install SP6 from this info:
    Go to this link: http://www.sdn.sap.com/irj/boc and download the trial version of CR XI R2 and use your XI keycode, then apply the patches which you can get to by clicking on the BusinessObjects tab above, then Downloads.
    Direct link to the Trial version: http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx
    I tested it in R2 and the Trusted Authentication option is there so your reports should work.
    Thank you
    Don

  • SQL 2000 ODBC CONNECTION STRING FOR SQL 2008

    i have vb 6 application. Database is SQL server 2000.
    my connection string is (using odbc driver),
            .ConnectionString = "Driver={SQL Server};SERVER=" & mServer & ";DATABASE=mydb;UID=" & mLogin.Username & ";pwd=" & mLogin.Password & ";"
    Now i have tried this application with SQL server express 2008 R2
    Can i still keep the old connection string? will there be any problem in future?
    (if i have to change then have to change at so many places.....)
    I can run application without any problem for now (not changed connection string to new one)
    otherwise i have to use ODBC or OLEDB which are,
            .ConnectionString = "Driver={SQL Server Native Client 10.0};SERVER=" & mServer & ";DATABASE=mydb;UID=" & mLogin.Username & ";pwd=" & mLogin.Password & ";"
    or
            .ConnectionString = "Provider=SQLNCLI10;SERVER=" & mServer & ";DATABASE=mydb;UID=" & mLogin.Username & ";pwd=" & mLogin.Password & ";"
    if i have to change to new connection string Which one is better to use odbc or oledb.
    h2007

    personally I favor ODBC as it is easy to use sometime. Additionally you can check the link below:
    http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/19e0c306-0be4-46b5-b207-0937931d63a7 
    cheers!!!
    Vatsa
    www.objectiveprogramming.com

  • Linux 5 64 bit ODBC connectivity with MS SQL Server

    Dear All,
    Env.
    Oracle EBS R12 – DB 10gR2 64bit on Redhat linux 5.4 64bit
    We want to connect OracleDB10gR2 64bit to MS sql Server 2000 on Windows 2003.
    Is there any ODBC driver is available for Linux 64 bit
    Regards

    You need to create linked server in sql server 2000 Instance to connect to Oracle Database.
    Have a look at the following note
    http://support.microsoft.com/kb/280106
    It did worked for me before, when i connected sql server 2005 to connect to oracle 9.2.0.1
    The document should be helpful for you.......

  • JDBC-ODBC connection to MS SQL Server

    Hi All,
    I am new to Java. I want to connect from my JSP page to a remote MS SQL Server. So please tell me where i can find the suitable driver(MS SQL and not SQL Server 2000. I think SQL Server 2000 driver is not compatible with MS SQL Server). It would be of great help if you can give a sample code as well to connect to the database. Thanks.

    sample:
    <%@�@page�@import="java.lang.*,�@java.io.*,�@java.sql.*,�@java.util.*"�@contentType="text/html;charset=gb2312"�@%>
    �@�@<html>
    �@�@<body>
    �@�@<%�@Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
    �@�@�@String�@url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=pubs";
    �@�@�@//pubs�@is your database
    �@�@�@String�@user="sa";
    �@�@�@String�@password="admin";
    �@�@�@Connection�@conn=�@DriverManager.getConnection(url,user,password);
    �@�@�@Statement�@stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
    �@�@�@String�@sql="select�@emp_id,fname�@from�@employee";
    �@�@�@ResultSet�@rs=stmt.executeQuery(sql);
    �@�@�@while(rs.next())�@{�@%>
    �@�@�@�@your first field�F<%=rs.getString(1)%><br>
    �@�@�@�@your second field�F<%=rs.getString(2)%><br>
    �@�@<%�@}�@%>
    �@�@<%�@out.print("congratulations, database operation succeded!");�@%>
    �@�@<%�@rs.close();
    �@�@�@stmt.close();
    �@�@�@conn.close();
    �@�@%>
    �@�@</body>
    �@�@</html>

  • Can a SQL view see data from an ODBC connection?

    Hi.  I currently have an application that pulls data from a custom SQL view in my SQL database.  This custom application can not be changed, so it expects to see the data exactly as presented by my custom SQL view.  This works fine
    when the data resides in SQL, but I am not sure if it is possible when the data resides outside of SQL.  I’d like to connect to another type of database via an ODBC connection from my SQL database, and still utilize my custom SQL view.  I would prefer to NOT
    use the SQL database as a warehouse, and simply use it to pass data.
    Is this possible?   Thank you for reading.

    Hi Robet,
    According to your description, you want to create view in SQL Server to pass data from OBDC database to custom application, right?
    In this case, we can create linked server to access an ODBC database when you are using an ODBC data source. Linked servers can use the OLE DB Provider for ODBC without using an ODBC data source. You can refer to the link below to see the details.
    http://technet.microsoft.com/en-us/library/ms191462(v=sql.105).aspx
    Regards,
    Charlie Liao
    TechNet Community Support

  • Can OBIEE 10G connect to a SQL Server database (2005)?

    We have Oracle BI running already. We have also a SQL Server database running. Now there is requirement that asks to connect to the SQL Server and directly send some SQL quires to the SQL Server and get result back and display it in answers. I know the normal process should be set ETL to load the data from the SQL Server to OBIEE and from there the report can be built. So I am not sure is this doable?

    Hi Srini,
    These is the steps I have done:
    1. open Oracle BI administration tool
    2. create a new repository
    3. select import from database, and specify the ODBC (connection to the SQL Server). It asked me to choose tables to import. I then selected one table. Now I can see the connection pool and the table being created in physical. I saved it.
    4. I then goes to BI interactive dashboard -> answers-> Direct Database Request. In the connection pool I entered the name of the connection pool in step 3. And entered some simple query and I got:
    error : Odbc driver returned an error (SQLExecDirectW).
    error : State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27022] Unresolved Connection Pool object: "asepostest_pool". (HY000)
    error : SQL Issued: {call NQSGetQueryColumnInfo('EXECUTE PHYSICAL CONNECTION POOL asepostest_pool select * from branch')}
    Should I modify NQSConfig.INI in C:\OracleBI\server\Config\ to make it point to my new repository? Like this?
    Star
    =
    asepostest1.rpd, DEFAULT;
    But then I couldn't restart BI server.

  • Automated ODBC Connection URGENT!!

    Hi guys, how do i set up an ODBC data source for an sql server on a client machine using a batch file? (I do not want to go into the control panel and set it up manually). Makes my job very tedious..:-)
    I have written a java application that used JDBC:ODBC connection to a sql server database and everytime i install it on a clients machine, i have to set up the datasource myself. Installing JRE and setting up the paths is already a headache so please help me ASAP.
    Thanks,
    -Raam

    Look at this thread:
    http://forum.java.sun.com/thread.jsp?forum=48&thread=89806
    I found this by typing "DSN-less" into the search box. - MOD

  • ODBC connectivity to SQL-Server fails

    Oracle 11.2.0.2 on Enterprise Linux Enterprise Linux Server release 5.4 (Carthage).
    Using FreeTDS unixODBC Driver to connect to a MS SQL-Server 2008 R2 SP1database. (RPM package freetds-0.64-1.el5.rf.x86_64 reported by yum whatprovides for ODBC FreeTDS .so).
    ODBC isql connectivity works and SQL select Col1 from Schema.Table is successfully executed against DSN, and returns rows/data (not real names).
    Same SQL in Oracle, select "Col1" from "Schema"."Table"@dblink fails (using the same ODBC DSN as isql test cor connectivity), via sqlplus.
    Debug trace (HS_FDS_TRACE_LEVEL=debug) reports:
    Exiting hgopars, rc=28500 at 2013/06/19-14:12:08 with error ptr FILE:hgopars.c LINE:570 FUNCTION:hgopars() ID:SELECT list of size 0 is not valid
    Have enabled/disabled numerous combinations of odbc.ini and init.ora parameters such QuotedId,  HS_FDS_SQLLEN_INTERPRETATION, HS_FDS_SUPPORT_STATISTICS and so on. Also tried using DBMS_HS_PASSTHROUGH, instead of native SQL via sqlplus. Same error, consistently.
    Interestingly, the desc "Schema"."Table"@dblink call works fine in sqlplus - but according to the debug trace it lets the ODBC driver deal with it - it does not craft a SQL and pass this to the ODBC driver, according to the debug trace. Instead an ODBC interface call is used to describe the object.
    So, ODBC driver seems  perfectly fine. Oracle can successfully use it as the desc command proved. Except that SQL statements (from Oracle) via the driver fails.
    Any ideas as to what the problem can be?

    Yes, thanks Mike.
    Ran into a brick wall troubleshooting, have developers and project managers doing what seems to be an ugly dance (think that is what they are doing with the up and down jumping movements).
    With no responses to my posting here, and my dislike of bad dancing, went the SR route instead.
    Appreciate you looking at the posting though. Makes me feel less alone in a world of bad dancers...

  • ODBC--connection to 'SQL Serverservername' failed for one user but not another

    In Win7, we're linking tables in an MS Access 2010 db to tables in a SQL Server 2008 R2 db. The driver user by the File dsn is SQL Server version 6.01.7601.17514 & we're using SQL Server Authentication.
    For some reason, one user gets the msg "ODBC--connection to 'SQL Serverservername' failed" before they're even asked for a password, but for other users, the prompt comes up and when they uncheck the Windows Auth box, they enter their password
    and connect successfully to the SQL Server db.  Both users have db_datareader access to the SQL Server db.
    I had the user that gets the error msg log onto my PC and they get the same error (yet it works for me.)
    This user was, however, able to successfully relink the tables, but then when we closed the access db and opened it again, the user got the "ODBC--connection..." error agin.
    I'm stumped as to why this is happening for one user.

    Hello Knellen,
    Please help to collect more log information regarding this issue, such as windows event log, SQL Sever log information. They are helpful for us to troubleshoot it.
    Regards,
    Elvis Long
    TechNet Community Support

  • What's a better connection to an SQL database? ODBC or OLE DB

    NEw user here, but what would be a preferred way of connecting to my SQL database?  So far I have option of using ODBC (RDO) connection or OLE DB(ADO) connection. I'm not sure what the differences or when to use one or the other.
    Thanks

    I like OLE DB for the simply because it's "portable". With OLE DB the connection info is stored in the report. With ODBC, the report is using a system dsn connection. It means that if you want to send it to another user / computer, you also have to make sure the other computer has the same ODBC connection.
    In terms of performance... I've used both and have never seen a difference.
    Jason

  • Creating ODBC Connections to SQL Server

    I have posted a Question to two Forums about a problem I'm having connecting to SQL Server using an ODBC Connection.  Suddenly we can connect using on the IP Address of the virtual server not its name.  So we can connect using 192.168.16.122\GEMSQLSRVR
    but not GEM-SERVER\GEMSQLSRVR.  Where should I be asking the question?

    Seems you have a name resolution problem. You could try them here for SQL
    SQL Server Data Access forum on MSDN
    or depending on you OS
    Windows 7 / 8.1 IT Pro forums on TechNet
     Windows Server General forum on TechNet
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • How to share and Access DB (.accdb) with global tables that link to SQL Server tables without having to define ODBC connections on each client PC?

    I have an Access DB with quite a few Linked Tables that point to a SQL Server backend db.  Currently I am using an ODBC connection defined on my pc, but I want other users to be able to download the .accdb file from a share and run.  Will I have
    to define this odbc connection on each client's pc?  Is there a better way to do this without having to have each client manually set this up on their PC?

    I have an Access DB with quite a few Linked Tables that point to a SQL Server backend db.  Currently I am using an ODBC connection defined on my pc, but I want other users to be able to download the .accdb file from a share and run.  Will
    I have to define this odbc connection on each client's pc?  Is there a better way to do this without having to have each client manually set this up on their PC?
    Hi Jason,
    I think you can automate that process. In each application I use a one-record-table in the FE with a field Connected. Connected is default False.
    Starting a database in the development mode ignores this flag. Starting a database in production mode starts, if Not Connected, a procedure to RefreshLink the tables to the BE, and makes Connected = TRUE, so a next startup does not
    result in a new RefreshLink.
    Instead of a Boolean you could also use a string containing the path, or whatever you want.
    Imb.

  • Data services on Linux to MS SQL ODBC connection

    We have DS 4.1 SP2 running on Linux and trying to connect to MS SQL database via odbc. The admin guide tells you to modify the ds_odbc.ini file with an entry like this:
    [test_Microsoft_SQL_SERVER]
    Driver = <install_location>/lib/libodbc.so
    RebrandedLib = TRUE
    where install location is location of datadirect ODBC driver. But the problem is there is no libodbc.so in this library. There is a libodc.a file there instead.
    Secondly, it also tells us to modify the file referenced by $ODBCINI with the following entry. In my case, ODBCINI also references to ds_odbc.ini under /dataservices/bin folder !!. Also, below it tells you to enter the /lib/DAmsssxx.so file location. But there is no such file under datadirect/lib folder. There is a DAsql25.so instead.
    [test_Microsoft_SQL_SERVER]
    Driver=<install_location>/lib/[DA][DD]msssxx.so
    Description=DataDirect <current version number> SQL Server Wire Protocol
    AlternateServers=
    AnsiNPW=Yes
    ConnectionRetryCount=0
    ConnectionRetryDelay=3
    Database=<database_name>
    EnableQuotedIdentifiers=1
    HostName=<SQL_Server_host>
    LoadBalancing=0
    LogonID=
    Password=
    PortNumber=<SQL_Server_server_port>
    QuotedId=No
    ReportCodePageConversionErrors=0
    DriverExpirationBehavior=1
    What should I do ? which file do I need to modify exactly and with which library ?? I don't have to modify the odbc.ini file at all ??
    Do I need to install the Data direct drivers first ?? if so, how ?
    Thanks
    BV

    Hi,
    ODBC connectivity from your machine will not help as the connectivity to SQL Server will be established from the job server.
    On the connectivity test, can you please check with your Linux admin. You can also refer to the following link for some details.
    Links:
    http://www.easysoft.com/developer/interfaces/odbc/linux.html
    https://wiki.archlinux.org/index.php/Odbc
    Can you please check the following link. this is specific to ODBC connectivity for Linux based job server.
    Links:
    http://wiki.sdn.sap.com/wiki/display/EIM/ODBC+connections+from+a+Linux+%28or+UNIX%29+jobserver
    The below is for SQL server based connectivity from Linux.
    Links:
    http://wiki.sdn.sap.com/wiki/display/EIM/To+configure+DataDirect+ODBC+on+Linux+and+Unix
    Or Please refer below thread
    Link:
    Data Services 4.0 connectivity to SQL Server 2005
    Thanks,
    Daya

Maybe you are looking for

  • I cant buy anything from the app store.

    I CANT BUY ANYTHING FROM THE APP  STORE. I HAVE TRYED MULTIBLE TIME AND I JUST GET THIS MESSAGE SAYING THAT MY CREDIT CARD INFO NEED TO BE UPDATED. IV UPDATED MY INFO 5 TIME NOW AND IT HASENT CHANGE A THING. THE SAME MESSAGE COME UP EVERY TIME. IV CA

  • Can you run two songs at once? One to write and one to record?

    I have dozens of midi objects, cable routings for writing and now have added dozens of audio tracks and inputs for recording my external and internal synths. (24 tracks in realtime one pass. Not bouncing but tracking. Its so cool.) PROBLEM: As I impr

  • Email attachment to be saved to a mail or mac folder?

    Why can't we have a simple rule that allows email attachment to be saved to a mail or mac folder?  This was a simple rule in outlook and the real true feature I miss about Outlook.  I know people will say apple scripts but I am not a coder and the op

  • Balance issues

    I just discovered that when i plug in my headphones, or connect my iPod to my stereo using the headphone jack, the channels are not balanced, one side is much louder then the other. When I plug in my iPod to my roadtrip, or my altec lansing speakers,

  • Toolbar Application

    I'm trying to remove The Procrastinate toolbar I installed from the Safari Extensions gallery. I went to applications and looked for a toolbars app, since everything I've read has said that how you get rid of a toolbar. I have no toolbar app. I've lo