MSDOTnet.org Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The driver doesn't support the version of ODBC behavior that

 
Post new topic   Reply to topic    MSDOTnet.org Forum Index -> ODBC Dotnet
Author Message
sudhaoncyberworld



Joined: 08 Aug 2007
Posts: 2

PostPosted: Mon Jul 16, 2007 8:25 am    Post subject: The driver doesn't support the version of ODBC behavior that Reply with quote

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, and
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

Archived from group: microsoft>public>dotnet>framework>odbcnet
Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
The driver doesn't support the version of ODBC behavior that 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 = ODBC for using (OdbcCo

ODBC driver Hi, I'd like to write my own ODBC driver for handling relational data from txt files. And I'm just wondering is it possible to do it without implementing all ODBC interface, specially without SQL engine. Can I use some .NET engine as an additional layer A

Need ODBC driver for Clipper Hi, Looking for ODBC driver for clipper which can create correct DBF&CDX file for old clipper application. -- Thanks, Maxim Kazitov

ODBC Driver for Pervasive Does anyone know if a ODBC driver for Pervasive SQL is available for .NET? Thanks

ODBC Driver CSV parsing question Hi, All I am trying to parse CSV file using ODBC Text Driver I am also interested in Column Data types. I know ODBC driver is able to resolve DataTypes, but... when the 1-st row contains Column Headers it fails ((. I use the following schema.ini [file.csv
Post new topic   Reply to topic    MSDOTnet.org Forum Index -> ODBC Dotnet All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group