Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
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 May 20th, 2008, 10:10 PM
Authorized User
Join Date: Jan 2008
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default connection to sqlserver through udl file


Has anyone know how to establish connection to sql server with using udl file?

I am using win form and vb net 2005.
if I use Imports System.Data.Sqlclient

then dim conn as new sqlConnection("FILE NAME = C:\test.udl")
test.udl -> use oledbprovider to sql server

try to conn.open, it failed.
Old May 21st, 2008, 11:12 AM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

Could you elaborate on "it failed".

How did it fail?
What was the error message?


Similar Threads
Thread Thread Starter Forum Replies Last Post
VB 2005 SqlServer database connection chandra7 ADO.NET 0 December 1st, 2008 10:20 AM
how to connect to sqlserver database file bhaveshsanghani BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 May 3rd, 2007 04:44 PM
vb.net & .udl file sachinbashetti Crystal Reports 0 May 23rd, 2005 02:00 AM
UDL Connection Problem mar0364 Classic ASP Databases 6 July 8th, 2004 03:15 PM

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