Connection String for Netezza OLE DB by pyodbc.connect() - python-2.7

I have tried the following connection string with pyodbc.connect()
DRIVER={NZOLEDB};SERVER=myserver;PORT=xxxx;DATABASE=mydatabase;UID=myUID;PWD=mypassword;
But the following error message keeps coming up:
Error: ('IM002', '[IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (0) (SQLDriverConnect)')
What should the correct connection string be written?

Related

Unable to refresh Power BI data connected to Databricks due to ODBC error

My Power BI dashboard is connected in Databricks.
When I try to update it, this error appears:
The error
Erro on OLE DB or ODBC : [DataSource.Error] ERROR [HY000] [Microsoft][Hardy] (35) Error from server: error code: '0' error message: 'Unable to continue fetch after reconnect. Retry limit exceeded.'..
I believe that it has some relation with ODBC.
Can anyone help me, please?
Thanks in advance.

Informatica powercenter power exchange PWX-00267 DBAPI error

I am executing a workflow in informatica which is supposed to inset values in a target file.
Some of the records are getting inserted but i get an error after a few insertions saying:
[Informatica][ODBC PWX Driver] PWX-00267 DBAPI error for file……… Write error on record 119775 Requested 370 SQLSTATE [08S01]
Is this because of file constraints of how the record can be or due to some other reasons?
I'm not sure if this is exactly the case, but looking for the error code 08S01 I've found this site that lists Data Provider Error Codes. Under SQLCODE 370 (assuming this is what your error message indicates) I've found:
Message: There are insufficient resources on the target system to
complete the command. Contact your server administrator.
Reason: The resource limits reached reply message indicates that the
server could not be completed due to insufficient server resources
(e.g. memory, lock, buffer).
Action: Verify the connection and command parameters, and then
re-attempt the connection and command request. Review a client network
trace to determine if the server returned a SQL communications area
reply data (SQLCARD) with an optional reason code or other optional
diagnostic information.

Informatica Error during SQL server table load

I am new to Informatica and I am getting the below error while running a simple DB to DB table load using Informatica.
Message Code: WRT_8229
Message: Database errors occurred:
FnName: Execute -- [Informatica][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Incorrect syntax near '$'.
FnName: Execute -- [Informatica][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Statement(s) could not be prepared.
FnName: Execute -- [Microsoft][ODBC Driver Manager] Function sequence error
I am not using any parameter in the mapping and I do not understand why I am getting that:
'Incorrect syntax near '$'' error.
I have another mapping that loads the same table, but that is working without any issues.
This error can occur when the target table contains a column name with a space or special character. For your case it seems its $. Now, you need to add QuotedId=Yes to your odbc.ini file for target connection entry. Check if you are using same connection as the mapping that works. If not, you need to append below parameter to your connection.
open .odbc.ini. This exists in $ODBC_INI location.
append below entry and save it.
[TGT_CONN]
...
QuotedId=Yes
Explanation - QuotedID parameter determines whether the driver uses quoted identifiers while writing/reading. So Infa should use sql like SELECT "abc_$" from "table"

SAS libname odbc prompt not prompting

I am trying to write a libname statement in SAS Enterprise Guide to refer to an existing ODBC connection to a SQL database. This program is shared with others, so coding my user name and password in it is not an option. Ideally I would like to the program to prompt me for a user name and password, but I can't get it to work. Here is what I have tried:
Works (but is not acceptable):
libname libref odbc dsn=DSN_Name uid=User_Name pwd=My_Password;
(where "libref", "DSN_Name", "User_Name", and "My_Password" are my actual values)
Does not work:
a) libname libref odbc dsn=DSN_Name;
result: ERROR: CLI error trying to establish connection: [Microsoft][SQL Server Native Client 11.0][SQL Server]Login failed for user ''.
ERROR: Error in the LIBNAME statement.
b) libname libref odbc dsn=DSN_Name prompt=yes;
result: ERROR: CLI error trying to establish connection: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver
specified : [Microsoft][ODBC Driver Manager] Invalid connection string attribute
ERROR: Error in the LIBNAME statement.
c) libname libref odbc prompt=yes;
result: ERROR: CLI error trying to establish connection: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver
specified : [Microsoft][ODBC Driver Manager] Invalid connection string attribute
ERROR: Error in the LIBNAME statement.
plus a bunch of other such combos. I feel like I am missing something, but what? Are there other options which don't involve me writing my password in and inevitably forgetting to delete it? Thank you!

Could not write message to OutputStream: com.ctc.wstx.exc.WstxIOException: Connection timed out

I am getting this error when we move our database to new server. The application at the new server and the database at older server runs fine. But when we move the database to new server the server log shows this error.
Below is the server log. We are using jboss-5.1.0.GA.
2013-02-22 01:02:31,336 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/]] (main) StandardWrapper.Throwable
org.springframework.ws.soap.saaj.SaajSoapMessageException: Could not write message to OutputStream: com.ctc.wstx.exc.WstxIOException: Connection timed out: connect; nested exception is javax.xml.soap.SOAPException: com.ctc.wstx.exc.WstxIOException: Connection timed out: connect
at org.springframework.ws.soap.saaj.SaajSoapMessage.writeTo(SaajSoapMessage.java:169)