How to get connection string from this code?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sujatha k

    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
  • kimiraikkonen

    #2
    Re: How to get connection string from this code?

    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

    Comment

    Working...