<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlserver.ro/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>Intrebari generale</title><link>http://sqlserver.ro/forums/16/ShowForum.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Re: disable/enable foreign keys constraints</title><link>http://sqlserver.ro/forums/thread/6959.aspx</link><pubDate>Wed, 25 Mar 2009 15:58:53 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6959</guid><dc:creator>rsocol</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6959.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=6959</wfw:commentRss><description>&lt;P&gt;Nu uita ca atunci când termini să-i dai:&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="TEXT-ALIGN:left;WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:11px 'Courier New';WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0;" class=Apple-style-span&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:'Courier New';COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;exec&lt;/SPAN&gt;&lt;SPAN class=Apple-converted-space&gt;&amp;nbsp;&lt;/SPAN&gt;sp_MSforeachtable&lt;SPAN class=Apple-converted-space&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:'Courier New';COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;'ALTER TABLE ? &lt;U&gt;WITH CHECK&lt;/U&gt; CHECK CONSTRAINT ALL'&lt;/SPAN&gt;&lt;SPAN class=Apple-converted-space&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma&gt;&lt;SPAN style="TEXT-ALIGN:left;WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:11px 'Courier New';WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0;" class=Apple-style-span&gt;&lt;SPAN class=Apple-converted-space&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="TEXT-ALIGN:left;WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:11px 'Courier New';WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0;" class=Apple-style-span&gt;&lt;SPAN class=Apple-converted-space&gt;&lt;FONT size=2 face=Tahoma&gt;Clauza WITH CHECK este utilă pentru a face constraint-urile să fie din nou&amp;nbsp;"trusted".&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma&gt;&lt;SPAN style="TEXT-ALIGN:left;WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:11px 'Courier New';WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0;" class=Apple-style-span&gt;&lt;SPAN class=Apple-converted-space&gt;&lt;FONT size=2 face=Tahoma&gt;Răzvan&lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;</description></item><item><title>Re: disable/enable foreign keys constraints</title><link>http://sqlserver.ro/forums/thread/6958.aspx</link><pubDate>Wed, 25 Mar 2009 15:18:44 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6958</guid><dc:creator>xmldeveloper</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6958.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=6958</wfw:commentRss><description>Se poate face cu un cursor (folosind numele tabelelor) sau daca este vorba de SQL Server 2000 folosind urmatorul cod:&lt;br&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;exec&lt;/span&gt; sp_MSforeachtable &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;'ALTER TABLE ? NOCHECK CONSTRAINT ALL'&lt;/span&gt; &lt;/span&gt;&lt;br&gt;</description></item><item><title>disable/enable foreign keys constraints</title><link>http://sqlserver.ro/forums/thread/6957.aspx</link><pubDate>Wed, 25 Mar 2009 15:09:21 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6957</guid><dc:creator>cioby2k</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6957.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=6957</wfw:commentRss><description>salut.&lt;br&gt;incerc sa copiez datele de pe o baza pe alta si nu stiu in ce ordine trebuie copiate tabelele. de aceea caut o metoda pentru a dezactiva foreign key-urile temporar, pentru cat inserez datele in tabela. aveti vreo idee cum se face?&lt;br&gt;</description></item></channel></rss>