<?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 Re: Publish service definition with database connection in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-definition-with-database/m-p/135344#M5253</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to clear up any confusion, you can publish a service definition through ArcGIS Server Manager on any machine, as long as you can actually reach the Manager page. &amp;nbsp;It doesn't have to be on the Server machine itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Chris' environment, ArcMap on his first machine wasn't able to connect to Server on his second disconnected environment, so he wouldn't be able to publish directly from ArcMap on his first environment to Server in his second. &amp;nbsp;Additionally, ArcMap on his second machine couldn't connect to the database in his first environment, so publishing from ArcMap in general wasn't possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In regards to the connections, ArcMap and Server will both try to validate the database connection if the same connection is used for both. &amp;nbsp;On the other hand, ArcMap will try to validate the Publisher connection and Server will try to validate the Server connection if different connections are used, but ArcMap won't try to validate the Server connection and vice versa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Nov 2016 18:02:30 GMT</pubDate>
    <dc:creator>JonathanQuinn</dc:creator>
    <dc:date>2016-11-08T18:02:30Z</dc:date>
    <item>
      <title>Publish service definition with database connection</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-definition-with-database/m-p/135335#M5244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to define the database connection at the time of publishing a service definition? Here is the desired workflow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a service definition through ArcGIS Desktop with 'feature access' capability.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Select 'no available connection', 'include data in service definition when publishing'&lt;/P&gt;&lt;P&gt;3. Move the service definition to another environment&lt;/P&gt;&lt;P&gt;4. Publish the service definition AND specify the database connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is happening is that the data is being copied into the managed database. The ideal scenario is that it is copied into another referenced SQL Server database. Is this possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 12:08:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-definition-with-database/m-p/135335#M5244</guid>
      <dc:creator>ChrisAdams</dc:creator>
      <dc:date>2016-11-02T12:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Publish service definition with database connection</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-definition-with-database/m-p/135336#M5245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just trying to follow this scenario. So build the service based off tables in SQL Instance A. Publish a service but have edits that are occurring via published service occur against SQL Instance B?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any reason not to simple migrate a copy of the table(s) from SQL Instance A over to SQL Instance B. Build service in ArcMap based off connections to SQL Instance B and then be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only reason I can think of for attempting your workflow is because SQL Instance A and SQL Instance B reside on 2 separate LAN's that have no ability to communicate thus preventing the pre-staging of the tables. It still almost sounds like running a SQL DB Backup and then loading the backup to the new location is much faster/easier/more reliable even if you had to build a new DB instance just to migrate a single table into, backup and load to new location over trying to migrate an ESRI .sd file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 12:20:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-definition-with-database/m-p/135336#M5245</guid>
      <dc:creator>ScottFierro2</dc:creator>
      <dc:date>2016-11-02T12:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Publish service definition with database connection</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-definition-with-database/m-p/135337#M5246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are correct that the instances reside on separate LANs. I am migrating a copy of the data and then publishing the MXD but was hoping to capture the service definition settings as well to reduce the chances of human error when publishing on the second environment. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 14:12:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-definition-with-database/m-p/135337#M5246</guid>
      <dc:creator>ChrisAdams</dc:creator>
      <dc:date>2016-11-02T14:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Publish service definition with database connection</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-definition-with-database/m-p/135338#M5247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;BR /&gt;&lt;BR /&gt;Is it possible to do that ?&lt;BR /&gt;if yes so how can we set data source of it&amp;nbsp;&lt;BR /&gt;can you please share more information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 14:39:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-definition-with-database/m-p/135338#M5247</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-11-02T14:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Publish service definition with database connection</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-definition-with-database/m-p/135339#M5248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see. It's an Interesting use case and can't say I have had a need or heard of anyone attempting it before. Your logic behind it is sound I just am not sure what to expect at publishing on the other end because I would expect at publishing it would error out due to no database details and it wouldn't prompt for a connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it did let you publish then it might prompt for the connection details but worse case you could always dive into the published directory folders and re-map the sources as needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 14:50:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-definition-with-database/m-p/135339#M5248</guid>
      <dc:creator>ScottFierro2</dc:creator>
      <dc:date>2016-11-02T14:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Publish service definition with database connection</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-definition-with-database/m-p/135340#M5249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at the "The publisher's machine and the server are working with different databases" section within the documentation on &lt;A href="http://server.arcgis.com/en/server/latest/publish-services/windows/overview-register-data-with-arcgis-server.htm#ESRI_SECTION1_015C666026144A7CBD9C17FD501F28FD"&gt;registering your data with ArcGIS Server&lt;/A&gt;. &amp;nbsp;What will happen in that case is that the "publisher", (ArcMap), will be accessing one database through one database connection, but once the data is published, the connection string will be "swizzled" so the server, (ArcGIS Server), can access the data through a different database and another database connection. &amp;nbsp;Make sure you've already copied the data into that directory. &amp;nbsp;Another option is to register the database on the Server end as the "managed" data store. &amp;nbsp;Any data from the publisher that's published with feature access will be copied into the database registered as the managed data store.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 17:31:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-definition-with-database/m-p/135340#M5249</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2016-11-02T17:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Publish service definition with database connection</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-definition-with-database/m-p/135341#M5250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As the "server" database connection is not reachable from the machine it is being published from because it is on a different LAN, it is not possible to set this connection. It would be good to either allow "server" database connections to be set even if the server is not reachable, thus allowing the connections to be swizzled once the mxds and data have been copied. Going back to my original post, I would like to set the database connection at time of publishing the SD with the data bundled inside it, or swizzle the connections at time of publishing. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 11:55:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-definition-with-database/m-p/135341#M5250</guid>
      <dc:creator>ChrisAdams</dc:creator>
      <dc:date>2016-11-07T11:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Publish service definition with database connection</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-definition-with-database/m-p/135342#M5251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris, that's exactly what the section on&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;"The publisher's machine and the server are working with different databases" is describing. &amp;nbsp;In that scenario, the Publisher's connection is not accessible by the Server and the Server connection is not accessible by the Publisher. &amp;nbsp;This is primarily used in Amazon environments where an on-premises geodatabase is not accessible by a Server deployment in the cloud. &amp;nbsp;Different database connections are used for ArcMap, (publisher), and the Server and the data is copied to the Server before hand manually, however possible, or even during the publishing process by packaging it up within the SD file. &amp;nbsp;When you use two different connections, the connection strings are swizzled once the SD file is unpacked on the Server end.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 16:18:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-definition-with-database/m-p/135342#M5251</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2016-11-07T16:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Publish service definition with database connection</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-definition-with-database/m-p/135343#M5252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a caveat to the section on &lt;SPAN style="background-color: #ffffff;"&gt;"The publisher's machine and the server are working with different databases". You must publish a service definition through ArcGIS Server Manager on the Server machine. I was initially copying map packages and sd files across from ArcMap on my first environment, to ArcMap on my second disconnected environoment. Trying to publish from ArcMap will not work because you cannot set the publisher database connection for the swizzling to take place. ArcMap tries to validate both the publisher and server database connections and will fail to validate the publisher connection because the database is not reachable. Thanks to Jonathan Quinn for putting me right on this. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;To answer my original question, it is not possible to do this but the easiest solution is to bundle the data in the sd files and push the data into a managed database. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 09:21:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-definition-with-database/m-p/135343#M5252</guid>
      <dc:creator>ChrisAdams</dc:creator>
      <dc:date>2016-11-08T09:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Publish service definition with database connection</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-definition-with-database/m-p/135344#M5253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to clear up any confusion, you can publish a service definition through ArcGIS Server Manager on any machine, as long as you can actually reach the Manager page. &amp;nbsp;It doesn't have to be on the Server machine itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Chris' environment, ArcMap on his first machine wasn't able to connect to Server on his second disconnected environment, so he wouldn't be able to publish directly from ArcMap on his first environment to Server in his second. &amp;nbsp;Additionally, ArcMap on his second machine couldn't connect to the database in his first environment, so publishing from ArcMap in general wasn't possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In regards to the connections, ArcMap and Server will both try to validate the database connection if the same connection is used for both. &amp;nbsp;On the other hand, ArcMap will try to validate the Publisher connection and Server will try to validate the Server connection if different connections are used, but ArcMap won't try to validate the Server connection and vice versa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 18:02:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-definition-with-database/m-p/135344#M5253</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2016-11-08T18:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Publish service definition with database connection</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-definition-with-database/m-p/135345#M5254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if anyone will see this response, but I'm having similar difficulties as Chris.&amp;nbsp; I'm trying to register a database connection within ArcGIS Server that is on a different domain than my client (with no trusted bridge).&amp;nbsp; I can make an admin GIS Server connection from ArcGIS Desktop on my client.&amp;nbsp; When I then try to register a database connection, I enter the connection information to my "Publisher Database" (on same domain as my client), and that succeeds, however when I try to enter the "Server Database" connection information it fails.&amp;nbsp; ArcGIS Desktop on my client is trying to validate the connection to a server that it can't see.&amp;nbsp; Knowing this would be a likely issue, why can we not manually type the connection information in.&amp;nbsp; That way we can create the .SDE file that's needed to import the connection within ArcGIS Server Manager.&amp;nbsp; Within the AGS Manager web page, there is only an option to import a connection to the database your trying to register.&amp;nbsp; If your server environment does not have ArcGIS Desktop, you cannot create a valid file to import.&amp;nbsp; Can anyone shed some light on this, and help me out?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 18:48:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-definition-with-database/m-p/135345#M5254</guid>
      <dc:creator>EricMahaffey1</dc:creator>
      <dc:date>2018-03-22T18:48:26Z</dc:date>
    </item>
  </channel>
</rss>

