Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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.



Reply With Quote
  #2 (permalink)  
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
Reply With Quote
  #3 (permalink)  
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

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 03:32 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.