Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
| Search | Today's Posts | Mark Forums Read
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 2nd, 2004, 05:10 PM
Authorized User
 
Join Date: Nov 2003
Location: , , Mexico.
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Driver's SQLSetConnectAttr failed

Hi

I'm trying to connect to SyBase 12.5 using ODBC, in this case I need to use two connections and I have a string with this value:

    string myODBC = "DSN=myodbc;Uid=myuser;pwd=mypass"

And I use it, to establish both connections

When I connect for the first time there is no problem, but when I try the second time I get an exception:

[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed

What's wrong??
J.C.



 
Old January 3rd, 2004, 01:18 AM
Authorized User
 
Join Date: May 2003
Location: Delhi, Delhi, India.
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Default

May be you are using the same variable to reconnect and you are not closing the connection for the first time.

Deepesh Jain
VB,VBA & .NET Specialist
Wiley Support Team
 
Old January 5th, 2004, 01:28 PM
Authorized User
 
Join Date: Nov 2003
Location: , , Mexico.
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Deepesh Jain





Similar Threads
Thread Thread Starter Forum Replies Last Post
[ODBC] Driver's SqlSetConnectAttr Failed ruzlymoh BOOK: Beginning SQL 0 September 24th, 2008 08:50 AM
Logon Failed! VannAustin BOOK: Professional Crystal Reports for VS.NET 0 March 3rd, 2005 05:13 AM
logon failed Rohit Ranjan Crystal Reports 1 February 28th, 2005 06:19 PM
Logon failed. msrnivas .NET Web Services 3 January 24th, 2005 02:56 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.