473,773 Members | 2,306 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to get connection string from this code?

?xml version="1.0" encoding="utf-8" ?>
<configuratio n>
<configSections >
<section name="enterpris elibrary.config urationSettings " type="System.Co nfiguration.Ign oreSectionHandl er, System, Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9" />
</configSections>
<enterpriselibr ary.configurati onSettings xmlns:xsd="http ://www.w3.org/2001/XMLSchema" xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance" applicationName ="Applicatio n1" xmlns="http://www.microsoft.c om/practices/enterpriselibra ry/08-31-2004/configuration">
<configurationS ections>
<configurationS ection xsi:type="ReadO nlyConfiguratio nSectionData" name="dataConfi guration" encrypt="false" >
<storageProvide r xsi:type="XmlFi leStorageProvid erData" name="XML File Storage Provider" path="dataConfi guration.config " />
<dataTransforme r xsi:type="XmlSe rializerTransfo rmerData" name="Xml Serializer Transformer">
<includeTypes />
</dataTransformer >
</configurationSe ction>
</configurationSe ctions>
<keyAlgorithmSt orageProvider xsi:nil="true" />
<includeTypes />
</enterpriselibra ry.configuratio nSettings>
i'm using microsoft enterprise Library for data access.But i need connection string individually for some specific operations.plea se help me to get connection string from this code
Jun 27 '08 #1
1 2005
On May 22, 9:13 am, sujatha k wrote:
?xml version="1.0" encoding="utf-8" ?>
<configuratio n>
<configSections >
<section name="enterpris elibrary.config urationSettings " type="System.Co nfiguration.Ign oreSectionHandl er, System, Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9" />
</configSections>
<enterpriselibr ary.configurati onSettings xmlns:xsd="http ://www.w3.org/2001/XMLSchema" xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance" applicationName ="Applicatio n1" xmlns="http://www.microsoft.c om/practices/enterpriselibra ry/08-31-2004/confi...">
<configurationS ections>
<configurationS ection xsi:type="ReadO nlyConfiguratio nSectionData" name="dataConfi guration" encrypt="false" >
<storageProvide r xsi:type="XmlFi leStorageProvid erData" name="XMLFile Storage Provider" path="dataConfi guration.config " />
<dataTransforme r xsi:type="XmlSe rializerTransfo rmerData" name="Xml Serializer Transformer">
<includeTypes />
</dataTransformer >
</configurationSe ction>
</configurationSe ctions>
<keyAlgorithmSt orageProvider xsi:nil="true" />
<includeTypes />
</enterpriselibra ry.configuratio nSettings>

i'm using microsoft enterprise Library for data access.But i need connection string individually for some specific operations.plea se help me to get connection string from this code
Where's the connection string located in your XML code? If there's no,
you cannot get directly from XML code like using XmlReader class to
read nodes / values.

Thanks,

Onur Güzel
Jun 27 '08 #2

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

Similar topics

6
7274
by: Paul Robinson | last post by:
I am developing a website in ASP that connects to a Sybase database. However, when I try to open a connection to the database the page will not load. The script does not timeout, nor the connection. Further, the Sybase server shows no connection. Because the page is hanging I am unable, with my limited knowledge, to query the error collection. After many tries I will get an error page ...HTTP 403.9 Access forbidden: Too many users are...
17
3253
by: AMC | last post by:
Hi, I'm using an include file to store the connection string to a database. Whenever I try to reference that string to open a connection in the page that includes the file I get the error 'empy connection string' . When I write the string to the page using response.write(connectionstring) it shows up fine. Is the something else that I need to do? Thanks
0
4748
by: JWM | last post by:
I am trying to implement Oracle connection pooling for the following code, which was written by someone else. Here is my main question -- this java file creates code that is executed every hour, but once per week, the oracle server is brought down for backup. At that time, I get an error that looks like I have the wrong credentials for the database. For every subsequent attempt to run the hourly process, I am getting a broken pipe error,...
9
1490
by: Barb | last post by:
Hi there, I sincerely hope that someone out there can help. I have two instances of the SQL 2000 Desktop Engine running. One is on my local machine for development and the other is on another machine on our network which is the production environment. I have built an Access 2003 front end application which connects to this database. This works fine locally, as you would expect. I successfully installed the database on the...
7
2209
by: Mrinal Kamboj | last post by:
Hi , I am using OracleConnection object from Oracle ODP.net provider and following is the behaviour which i am finding bit strange : To start with my argument is based on followings facts : 1. Connection object is a reference type object . 2. All reference types are passed by reference even when done without using modifier like ref / out .
5
2132
by: Matt | last post by:
Hello, What is the best way to handle the database connection string for a class library project that will be compiled and used as a .dll? This .dll will be accessed via classic ASP and in the future by ASP.NET pages. I have created a constant that contains the connection string (as shown below).
8
9637
by: Greg Strong | last post by:
Hello All, The short questions are 1 Do you know how to make DSN connection close in Access to Oracle 10g Express Edition? &/or 2 Do you know how to make a DSN-less pass-through query work from
6
8163
Cintury
by: Cintury | last post by:
Hi all, I've developed a mobile application for windows mobile 5.0 that has been in use for a while (1 year and a couple of months). It was developed in visual studios 2005 with a back-end sql server mobile ce database. Until recently I was synching everything thru a com port serial cable. The devices would connect to the computer thru activesync and are able to acquire an internet connection. The sync for the program occurs thru a website...
10
4257
by: Elaine121 | last post by:
Hi i've been batteling for hours and can't seem to find the problem. When my server runs and I press the connect button the gui freezes until the client gui is terminated.. only then the gui becomes active again and displays the messages. Here is my server code: import java.io.*; import java.net.*; public class serverForm extends javax.swing.JFrame { private PrintWriter output = null;
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10264
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8937
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7463
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5355
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4012
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3610
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2852
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.