<?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>T-SQL</title><link>http://sqlserver.ro/forums/15/ShowForum.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Re: Poate sa ma ajute cineva cu o mica problema legata de SQL server 2000</title><link>http://sqlserver.ro/forums/thread/1775.aspx</link><pubDate>Tue, 13 Feb 2007 10:00:04 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1775</guid><dc:creator>marianisaida</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1775.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=1775</wfw:commentRss><description>&lt;P&gt;Multumesc ,&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Ai dreptate asa au folosit ei, am testat si eu acum aceata procedura si a functionat.!!!&lt;/P&gt;
&lt;P&gt;multumesc , acum sunt foarte lamurit!!! :)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Re: Poate sa ma ajute cineva cu o mica problema legata de SQL server 2000</title><link>http://sqlserver.ro/forums/thread/1774.aspx</link><pubDate>Tue, 13 Feb 2007 09:59:13 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1774</guid><dc:creator>xmldeveloper</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1774.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=1774</wfw:commentRss><description>&lt;P&gt;Din materialul citat de dumneavoastra aruncati o privire in sectiunea &lt;STRONG&gt;Implementing User-defined Data Types&lt;/STRONG&gt;. Veti gasi ceva de genul:&lt;FONT face=OfficinaSans-Bold size=5&gt;&lt;/P&gt;&lt;/FONT&gt;
&lt;P align=left&gt;&lt;FONT face=Courier size=2&gt;&lt;STRONG&gt;EXEC sp_addtype movie_num, 'int', 'NOT NULL';&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description></item><item><title>Re: Poate sa ma ajute cineva cu o mica problema legata de SQL server 2000</title><link>http://sqlserver.ro/forums/thread/1773.aspx</link><pubDate>Tue, 13 Feb 2007 09:45:35 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1773</guid><dc:creator>rsocol</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1773.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=1773</wfw:commentRss><description>&lt;p&gt;Probabil ei au definit un tip de date numit "movie_num", folosind sp_addtype.&lt;/p&gt;&lt;p&gt;Răzvan&lt;br&gt;&lt;/p&gt;</description></item><item><title>Re: Poate sa ma ajute cineva cu o mica problema legata de SQL server 2000</title><link>http://sqlserver.ro/forums/thread/1772.aspx</link><pubDate>Tue, 13 Feb 2007 09:26:16 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1772</guid><dc:creator>marianisaida</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1772.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=1772</wfw:commentRss><description>&lt;P&gt;Multumesc, asa a functionat!!!&lt;/P&gt;
&lt;P&gt;Inca o intrebare : Eu am o documentatie ce se numeste Microsoft SQL Server 2000 - Database Design, si in acesta documentati folosesc cam desc aceasta format :&lt;FONT face=Courier size=2&gt;&lt;/P&gt;
&lt;P align=left&gt;CREATE PROC dbo.DeleteMovie&lt;/P&gt;
&lt;P align=left&gt;@movie_num movie_num = null , si am mai gasit si altele exemple la fel intrebarea mea se poate scrie si in acest mod sau au gresit ei prin documentatie?&lt;/P&gt;
&lt;P align=left&gt;Multumesc inca odata pentru raspuns.&lt;/P&gt;
&lt;P align=left&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;</description></item><item><title>Re: Poate sa ma ajute cineva cu o mica problema legata de SQL server 2000</title><link>http://sqlserver.ro/forums/thread/1771.aspx</link><pubDate>Tue, 13 Feb 2007 09:15:27 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1771</guid><dc:creator>xmldeveloper</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1771.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=1771</wfw:commentRss><description>&lt;P&gt;Incercati asa:&lt;/P&gt;
&lt;P&gt;CREATE PROC dbo.DeleteCust&lt;BR&gt;&lt;STRONG&gt;@cust_num int = NULL&lt;/STRONG&gt;&lt;BR&gt;AS&lt;BR&gt;IF EXISTS (SELECT cust_num FROM rental WHERE cust_num =&lt;BR&gt;@cust_num)&lt;BR&gt;BEGIN&lt;BR&gt;RAISERROR(50001, 10, 1)&lt;BR&gt;RETURN&lt;BR&gt;END&lt;BR&gt;DELETE FROM customer&lt;BR&gt;WHERE cust_num = @cust_num&lt;BR&gt;GO&lt;BR&gt;&lt;/P&gt;</description></item><item><title>Poate sa ma ajute cineva cu o mica problema legata de SQL server 2000</title><link>http://sqlserver.ro/forums/thread/1770.aspx</link><pubDate>Tue, 13 Feb 2007 09:07:02 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1770</guid><dc:creator>marianisaida</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1770.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=1770</wfw:commentRss><description>&lt;P&gt;&amp;nbsp;Salut tuturor, vreau sa creez aceata procedura , dar din pacate imi da o mesaj de eroare (mesajul eroare se gaseste dupa procedura). Am incercat sa adaug tipul de data(ex. @cust_num int, cust_num = null&amp;nbsp;). Sincer chiar nu stiu cum se face. Poate sa ma ajute cineva, va rog!!!!!. Nu de alta dar nici in Book online nu am gasit vreun raspuns.&lt;/P&gt;
&lt;P&gt;CREATE PROC dbo.DeleteCust&lt;BR&gt;@cust_num cust_num = null &lt;BR&gt;AS&lt;BR&gt;IF EXISTS (SELECT cust_num FROM rental WHERE cust_num =&lt;BR&gt;@cust_num)&lt;BR&gt;BEGIN&lt;BR&gt;RAISERROR(50001, 10, 1)&lt;BR&gt;RETURN&lt;BR&gt;END&lt;BR&gt;DELETE FROM customer&lt;BR&gt;WHERE cust_num = @cust_num&lt;BR&gt;GO&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Server: Msg 2715, Level 16, State 3, Procedure DeleteCust, Line 0&lt;BR&gt;Column or parameter #1: Cannot find data type cust_num.&lt;BR&gt;Parameter &lt;A href="mailto:'@cust_num'"&gt;'@cust_num'&lt;/A&gt; has an invalid data type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item></channel></rss>