ADO.NETFor 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
I left off some of the html tags for space sake. For some reason I keep getting an error. The error message says "Keyword not supported: 'Driver'"
I tried it without the driver tag but it didnt work either. It passed the compiler but did not connect properly. This connection matches to a .udl generated connection string but it still throws an exception. So I am kind of thinking now that I am doing something wrong above and that the connection string may be right? Am I on the right track here?
When you use a SqlConnection, the connection inherently knows what driver to use when it connects to SQL Server, so you don't need to specify that. You just need the details of which server/data/user. Remove the driver part of the string.