<?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</title><link>http://sqlserver.ro/forums/14/ShowForum.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Re: upper in sql</title><link>http://sqlserver.ro/forums/thread/4753.aspx</link><pubDate>Thu, 24 Apr 2008 14:02:10 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:4753</guid><dc:creator>rsocol</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/4753.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=4753</wfw:commentRss><description>O mică observaţie, Katalyn: e suficient să pui COLLATE-ul într-un singur loc (ori în stânga egalului, ori în dreapta), iar cealaltă expresie se va converti automat la collation-ul specificat explicit. Pentru mai multe detalii despre misteriosul subiect numit "Collation Precedence", vezi: &lt;a href="http://msdn2.microsoft.com/en-us/library/ms179886.aspx"&gt;http://msdn2.microsoft.com/en-us/library/ms179886.aspx&lt;/a&gt;&lt;br&gt;&lt;br&gt;Răzvan&lt;br&gt;</description></item><item><title>Re: upper in sql</title><link>http://sqlserver.ro/forums/thread/4740.aspx</link><pubDate>Wed, 23 Apr 2008 09:48:35 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:4740</guid><dc:creator>Abadon83</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/4740.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=4740</wfw:commentRss><description>multumesc Catalin.&lt;br&gt;e ceea ce cautam.&lt;br&gt;</description></item><item><title>Re: upper in sql</title><link>http://sqlserver.ro/forums/thread/4737.aspx</link><pubDate>Wed, 23 Apr 2008 08:02:42 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:4737</guid><dc:creator>katalyn</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/4737.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=4737</wfw:commentRss><description>&lt;P&gt;Ai putea să foloseşti un collate care este case sensitive. Acest lucru îl poţi folosi la nivel de bază de date (toate operaţiunile de comparare a şirurilor de caractere vor fi influenţate) sau la nivel de condiţie precum în exemplul de mai jos:&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;SELECT&lt;/FONT&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;CASE&lt;/FONT&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;WHEN&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;'Fav'&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;collate&lt;/FONT&gt;&lt;FONT size=2&gt; SQL_Latin1_General_CP1_CS_AS &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;'Fav'&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;collate&lt;/FONT&gt;&lt;FONT size=2&gt; SQL_Latin1_General_CP1_CS_AS&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;THEN&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;'Sirurile de caractere sunt identice'&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ELSE&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;'Sirurile sunt diferite'&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;END&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;AS&lt;/FONT&gt;&lt;FONT size=2&gt; Rezultat&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;sau &lt;/FONT&gt;&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;SELECT&lt;/FONT&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;CASE&lt;/FONT&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;WHEN&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;'FAV'&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;collate&lt;/FONT&gt;&lt;FONT size=2&gt; SQL_Latin1_General_CP1_CS_AS &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;'Fav'&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;collate&lt;/FONT&gt;&lt;FONT size=2&gt; SQL_Latin1_General_CP1_CS_AS&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;THEN&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;'Sirurile de caractere sunt identice'&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ELSE&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;'Sirurile sunt diferite'&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;END&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;AS&lt;/FONT&gt;&lt;FONT size=2&gt; Rezultat&lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT size=2&gt;Rezultatul în primul caz va fi: &lt;FONT color=#ff0000&gt;Sirurile de caractere sunt identice &lt;/FONT&gt;&lt;FONT color=#000000&gt;iar în al 2-lea caz: &lt;/FONT&gt;&lt;FONT color=#ff0000&gt;Sirurile sunt diferite&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#000000&gt;În mod default, collation-ul pt. baza mea de date este SQL_Latin1_General_CP1_CI_AS (case insensitive) dar condiţia este evaluată cu collation SQL_Latin1_General_CP1_CS_AS (case sensitive)&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;</description></item><item><title>Re: upper in sql</title><link>http://sqlserver.ro/forums/thread/4736.aspx</link><pubDate>Wed, 23 Apr 2008 07:19:41 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:4736</guid><dc:creator>B_gd_n[ ]Sahlean</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/4736.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=4736</wfw:commentRss><description>---&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&lt;/span&gt;&lt;br&gt;</description></item><item><title>upper in sql</title><link>http://sqlserver.ro/forums/thread/4735.aspx</link><pubDate>Wed, 23 Apr 2008 06:49:18 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:4735</guid><dc:creator>Abadon83</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/4735.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=4735</wfw:commentRss><description>vreau sa transform un select din fox in sql&lt;br&gt;si selectul meu de fox foloseste upper()&lt;br&gt;&lt;br&gt;problema e ca upperul din sql nu e la fel cu cel din fox&lt;br&gt;select 1 from gest_docum where 'FAV'='Fav' imi returneaza 1 &lt;br&gt;&lt;br&gt;cum pot sa fac un select in care 'FAV' nu e egal cu 'Fav' &lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</description></item></channel></rss>