PC Review


Reply
Thread Tools Rate Thread

The driver doesn't support the version of ODBC behavior that the application requested (see SQLSetEnvAttr).

 
 
sudhaoncyberworld@gmail.com
Guest
Posts: n/a
 
      16th Jul 2007
Dear Techies,

I do have small issue on connecting oracle server [odbc connection]
from .net [MOSS 2007 webpart]


This is the code snippet


public string strConString = "Driver={Microsoft ODBC for
Oracle};Server=myserver;Uid=system;Pwd=mypwd;";


using (OdbcConnection odbcCon = new OdbcConnection(strConString))
{
odbcCon.Open();
strOrclCmd = " select * from customers";
OdbcDataAdapter odbcDA = new
OdbcDataAdapter(strOrclCmd, odbcCon);
DataSet ds = new DataSet();
odbcDA.Fill(ds);
return ds;



}


The above which is perfectly working fine with a console application.

The same code I have used in
System.Web.UI.WebControls.WebParts.WebPart which throws the below
exception....


System.Data.Odbc.OdbcException: ERROR [NA000] [Microsoft][ODBC driver
for Oracle][Oracle]ORA-12638: Credential retrieval failed
ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's
SQLSetConnectAttr failed
ERROR [01000] [Microsoft][ODBC Driver Manager] The driver doesn't
support the version of ODBC behavior that the application requested
(see SQLSetEnvAttr).
at System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle
hrHandle,
RetCode retcode)
at System.Data.Odbc.OdbcConnectionHandle..ctor(OdbcConnection
connection, OdbcConnectionString constr, OdbcEnvironmentHandle
environmentHandle)
at
System.Data.Odbc.OdbcConnectionFactory.CreateConnection(DbConnectionOptions
options, Object poolGroupProviderInfo, DbConnectionPool pool,
DbConnection owningObject)
at
System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbCo*
nnection
owningConnection, DbConnectionPoolGroup poolGroup)
at
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection
owningConnection)
at
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection
outerConnection, DbConnectionFactory connectionFactory)
at System.Data.Odbc.OdbcConnection.Open()
at DMPDBLayer.Customer.GetCustomers()


When I deploy the wep part in the sharepoint site through GAC,
accessing site
throws the above error. Can anyone figure out which/where is going
wrong?


Working Environment
Windows server 2003
VS 2005
Framework 3.0 & 2.0
MOSS 2007

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Driver doesn't support the version of ODBC behaviour amaleenabasri@gmail.com Microsoft Excel Misc 0 7th May 2008 08:17 AM
The driver doesn't support the version of ODBC behavior that the application requested (see SQLSetEnvAttr). sudhaoncyberworld@gmail.com Microsoft Dot NET 0 16th Jul 2007 12:30 PM
The driver doesn't support the version of ODBC behavior that the application requested (see SQLSetEnvAttr). sudhaoncyberworld@gmail.com Microsoft Dot NET 0 16th Jul 2007 07:27 AM
Fax server API version does not support the requested operation =?Utf-8?B?U3R1YXJ0?= Windows XP Print / Fax 1 4th Mar 2005 05:05 AM
ODBC driver does not support the requested properties =?Utf-8?B?TWFyYyBPbGl2aWVyIEdveWV0dGU=?= Microsoft Excel Programming 2 8th Apr 2004 09:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:35 AM.