473,434 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,434 software developers and data experts.

Alternative to UDL files for Native SQL connection

Rob
It seems that UDL files don't work for native SQL connections (unless
I'm missing a flag or something). Is there a way to do this?
Sep 10 '06 #1
1 2130
Rob,

You could always put the connection string in the config file, and read
it from there.

If you have the need to use different data providers (SqlClient, OleDb,
Oracle), then I would look into using the Data Access Block in the
Enterprise Application Blocks from Microsoft. It will allow you to abstract
providers better through the config file.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Rob" <Ro*@nospam.comwrote in message
news:nm********************************@4ax.com...
It seems that UDL files don't work for native SQL connections (unless
I'm missing a flag or something). Is there a way to do this?

Sep 10 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Bruce | last post by:
Since DBlib is no longer the suggested method for connecting back to sql server from an Extended Stored Procedure, has anyone built any extended stored procedures that use other connection methods...
0
by: JSwinney | last post by:
Greetings! I know this kind of question gets asked here almost daily, but as a newbie I have sort of a twist: I'm needing to take some reports I've written in Access that link to Btrieve files...
9
by: Newbie | last post by:
Hello, I need to declare a global variable e.g. database connection handle. So that I hava an access to this variable all over my class. How can I do it in c#? Do I have to declare it as static...
8
by: marcus.kwok | last post by:
I am having a weird problem and I have can't figure out why it is happening. I create an OpenFileDialog and set a filename filter. When the dialog first opens, the filter works correctly, and...
8
by: Frank | last post by:
Is there and easy way to read .bmp files in native C++? How about .jpg files? Thanks in advance
4
by: Rob Meade | last post by:
Dear all, We have purchased a product called SA-FileUp which we have used in our organisation for a number of years, I'm quite an an avid supporter of it, recently I've been trying to ensure...
7
by: sam | last post by:
It can compile .net code to native code which can run without an installed .net framework. This would remove one of the greatest disadvantages from C#. Sounds quite interesting....
0
by: Peter | last post by:
Hi all, I am having trouble to get the bulk copy operations working in collaboration with SQL Native Client. My test program crashed with an access violation in the call to bcp_init. I...
16
by: Wayne | last post by:
I've read that one method of repairing a misbehaving database is to save all database objects as text and then rebuild them from the text files. I've used the following code posted by Lyle...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.