<?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: SQL database connection in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/sql-database-connection/m-p/232085#M6043</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I fixed it by selecting SQL Server Native Client 10.0 instead of SQL Server. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And also had to change the server name to another server. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks all for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Feb 2012 17:27:20 GMT</pubDate>
    <dc:creator>jp</dc:creator>
    <dc:date>2012-02-23T17:27:20Z</dc:date>
    <item>
      <title>SQL database connection</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/sql-database-connection/m-p/232081#M6039</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 am trying to connect to sql database (.mdf file) but couldn't successfully create a connection string. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is what I tested with&amp;nbsp; -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp; Data Source=.\SQLEXPRESS;AttachDbFilename=C:\.....\test.mdf;User Instance=True;Trusted_Connection=Yes;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp; Server=.\SQLEXPRESS;AttachDbFilename=C:\....\Test_models.mdf;User Instance=True;Trusted_Connection=Yes;MultipleActiveResultSets=True;Pooling=True;Connect Timeout=60&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3.&amp;nbsp; Server=.\SQLEXPRESS;Database=C:\.....\Test_model.mdf;User Instance=True;Trusted_Connection=Yes;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anybody tried connecting to sql database file (2008) with absolute path?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it the User Interface property thats not supported by ESRI?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 16:18:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/sql-database-connection/m-p/232081#M6039</guid>
      <dc:creator>jp</dc:creator>
      <dc:date>2012-02-17T16:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: SQL database connection</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/sql-database-connection/m-p/232082#M6040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just an idea but have you tried to link to the database using ArcCatalog? This will at least prove that you can connect to it (so not some weird permission issue) and you'll be able to see the properties of the connection so you can ensure you have a correct connection string?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well thats what I would do first...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2012 14:43:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/sql-database-connection/m-p/232082#M6040</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2012-02-20T14:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: SQL database connection</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/sql-database-connection/m-p/232083#M6041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried connecting in ArcCatalog. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Selected Microsoft OLE DB Provider for SQL Server&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Connection - &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. server name : .\SQLEXPRESS, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. authentication: OSA, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Attach a database file - path to the database&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I test the connection get this error -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Test connection failed because of an error in initializing provider. CREATE DATABASE permission denied in database 'master'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 11:51:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/sql-database-connection/m-p/232083#M6041</guid>
      <dc:creator>jp</dc:creator>
      <dc:date>2012-02-21T11:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: SQL database connection</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/sql-database-connection/m-p/232084#M6042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I tried connecting in ArcCatalog. &lt;BR /&gt;&lt;BR /&gt;Selected Microsoft OLE DB Provider for SQL Server&lt;BR /&gt;&lt;BR /&gt;Connection - &lt;BR /&gt;1. server name : .\SQLEXPRESS, &lt;BR /&gt;2. authentication: OSA, &lt;BR /&gt;3. Attach a database file - path to the database&lt;BR /&gt;&lt;BR /&gt;When I test the connection get this error -&lt;BR /&gt;&lt;BR /&gt;Test connection failed because of an error in initializing provider. CREATE DATABASE permission denied in database 'master'.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How are you logging in to that machine?&amp;nbsp; Is it a domain login?&amp;nbsp; OSA says to use your machine login and SQL Server is telling you that user has no&amp;nbsp; permissions on that database. Add that user to the database if you want to use that login.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 20:30:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/sql-database-connection/m-p/232084#M6042</guid>
      <dc:creator>GeorgeFaraj</dc:creator>
      <dc:date>2012-02-21T20:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: SQL database connection</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/sql-database-connection/m-p/232085#M6043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I fixed it by selecting SQL Server Native Client 10.0 instead of SQL Server. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And also had to change the server name to another server. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks all for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 17:27:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/sql-database-connection/m-p/232085#M6043</guid>
      <dc:creator>jp</dc:creator>
      <dc:date>2012-02-23T17:27:20Z</dc:date>
    </item>
  </channel>
</rss>

