<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to use IWorkspaceName2? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-iworkspacename2/m-p/365048#M9609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like two things -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Example usage of IWorkspaceName2 to retrieve the ConnectionString property (this is the only way I know how to generate an encrypted password suitable for the XML inside an MSD file)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IWorkspaceName2 - &lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//002500000mnw000000" title="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//002500000mnw000000"&gt;ArcObjects 10 .NET SDK Help&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I asked at gis.stackexchange.com and received a working usage - &lt;A href="http://gis.stackexchange.com/questions/115470/how-to-use-iworkspacename2" title="http://gis.stackexchange.com/questions/115470/how-to-use-iworkspacename2"&gt;arcgis 10.0 - How to use IWorkspaceName2 - Geographic Information Systems Stack Exchange&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;The answer (1 right now) uses &lt;CODE&gt;IWorkspaceFactory2::OpenFromString &lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;which requires a live database and valid connection string.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Is there any way to get IWorkspaceName2::ConnectionString from a connection string but without having to connect to the database?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Sep 2014 05:23:46 GMT</pubDate>
    <dc:creator>AndyArismendi1</dc:creator>
    <dc:date>2014-09-30T05:23:46Z</dc:date>
    <item>
      <title>How to use IWorkspaceName2?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-iworkspacename2/m-p/365048#M9609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like two things -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Example usage of IWorkspaceName2 to retrieve the ConnectionString property (this is the only way I know how to generate an encrypted password suitable for the XML inside an MSD file)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IWorkspaceName2 - &lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//002500000mnw000000" title="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//002500000mnw000000"&gt;ArcObjects 10 .NET SDK Help&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I asked at gis.stackexchange.com and received a working usage - &lt;A href="http://gis.stackexchange.com/questions/115470/how-to-use-iworkspacename2" title="http://gis.stackexchange.com/questions/115470/how-to-use-iworkspacename2"&gt;arcgis 10.0 - How to use IWorkspaceName2 - Geographic Information Systems Stack Exchange&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;The answer (1 right now) uses &lt;CODE&gt;IWorkspaceFactory2::OpenFromString &lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;which requires a live database and valid connection string.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Is there any way to get IWorkspaceName2::ConnectionString from a connection string but without having to connect to the database?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 05:23:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-iworkspacename2/m-p/365048#M9609</guid>
      <dc:creator>AndyArismendi1</dc:creator>
      <dc:date>2014-09-30T05:23:46Z</dc:date>
    </item>
  </channel>
</rss>

