<?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: Index sau Constraint pe 2 campuri</title><link>http://sqlserver.ro/forums/thread/8161.aspx</link><pubDate>Wed, 31 Mar 2010 10:25:51 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8161</guid><dc:creator>ssandu</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8161.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=8161</wfw:commentRss><description>Multumesc&lt;br&gt;Asta am facut intre timp.&lt;br&gt;</description></item><item><title>Re: Index sau Constraint pe 2 campuri</title><link>http://sqlserver.ro/forums/thread/8160.aspx</link><pubDate>Wed, 31 Mar 2010 10:23:18 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8160</guid><dc:creator>ignatandrei</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8160.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=8160</wfw:commentRss><description>Poti incerca cu un &lt;br&gt;trigger instead of insert&lt;br&gt;</description></item><item><title>Re: Index sau Constraint pe 2 campuri</title><link>http://sqlserver.ro/forums/thread/8159.aspx</link><pubDate>Wed, 31 Mar 2010 09:50:08 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8159</guid><dc:creator>ssandu</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8159.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=8159</wfw:commentRss><description>Asa m-am gandit si eu dar nu pot modifica structura bazei de date :(&lt;br&gt;</description></item><item><title>Re: Index sau Constraint pe 2 campuri</title><link>http://sqlserver.ro/forums/thread/8158.aspx</link><pubDate>Wed, 31 Mar 2010 09:44:33 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8158</guid><dc:creator>rsocol</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8158.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=8158</wfw:commentRss><description>Corect ar fi să normalizezi această tabelă, adică &amp;#238;n loc să ai tabela Achiziţii cu coloanele NrFactura, ID_Produs, DenumireProdus să ai o tabelă Produse cu ID_Produs şi DenumireProdus (&amp;#238;n care ID_Produs este primary key, iar DenumireProdus ar putea fi cheie unică) şi o tabelă Achiziţii &amp;#238;n care ai (&amp;#238;n afară de NrFactură) doar coloana ID_Produs, care este foreign key către tabela Produse.&lt;br /&gt;&lt;br /&gt;Dacă nu poţi să corectezi structura tabelelor, atunci nu poţi dec&amp;#226;t să faci un trigger (nu cred că este posibil să implementezi această regulă doar cu indecşi unici sau cu check constraint-uri).&lt;br /&gt;&lt;br /&gt;Răzvan</description></item><item><title>Index sau Constraint pe 2 campuri</title><link>http://sqlserver.ro/forums/thread/8157.aspx</link><pubDate>Wed, 31 Mar 2010 09:34:07 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8157</guid><dc:creator>ssandu</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8157.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=8157</wfw:commentRss><description>Salut&lt;br&gt;Am 2 campuri intr-o tabela ID si Produs&lt;br&gt;Cum pot face ca la acelasi ID sa nu poata fi introdus alt produs dar sa poata fi introduse produse cu acelasi id ?&lt;br&gt;ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Produs&lt;br&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Produs1&lt;br&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Produs2&lt;br&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Produs1&lt;br&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Produs3&amp;nbsp;&amp;nbsp;&amp;nbsp; -- eroare&lt;br&gt;&lt;br&gt;&lt;br&gt;Multumesc&lt;br&gt;</description></item></channel></rss>