Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP 3.0 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 17th, 2005, 03:54 AM
Authorized User
 
Join Date: Dec 2004
Location: , , .
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Wondering why .UDL for connecting string

I have seen few time connection string files are saved as .udl file and then it is include in the pages where required.

just wondering is there any advantage of doing this?
What's a difference between saving as .asp file and .udl ????

 
Old May 17th, 2005, 06:39 AM
Friend of Wrox
 
Join Date: Apr 2005
Location: Cochin, , India.
Posts: 186
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi,

.UDL is an easy way to create a connectionstring.
You can try out this by
-> just create a new text file by rightcliking the mouse(if you donot have a new udl in popmenu).
-> rename to a.udl
-> just double click it

See the diference

So changing a connection string is so easy.
another thing you need not search or touch the code to change a connection.

Prashant





 
Old May 17th, 2005, 07:18 AM
Authorized User
 
Join Date: Dec 2004
Location: , , .
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thnks Prashant,
But I got a new probs.When I was editing the conection string I open the udl in text mode and there after I am not able to open it in its usual format.
I have tried updating MDAC but couldn't get through.

Any reason why.

Thnks

 
Old May 17th, 2005, 07:39 AM
Friend of Wrox
 
Join Date: Apr 2005
Location: Cochin, , India.
Posts: 186
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi,

If you are in hide known extensions mode.
You must have saved the file x.udl.txt.

You need'nt open in a text editor to edit double click and edit
OR
Right click and view file properties, you can edit.

Prashant




Prashant





Similar Threads
Thread Thread Starter Forum Replies Last Post
connection to sqlserver through udl file qiux ADO.NET 1 May 21st, 2008 11:12 AM
Wondering how I'd go about doing this Smythe Classic ASP Basics 8 July 20th, 2006 08:28 AM
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
Chapter 5 page 150 - Wondering why.... potassium Beginning PHP 3 July 27th, 2003 12:05 AM





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