<?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: caractere unicode</title><link>http://sqlserver.ro/forums/thread/7645.aspx</link><pubDate>Sun, 04 Oct 2009 18:54:30 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7645</guid><dc:creator>ggciubuc</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7645.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7645</wfw:commentRss><description>Asa cum am vorbit la telefon , anumite prelucrari s-ar putea face mai bine din afara SQL folosind CLR , despre asta aici : http://www.devsource.com/c/a/Using-VS/Introducing-SQL-Server-2005s-CLR-Integration/&lt;br /&gt;</description></item><item><title>Re: caractere unicode</title><link>http://sqlserver.ro/forums/thread/7644.aspx</link><pubDate>Sun, 04 Oct 2009 11:30:56 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7644</guid><dc:creator>gelucoman70</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7644.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7644</wfw:commentRss><description>&lt;P&gt;Mulțumesc Răzvan.&lt;/P&gt;
&lt;P&gt;Am SQL Server 2005 și nu-mi rămâne decât să purced a face căutări și update-uri manual. Nu garantez acuratețe de 100%.&lt;/P&gt;</description></item><item><title>Re: caractere unicode</title><link>http://sqlserver.ro/forums/thread/7643.aspx</link><pubDate>Sun, 04 Oct 2009 08:13:02 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7643</guid><dc:creator>rsocol</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7643.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7643</wfw:commentRss><description>&amp;#206;ntr-adevăr, pe majoritatea collation-urilor UPPER(N'şș') returnează 'Şș'. Dacă ai SQL Server 2008, poţi folosi un collation de genul Latin1_General_100_CI_AS sau Romanian_100_CI_AS, iar &amp;#238;n acest caz va returna 'ŞȘ'.&lt;br /&gt;&lt;br /&gt;Dacă foloseşti SQL Server 2005 (sau mai vechi), recomand folosirea diacriticelor vechi (cu sedilă, nu cu virgulă), care apar atunci c&amp;#226;nd se foloseşte tastatura "Legacy" &amp;#238;n Vista.&lt;br /&gt;&lt;br /&gt;Se pare că pe celelalte collation-uri (&amp;#238;n afară de faptul că nu se recunoaşte echivalenţa dintre literele mici şi mari cu virguliţă, ceea ce era de aşteptat, av&amp;#226;nd &amp;#238;n vedere că aceste litere au fost introduse mai t&amp;#226;rziu), mai există şi un bug care cauzează nerecunoaşterea literei respective de funcţia REPLACE, &amp;#238;n cazul &amp;#238;n care &amp;#238;naintea ei apar alte caractere, precum şi recunoaşterea literei pe o poziţie greşită de  funcţia PATINDEX, de exemplu:&lt;br /&gt;SELECT REPLACE(N'șșaș',N'ș',N'!')&lt;br /&gt;SELECT PATINDEX(N'%ș%',N'abș')&lt;br /&gt;&lt;br /&gt;Răzvan</description></item><item><title>Re: caractere unicode</title><link>http://sqlserver.ro/forums/thread/7642.aspx</link><pubDate>Sun, 04 Oct 2009 07:24:24 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7642</guid><dc:creator>gelucoman70</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7642.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7642</wfw:commentRss><description>&lt;P&gt;Așa este.&lt;/P&gt;
&lt;P&gt;Cum aș putea face update cu "Ș", deoarece în urma unui update cu UPPER, toate caracterele au devenit majuscule, mai puțin "ș"=nchar(537) și din această cauză am valoarea "METEș". Cum spuneam și mai devreme am folosit replace, dar n-a funcționat.&lt;/P&gt;
&lt;P&gt;În schimb, un UPPER pentru caracterul "ș"=nchar(351) a funcționat și a rezultat caracterul "Ș"=nchar(350).&lt;/P&gt;
&lt;P&gt;Să fie oare problemă de COLLATE? Și dacă DA, cum fac totuși update?&lt;/P&gt;</description></item><item><title>Re: caractere unicode</title><link>http://sqlserver.ro/forums/thread/7641.aspx</link><pubDate>Sun, 04 Oct 2009 06:39:47 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7641</guid><dc:creator>rsocol</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7641.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7641</wfw:commentRss><description>Există două feluri de ş şi ţ: cele cu virguliţă şi cele cu sedilă.&lt;br /&gt;&lt;br /&gt;SELECT NCHAR(536) AS [Ș], NCHAR(537) AS [ș], NCHAR(350) AS [Ş], NCHAR(351) AS [ş]&lt;br /&gt;&lt;br /&gt;SELECT NCHAR(538) AS [Ț], NCHAR(539) AS [ț], NCHAR(354) AS [Ţ], NCHAR(355) AS [ţ]&lt;br /&gt;&lt;br /&gt;Vezi &lt;a href=http://ro.wikipedia.org/wiki/Ş&gt;http://ro.wikipedia.org/wiki/Ş&lt;/a&gt;&lt;br /&gt;şi &lt;a href=http://ro.wikipedia.org/wiki/Wikipedia:Diacriticele_vechi_şi_noi&gt;http://ro.wikipedia.org/wiki/Wikipedia:Diacriticele_vechi_şi_noi&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Răzvan</description></item><item><title>Re: caractere unicode</title><link>http://sqlserver.ro/forums/thread/7640.aspx</link><pubDate>Sun, 04 Oct 2009 05:25:09 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7640</guid><dc:creator>gelucoman70</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7640.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7640</wfw:commentRss><description>&lt;P&gt;Multumesc, a functionat. &lt;/P&gt;
&lt;P&gt;In continuare am folosit replace(&amp;lt;coloana&amp;gt;, nchar(537), nchar(350)) pentru a face un update, dar se pare ca nu-mi detecteaza caracterul "ș".&lt;/P&gt;</description></item><item><title>Re: caractere unicode</title><link>http://sqlserver.ro/forums/thread/7639.aspx</link><pubDate>Sun, 04 Oct 2009 05:02:22 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7639</guid><dc:creator>rsocol</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7639.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7639</wfw:commentRss><description>&amp;#206;ncearcă cu:&lt;br /&gt;&lt;br /&gt;select * from tabela where coloana like N'%METEș%'&lt;br /&gt;&lt;br /&gt;(string-urile unicode trebuie prefixate cu N, altfel sunt convertite la string-uri ascii, &amp;#238;nainte de execuţie)&lt;br /&gt;&lt;br /&gt;Răzvan</description></item><item><title>caractere unicode</title><link>http://sqlserver.ro/forums/thread/7638.aspx</link><pubDate>Sun, 04 Oct 2009 04:49:02 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7638</guid><dc:creator>gelucoman70</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7638.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7638</wfw:commentRss><description>&lt;P&gt;As dori sa fac un update pe o coloana unde sa pot inlocui caracterul&amp;nbsp;"ș"=nchar(537) cu "Ș"=nchar(350) .&lt;/P&gt;
&lt;P&gt;Nu-mi intoarce nimic o interogare la care am o clauza&amp;nbsp;WHERE unde-i specific o valoare ce contine caracterul "ș", fapt pentru care nici nu pot face update.&lt;/P&gt;
&lt;P&gt;select * from &amp;lt;tabela&amp;gt; where &amp;lt;coloana&amp;gt; like '%METEș%'&lt;/P&gt;
&lt;P&gt;Multumesc anticipat.&lt;/P&gt;</description></item></channel></rss>