<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SQL Server (και άλλες databases)</title><link>https://www.dotnetzone.gr:443/cs/forums/28/ShowForum.aspx</link><description>Θέματα που αφορούν τον SQL Server (7.0, 2000, 2005) αλλά και Oracle, Access, DB2, MySQL, κλπ.</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: Μεταφορά Δαταβασε από SQL Server Express σ' εναν άλλο Express</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/13570.aspx</link><pubDate>Sat, 03 Jun 2006 14:34:35 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:13570</guid><dc:creator>Ηλίας Κεκάκος</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/13570.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=13570</wfw:commentRss><description>&amp;nbsp; Ευχαριστώ για την βοήθεια&lt;img src="/cs/emoticons/emotion-21.gif" alt="Yes" /&gt;</description></item><item><title>Απ: Μεταφορά Δαταβασε από SQL Server Express σ' εναν άλλο Express</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/13565.aspx</link><pubDate>Sat, 03 Jun 2006 05:10:59 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:13565</guid><dc:creator>vxan</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/13565.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=13565</wfw:commentRss><description>Χρησιμοποίησε την παρακάτω sp &lt;br /&gt;
&lt;br /&gt;
sp_change_users_login&lt;br /&gt;
&lt;br /&gt;
Changes the relationship between a Microsoft® SQL Server™ login and a SQL Server user in the current database.&lt;br /&gt;
&lt;br /&gt;
Syntax&lt;br /&gt;
&lt;br /&gt;
sp_change_users_login [ @Action = ] 'action' &lt;br /&gt;
&lt;br /&gt;
    [ , [ @UserNamePattern = ] 'user' ] &lt;br /&gt;
&lt;br /&gt;
    [ , [ @LoginName = ] 'login' ]&lt;br /&gt;
&lt;br /&gt;
Διάβασε στα books online του sql&lt;br /&gt;
&lt;br /&gt;</description></item><item><title>Μεταφορά Δαταβασε από SQL Server Express σ' εναν άλλο Express</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/13564.aspx</link><pubDate>Sat, 03 Jun 2006 04:01:19 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:13564</guid><dc:creator>Ηλίας Κεκάκος</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/13564.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=13564</wfw:commentRss><description>&lt;P&gt;&amp;nbsp; Παιδιά την βοήθειά σας. Έχω εγκατάστήσει 2 instances του&amp;nbsp;Sql Server Express και θέλω να μεταφέρω την μία database από το ένα instance στο άλλο. Έκανα Drop και Attach και πέτυχε. Το πρόβλημα είναι ότι έχω και χρήστες πάνω στην Database τους οποίους δεν μπορώ να ενεργοποιήσω. Δεν με αφήνει να προσθέσω ένα login και να κάνω map τον user της database, το μύνημα λάθους είναι:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;TITLE: Microsoft SQL Server Management Studio Express&lt;BR&gt;------------------------------&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Create failed for User 'lings2006'.&amp;nbsp; (Microsoft.SqlServer.Express.Smo)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;For help, click: &lt;/STRONG&gt;&lt;A href="http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&amp;amp;ProdVer=9.00.2047.00&amp;amp;EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&amp;amp;EvtID=Create+User&amp;amp;LinkId=20476"&gt;&lt;STRONG&gt;http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&amp;amp;ProdVer=9.00.2047.00&amp;amp;EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&amp;amp;EvtID=Create+User&amp;amp;LinkId=20476&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;------------------------------&lt;BR&gt;ADDITIONAL INFORMATION:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.Express.ConnectionInfo)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;------------------------------&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;User, group, or role 'lings2006' already exists in the current database. (Microsoft SQL Server, Error: 15023)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;For help, click: &lt;/STRONG&gt;&lt;A href="http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&amp;amp;ProdVer=09.00.2047&amp;amp;EvtSrc=MSSQLServer&amp;amp;EvtID=15023&amp;amp;LinkId=20476"&gt;&lt;STRONG&gt;http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&amp;amp;ProdVer=09.00.2047&amp;amp;EvtSrc=MSSQLServer&amp;amp;EvtID=15023&amp;amp;LinkId=20476&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;------------------------------&lt;BR&gt;BUTTONS:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;OK&lt;BR&gt;------------------------------&lt;/STRONG&gt;&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;Ενώ όταν πάω να κάνω delete τον user από την database έχω το ακόλουθω μύνημα:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;TITLE: Microsoft SQL Server Management Studio Express&lt;BR&gt;------------------------------&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Drop failed for User 'lings2006'.&amp;nbsp; (Microsoft.SqlServer.Express.Smo)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;For help, click: &lt;/STRONG&gt;&lt;A href="http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&amp;amp;ProdVer=9.00.2047.00&amp;amp;EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&amp;amp;EvtID=Drop+User&amp;amp;LinkId=20476"&gt;&lt;STRONG&gt;http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&amp;amp;ProdVer=9.00.2047.00&amp;amp;EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&amp;amp;EvtID=Drop+User&amp;amp;LinkId=20476&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;------------------------------&lt;BR&gt;ADDITIONAL INFORMATION:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.Express.ConnectionInfo)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;------------------------------&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The database principal has granted or denied permissions to objects in the database and cannot be dropped. (Microsoft SQL Server, Error: 15284)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;For help, click: &lt;/STRONG&gt;&lt;A href="http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&amp;amp;ProdVer=09.00.2047&amp;amp;EvtSrc=MSSQLServer&amp;amp;EvtID=15284&amp;amp;LinkId=20476"&gt;&lt;STRONG&gt;http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&amp;amp;ProdVer=09.00.2047&amp;amp;EvtSrc=MSSQLServer&amp;amp;EvtID=15284&amp;amp;LinkId=20476&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;------------------------------&lt;BR&gt;BUTTONS:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;OK&lt;BR&gt;------------------------------&lt;/STRONG&gt;&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Μπορεί κάποιος να μου πεί τι να κάνω ώστε να μετφέρω την database και τους users αυτής από τον ένα SQL Server Express στον άλλο;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Ευχαριστώ &lt;/P&gt;</description></item></channel></rss>