<?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 Using Pyhon to connect to a versioned SDE datasoure running on SQL Server in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/using-pyhon-to-connect-to-a-versioned-sde/m-p/501150#M16646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've written some Python scripts that I can use to connect to SQL Server Express on my local machine.&amp;nbsp; My plan was to develop the scripts there and then to point the scripts to our geodatabase on a SQL Server instance on a remote server.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The scripts are working, now I'm having a hard time getting them to connect to the remote database server.&amp;nbsp; Given the following parameters, what would the connection string look like that I would use in a gp.updatecursor(FeatureClass, WhereClause) look like?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Server:&amp;nbsp; qServerS5&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Service: 9901&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Database: DBig&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Username: Clyde&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Password: password&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Transactional Version: DBO.BobsTestVersion&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bob J&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 May 2010 17:15:43 GMT</pubDate>
    <dc:creator>BobJohnson</dc:creator>
    <dc:date>2010-05-25T17:15:43Z</dc:date>
    <item>
      <title>Using Pyhon to connect to a versioned SDE datasoure running on SQL Server</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-pyhon-to-connect-to-a-versioned-sde/m-p/501150#M16646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've written some Python scripts that I can use to connect to SQL Server Express on my local machine.&amp;nbsp; My plan was to develop the scripts there and then to point the scripts to our geodatabase on a SQL Server instance on a remote server.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The scripts are working, now I'm having a hard time getting them to connect to the remote database server.&amp;nbsp; Given the following parameters, what would the connection string look like that I would use in a gp.updatecursor(FeatureClass, WhereClause) look like?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Server:&amp;nbsp; qServerS5&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Service: 9901&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Database: DBig&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Username: Clyde&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Password: password&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Transactional Version: DBO.BobsTestVersion&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bob J&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 17:15:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-pyhon-to-connect-to-a-versioned-sde/m-p/501150#M16646</guid>
      <dc:creator>BobJohnson</dc:creator>
      <dc:date>2010-05-25T17:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using Pyhon to connect to a versioned SDE datasoure running on SQL Server</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-pyhon-to-connect-to-a-versioned-sde/m-p/501151#M16647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Bob,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first parameter is just the path to your feature class.&amp;nbsp; The path to an ArcSDE feature class in GP must be done through a .sde file with the appropriate connection info contained within it in order to specify the feature class.&amp;nbsp; For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;fc = r'c:\temp\connectionToArcSDE.sde\fcname'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;whereClause = "&amp;lt;whateverUwant&amp;gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.updatecursor(fc, whereClause)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you don't already have a .sde file and want to create it on the fly in your script you can use the GP tool CreateArcSDEConnectionFile() (New at 10) to create it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ken&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 11:37:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-pyhon-to-connect-to-a-versioned-sde/m-p/501151#M16647</guid>
      <dc:creator>KenHartling</dc:creator>
      <dc:date>2010-09-02T11:37:10Z</dc:date>
    </item>
  </channel>
</rss>

