<?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: functie care "taie" o portiune dintr-un string - sql server 2000</title><link>http://sqlserver.ro/forums/thread/3732.aspx</link><pubDate>Mon, 07 Jan 2008 13:55:47 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:3732</guid><dc:creator>rsocol</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/3732.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=3732</wfw:commentRss><description>Poţi folosi una din variantele următoare:&lt;br&gt;&lt;br&gt;declare @var varchar (200)&lt;br&gt;set @var = 'sql server 2000'&lt;br&gt;&lt;br&gt;SELECT SUBSTRING(@var,5,200)&lt;br&gt;SELECT RIGHT(@var,LEN(@var)-4)&lt;br&gt;SELECT STUFF(@var,1,4,'')&lt;br&gt;&lt;br&gt;Răzvan&lt;br&gt;</description></item><item><title>Re: functie care "taie" o portiune dintr-un string - sql server 2000</title><link>http://sqlserver.ro/forums/thread/3728.aspx</link><pubDate>Mon, 07 Jan 2008 09:48:18 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:3728</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/3728.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=3728</wfw:commentRss><description>&lt;P&gt;da, e bine asa.....multumesc mult&lt;/P&gt;
&lt;P&gt;alex.&lt;/P&gt;</description></item><item><title>Re: functie care "taie" o portiune dintr-un string - sql server 2000</title><link>http://sqlserver.ro/forums/thread/3727.aspx</link><pubDate>Mon, 07 Jan 2008 09:14:30 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:3727</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/3727.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=3727</wfw:commentRss><description>&lt;P&gt;as putea face cu &lt;/P&gt;
&lt;P&gt;replace(@var,'sql ','')&lt;/P&gt;
&lt;P&gt;dar sunt sigur ca exista si o functie&lt;/P&gt;
&lt;P&gt;alex.&lt;/P&gt;</description></item><item><title>Re: functie care "taie" o portiune dintr-un string - sql server 2000</title><link>http://sqlserver.ro/forums/thread/3726.aspx</link><pubDate>Mon, 07 Jan 2008 09:12:45 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:3726</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/3726.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=3726</wfw:commentRss><description>&lt;P&gt;Incearca SUBSTRING - de exemplu:&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;DECLARE&lt;/FONT&gt;&lt;FONT size=2&gt; @k &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;varchar&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;(&lt;/FONT&gt;&lt;FONT size=2&gt;50&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;)&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;SET&lt;/FONT&gt;&lt;FONT size=2&gt; @k &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;'sql server 2000'&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;SELECT&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff00ff size=2&gt;SUBSTRING&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;(&lt;/FONT&gt;&lt;FONT size=2&gt;@k&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;,&lt;/FONT&gt;&lt;FONT size=2&gt; 4&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;,&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff00ff size=2&gt;LEN&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;(&lt;/FONT&gt;&lt;FONT size=2&gt;@k&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;)&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;-&lt;/FONT&gt;&lt;FONT size=2&gt; 3&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#808080 size=2&gt;* Pentru functiile care "lucreaza" cu siruri, vezi BOL - "string functions"&lt;/P&gt;&lt;/FONT&gt;</description></item><item><title>functie care "taie" o portiune dintr-un string - sql server 2000</title><link>http://sqlserver.ro/forums/thread/3725.aspx</link><pubDate>Mon, 07 Jan 2008 09:05:11 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:3725</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/3725.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=3725</wfw:commentRss><description>&lt;P&gt;salut&lt;/P&gt;
&lt;P&gt;am urmatoarele date:&lt;/P&gt;
&lt;P&gt;declare @var varchar (200)&lt;/P&gt;
&lt;P&gt;set @var = 'sql server 2000'&lt;/P&gt;
&lt;P&gt;ce functie intoarce doar 'server 2000' ?&lt;/P&gt;
&lt;P&gt;select FunctieaPeCareOCaut(@var,1,4)&lt;/P&gt;
&lt;P&gt;multumesc mult&lt;/P&gt;
&lt;P&gt;alex.&lt;/P&gt;</description></item></channel></rss>