<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>SQL Server</title>
        <link>http://geekswithblogs.net/bullpit/category/10481.aspx</link>
        <description>SQL Server</description>
        <language>en-US</language>
        <copyright>bullpit</copyright>
        <managingEditor>mayank_max@yahoo.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <item>
            <title>User Already Exists in the Current Database - SQL Server</title>
            <link>http://geekswithblogs.net/bullpit/archive/2010/04/21/user-already-exists-in-the-current-database---sql-server.aspx</link>
            <description>&lt;p&gt;I was moving a lot of databases from one SQL Server to another, and my applications were giving me errors saying "Login failed for &amp;lt;user&amp;gt;". The user was already in the database with appropriate rights to allowed objects in the database. I tried mapping the user to the database and that's when I got this message:&lt;/p&gt;
&lt;p&gt;"User Already Exists in the Current Database"...&lt;/p&gt;
&lt;p&gt;I googled and found this very useful &lt;a target="_blank" href="http://stupidprogrammer.com/2009/02/20/user-already-exists-in-the-current-database/"&gt;post&lt;/a&gt; about orphaned users when moving databases.&lt;/p&gt;
&lt;p&gt;These are the steps you should take to fix this issue:&lt;/p&gt;
&lt;p&gt;First, make sure that this is the problem. This will lists the orphaned users:&lt;br /&gt;
EXEC sp_change_users_login 'Report'&lt;/p&gt;
&lt;p&gt;If you already have a login id and password for this user, fix it by doing:&lt;br /&gt;
EXEC sp_change_users_login 'Auto_Fix', 'user'&lt;/p&gt;
&lt;p&gt;If you want to create a new login id and password for this user, fix it by doing:&lt;br /&gt;
EXEC sp_change_users_login 'Auto_Fix', 'user', 'login', 'password'&lt;/p&gt; &lt;img src="http://geekswithblogs.net/bullpit/aggbug/139413.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>bullpit</dc:creator>
            <guid>http://geekswithblogs.net/bullpit/archive/2010/04/21/user-already-exists-in-the-current-database---sql-server.aspx</guid>
            <pubDate>Wed, 21 Apr 2010 12:59:19 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/bullpit/comments/139413.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/bullpit/archive/2010/04/21/user-already-exists-in-the-current-database---sql-server.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/bullpit/comments/commentRss/139413.aspx</wfw:commentRss>
        </item>
        <item>
            <title>SQL Server: DateTime and Indexes</title>
            <link>http://geekswithblogs.net/bullpit/archive/2009/09/22/sql-server-datetime-and-indexes.aspx</link>
            <description>&lt;p&gt;A nice post about handling DateTime fields and indexing.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://itknowledgeexchange.techtarget.com/sql-server/dates-can-easily-be-the-hardest-datatype-to-work-with/"&gt;http://itknowledgeexchange.techtarget.com/sql-server/dates-can-easily-be-the-hardest-datatype-to-work-with/&lt;/a&gt;&lt;/p&gt; &lt;img src="http://geekswithblogs.net/bullpit/aggbug/135013.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>bullpit</dc:creator>
            <guid>http://geekswithblogs.net/bullpit/archive/2009/09/22/sql-server-datetime-and-indexes.aspx</guid>
            <pubDate>Tue, 22 Sep 2009 17:52:17 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/bullpit/comments/135013.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/bullpit/archive/2009/09/22/sql-server-datetime-and-indexes.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/bullpit/comments/commentRss/135013.aspx</wfw:commentRss>
        </item>
        <item>
            <title>SQL Azure Database Preview released</title>
            <link>http://geekswithblogs.net/bullpit/archive/2009/08/19/sql-azure-database-previde-released.aspx</link>
            <description>Microsoft has released a trial version of SQL Azure DB. Get more details &lt;a target="_blank" href="http://news.cnet.com/8301-1001_3-10313188-92.html?tag=newsEditorsPicksArea.0"&gt;here&lt;/a&gt; &lt;img src="http://geekswithblogs.net/bullpit/aggbug/134198.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>bullpit</dc:creator>
            <guid>http://geekswithblogs.net/bullpit/archive/2009/08/19/sql-azure-database-previde-released.aspx</guid>
            <pubDate>Wed, 19 Aug 2009 20:54:36 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/bullpit/comments/134198.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/bullpit/archive/2009/08/19/sql-azure-database-previde-released.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/bullpit/comments/commentRss/134198.aspx</wfw:commentRss>
        </item>
        <item>
            <title>SQL Server: Disaster Recovery...some tips</title>
            <link>http://geekswithblogs.net/bullpit/archive/2009/08/14/sql-server-disaster-recovery.some-tips.aspx</link>
            <description>&lt;p&gt;Again a nice arctile by Don Jones, where he talks about different SQL Server backup options and disaster recovery plans...a good read.&lt;/p&gt;
&lt;p&gt;&lt;a target="_blank" href="http://searchsqlserver.techtarget.com/tip/0,289483,sid87_gci1361721_mem1,00.html?track=NL-418&amp;amp;ad=719613&amp;amp;asrc=EM_NLT_8942019&amp;amp;uid=8977132"&gt;SQL Server Disaster Recovery by Don Jones&lt;/a&gt;&lt;/p&gt; &lt;img src="http://geekswithblogs.net/bullpit/aggbug/134098.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>bullpit</dc:creator>
            <guid>http://geekswithblogs.net/bullpit/archive/2009/08/14/sql-server-disaster-recovery.some-tips.aspx</guid>
            <pubDate>Fri, 14 Aug 2009 15:35:44 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/bullpit/comments/134098.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/bullpit/archive/2009/08/14/sql-server-disaster-recovery.some-tips.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/bullpit/comments/commentRss/134098.aspx</wfw:commentRss>
        </item>
        <item>
            <title>SQL Server: Optimizing Indexes</title>
            <link>http://geekswithblogs.net/bullpit/archive/2009/08/14/optimizing-sql-server-indexes.aspx</link>
            <description>&lt;p&gt;A good article about types of SQL Server Indexes and how to optimize them when they go bad...&lt;/p&gt;
&lt;p&gt;&lt;a target="_blank" href="http://searchsqlserver.techtarget.com/tip/0,289483,sid87_gci1364428_mem1,00.html?track=NL-418&amp;amp;ad=719613&amp;amp;asrc=EM_NLT_8942018&amp;amp;uid=8977132"&gt;Optimizing SQL Server Indexes by Don Jones&lt;/a&gt;&lt;/p&gt; &lt;img src="http://geekswithblogs.net/bullpit/aggbug/134097.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>bullpit</dc:creator>
            <guid>http://geekswithblogs.net/bullpit/archive/2009/08/14/optimizing-sql-server-indexes.aspx</guid>
            <pubDate>Fri, 14 Aug 2009 15:26:51 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/bullpit/comments/134097.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/bullpit/archive/2009/08/14/optimizing-sql-server-indexes.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/bullpit/comments/commentRss/134097.aspx</wfw:commentRss>
        </item>
    </channel>
</rss>
