<?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 Server Error when accessing Geodatabase in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/sql-server-error-when-accessing-geodatabase/m-p/199940#M11441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am using ArcSDE 10.1.0 and SQL Server Express 2008 R2. &lt;BR /&gt;&lt;BR /&gt;I created two databases using SQL Server Management Studio; Database1 and Database2.&lt;BR /&gt;&lt;BR /&gt;I am the DBO of both these databases.&lt;BR /&gt;&lt;BR /&gt;I then exited SQL Server Management Server Studio and began doing the rest of the database administration work via ArcCatalog and ArcMap.&lt;BR /&gt;&lt;BR /&gt;I then realized I no longer needed Database 1. I disconnected it from ArcGIS using ArcCatalog. &lt;BR /&gt;&lt;BR /&gt;I then went into SQL Server Management Studio and right clicked on Database1 and chose Delete. In the Delete Database Dialog Box, I put a check in the "Close Connection" Box. Then hit ok. Database1 was then deleted. &lt;BR /&gt;&lt;BR /&gt;However, now when I try and log into SQL Server Management Studio, I get an error saying:&lt;BR /&gt;"Cannot connect to MYSERVER\INSTANCENAME"&lt;BR /&gt;&lt;STRONG&gt;Additional Information:&lt;/STRONG&gt;&lt;BR /&gt;"Cannot open user default database. Login failed."&lt;BR /&gt;"Login failed for user MYUSERNAME (Microsoft SQL Server, Error: 4064)"&lt;BR /&gt;&lt;BR /&gt;I checked the Help and I was taken to this link:&lt;BR /&gt;&lt;A href="http://www.microsoft.com/products/ee/transform.aspx?ProdName=Microsoft+SQL+Server&amp;amp;EvtSrc=MSSQLServer&amp;amp;EvtID=4064"&gt;http://www.microsoft.com/products/ee/transform.aspx?ProdName=Microsoft+SQL+Server&amp;amp;EvtSrc=MSSQLServer&amp;amp;EvtID=4064&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It says under ACTION that I need to use AlterLogin. Any ideas on how I can log back into SQL Server Management Studio?&lt;BR /&gt;&lt;BR /&gt;I checked my SDE connections to Database 2 in ArcCatalog and it works fine inside ArcMap and ArcCatalog; the data is all there. No problems.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found the solution, this works:&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://blog.sqlauthority.com/2008/11/04/sql-server-fix-error-4064-cannot-open-user-default-database-login-failed-login-failed-for-user/"&gt;http://blog.sqlauthority.com/2008/11/04/sql-server-fix-error-4064-cannot-open-user-default-database-login-failed-login-failed-for-user/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Jan 2013 21:00:05 GMT</pubDate>
    <dc:creator>TimHayes</dc:creator>
    <dc:date>2013-01-26T21:00:05Z</dc:date>
    <item>
      <title>SQL Server Error when accessing Geodatabase</title>
      <link>https://community.esri.com/t5/data-management-questions/sql-server-error-when-accessing-geodatabase/m-p/199939#M11440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using ArcSDE 10.1.0 and SQL Server Express 2008 R2. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created two databases using SQL Server Management Studio; Database1 and Database2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am the DBO of both these databases.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I then exited SQL Server Management Server Studio and began doing the rest of the database administration work via ArcCatalog and ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I then realized I no longer needed Database 1. I disconnected it from ArcGIS using ArcCatalog. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I then went into SQL Server Management Studio and right clicked on Database1 and chose Delete. In the Delete Database Dialog Box, I put a check in the "Close Connection" Box. Then hit ok. Database1 was then deleted. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, now when I try and log into SQL Server Management Studio, I get an error saying:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"Cannot connect to MYSERVER\INSTANCENAME"&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Additional Information:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;"Cannot open user default database. Login failed."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"Login failed for user MYUSERNAME (Microsoft SQL Server, Error: 4064)"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked the Help and I was taken to this link:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.microsoft.com/products/ee/transform.aspx?ProdName=Microsoft+SQL+Server&amp;amp;EvtSrc=MSSQLServer&amp;amp;EvtID=4064"&gt;http://www.microsoft.com/products/ee/transform.aspx?ProdName=Microsoft+SQL+Server&amp;amp;EvtSrc=MSSQLServer&amp;amp;EvtID=4064&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It says under ACTION that I need to use AlterLogin. Any ideas on how I can log back into SQL Server Management Studio?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked my SDE connections to Database 2 in ArcCatalog and it works fine inside ArcMap and ArcCatalog; the data is all there. No problems.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2013 16:34:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sql-server-error-when-accessing-geodatabase/m-p/199939#M11440</guid>
      <dc:creator>TimHayes</dc:creator>
      <dc:date>2013-01-26T16:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server Error when accessing Geodatabase</title>
      <link>https://community.esri.com/t5/data-management-questions/sql-server-error-when-accessing-geodatabase/m-p/199940#M11441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am using ArcSDE 10.1.0 and SQL Server Express 2008 R2. &lt;BR /&gt;&lt;BR /&gt;I created two databases using SQL Server Management Studio; Database1 and Database2.&lt;BR /&gt;&lt;BR /&gt;I am the DBO of both these databases.&lt;BR /&gt;&lt;BR /&gt;I then exited SQL Server Management Server Studio and began doing the rest of the database administration work via ArcCatalog and ArcMap.&lt;BR /&gt;&lt;BR /&gt;I then realized I no longer needed Database 1. I disconnected it from ArcGIS using ArcCatalog. &lt;BR /&gt;&lt;BR /&gt;I then went into SQL Server Management Studio and right clicked on Database1 and chose Delete. In the Delete Database Dialog Box, I put a check in the "Close Connection" Box. Then hit ok. Database1 was then deleted. &lt;BR /&gt;&lt;BR /&gt;However, now when I try and log into SQL Server Management Studio, I get an error saying:&lt;BR /&gt;"Cannot connect to MYSERVER\INSTANCENAME"&lt;BR /&gt;&lt;STRONG&gt;Additional Information:&lt;/STRONG&gt;&lt;BR /&gt;"Cannot open user default database. Login failed."&lt;BR /&gt;"Login failed for user MYUSERNAME (Microsoft SQL Server, Error: 4064)"&lt;BR /&gt;&lt;BR /&gt;I checked the Help and I was taken to this link:&lt;BR /&gt;&lt;A href="http://www.microsoft.com/products/ee/transform.aspx?ProdName=Microsoft+SQL+Server&amp;amp;EvtSrc=MSSQLServer&amp;amp;EvtID=4064"&gt;http://www.microsoft.com/products/ee/transform.aspx?ProdName=Microsoft+SQL+Server&amp;amp;EvtSrc=MSSQLServer&amp;amp;EvtID=4064&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It says under ACTION that I need to use AlterLogin. Any ideas on how I can log back into SQL Server Management Studio?&lt;BR /&gt;&lt;BR /&gt;I checked my SDE connections to Database 2 in ArcCatalog and it works fine inside ArcMap and ArcCatalog; the data is all there. No problems.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found the solution, this works:&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://blog.sqlauthority.com/2008/11/04/sql-server-fix-error-4064-cannot-open-user-default-database-login-failed-login-failed-for-user/"&gt;http://blog.sqlauthority.com/2008/11/04/sql-server-fix-error-4064-cannot-open-user-default-database-login-failed-login-failed-for-user/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2013 21:00:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sql-server-error-when-accessing-geodatabase/m-p/199940#M11441</guid>
      <dc:creator>TimHayes</dc:creator>
      <dc:date>2013-01-26T21:00:05Z</dc:date>
    </item>
  </channel>
</rss>

