<?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: cum schimb format() din access?</title><link>http://sqlserver.ro/forums/thread/2487.aspx</link><pubDate>Wed, 15 Aug 2007 13:24:08 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2487</guid><dc:creator>B_gd_n[ ]Sahlean</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2487.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=2487</wfw:commentRss><description>&lt;p&gt;Povesti de succes ... cu SQL Server si CLR &lt;img src="http://sqlserver.ro/emoticons/emotion-1.gif" alt="Smile" /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;i&gt;NASDAQ developers like the fact that SQL Server 2005 significantly
enhances the database programming model by hosting the Microsoft .NET
Framework version 2.0 Common Language Runtime (CLR).&lt;/i&gt; It enables writing
procedures, triggers, and functions in any of the CLR languages,
including Microsoft Visual C#® .NET 2003 development tool, Microsoft
Visual Basic® .NET 2003 development system, and Microsoft Visual C++®
2003 development system. &lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;“So far we’ve been working with stored procedures, but we very much
like the idea of the new SQL CLR feature,” says Buu. “SQL CLR gives us
the ability to integrate powerful programmatic solutions without taking
the time hit of leaving the database to access an external application.
NASDAQ is devoted to delivering real-time solutions, so the ability to
use CLR from within the SQL Server 2005 database is a much appreciated
feature.”&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.microsoft.com/casestudies/casestudy.aspx?casestudyid=49271" title="http://www.microsoft.com/casestudies/casestudy.aspx?casestudyid=49271" target="_blank"&gt;http://www.microsoft.com/casestudies/casestudy.aspx?casestudyid=49271&lt;/a&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: cum schimb format() din access?</title><link>http://sqlserver.ro/forums/thread/2478.aspx</link><pubDate>Tue, 14 Aug 2007 14:17:31 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2478</guid><dc:creator>B_gd_n[ ]Sahlean</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2478.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=2478</wfw:commentRss><description>&lt;p&gt;Diana&amp;nbsp;&lt;/p&gt;&lt;p&gt;Sunt de acord cu faptul că limbajul SQL are anumite "limitări".&lt;/p&gt;

&lt;p&gt;Toata lumea s-a întrebat cum pot fi minimizate/eliminate aceste "limitări" ale limbajului SQL ! &lt;span style="font-weight:bold;"&gt;&lt;font color="red"&gt;Nimeni nu se întreaba de ce apar aceste "limitari" ! Aceasta este intrebarea cheie în opinia mea !&lt;/font&gt;&lt;/span&gt; &lt;/p&gt;

&lt;p&gt;&lt;b&gt;&amp;nbsp;"&lt;span class="IntelliTXT"&gt;&lt;span class="featureText"&gt;The only purposes of SQL are data management and retrieval. Period.&lt;/span&gt;&lt;/span&gt;" &lt;/b&gt;&lt;span class="byline"&gt;&lt;a href="http://www.intelligententerprise.com/authors/last_name.jhtml;jsessionid=O1RDIILFCML0EQSNDLRSKHSCJUNN2JVN?author_id=1328&amp;amp;fname=Joe&amp;amp;lname=Celko"&gt;
Joe&amp;nbsp;Celko&lt;/a&gt; , &lt;a href="http://www.intelligententerprise.com/showArticle.jhtml?articleID=50500830" title="http://www.intelligententerprise.com/showArticle.jhtml?articleID=50500830"&gt;http://www.intelligententerprise.com/showArticle.jhtml?articleID=50500830&lt;/a&gt;
&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-style:italic;"&gt;&lt;font color="green"&gt;"Limitările" limbajului SQL sunt generate de o - să zicem - &lt;/font&gt;&lt;/span&gt;&lt;span style="font-weight:bold;font-style:italic;"&gt;&lt;font color="green"&gt;neintelegere (corectă)&lt;/font&gt;&lt;/span&gt;&lt;span style="font-style:italic;"&gt;&lt;font color="green"&gt; a funcţiilor unei BD respectiv a functiilor unui SGBD. Avem de multe ori tendinţa de a atribui BD, respectiv SGBD -Sistemului de Gestiune a Bazelor de Date- funcţii/atribuţii NESPECIFICE.&lt;/font&gt;&lt;/span&gt; &lt;/p&gt;

&lt;p&gt;Problema Ioanei este una din aceste atribuţii care nu este specifică pentru un SGBD: şi anume formatarea rezultatelor. Formatarea trebuie realizată la nivelul aplicaţiei client, mai precis la nivel de formulare/rapoarte (interfaţă grafică). Formatarea de care are nevoie Ioana se poate realiza FOARTE SIMPLU in CrystalReports ! De ce nu se intreaba nimeni totuşi de ce în T-SQL o astfel de formatare se realizeaza ceva mai dificil iar în C# / VB.NET / CrystalReports &amp;amp; co e o problema extrem de simpla ?! &lt;span style="font-style:italic;"&gt;Poate ca un SGBD (ex. SQL Server) ar trebui sa fie si server web ... ? Nu-i aşa ? Glumesc evident !&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Iar mutarea CLR în baze de date este în primul rând &lt;i&gt;marketing&lt;/i&gt;. MS a bifat o altă noutate adusă în SQL Server.&amp;nbsp; &lt;b&gt;"Dot Net este în toate !" "Să ne rugăm lui Dot Net !" &lt;/b&gt;&lt;img src="http://sqlserver.ro/emoticons/emotion-11.gif" alt="Cool" /&gt;&lt;img src="http://sqlserver.ro/emoticons/emotion-7.gif" alt="Tongue Tied" /&gt;&lt;img src="http://sqlserver.ro/emoticons/emotion-2.gif" alt="Big Smile" /&gt; Glumesc şi eu ! Nu te supăra pe mine !&lt;br&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: cum schimb format() din access?</title><link>http://sqlserver.ro/forums/thread/2475.aspx</link><pubDate>Tue, 14 Aug 2007 12:58:56 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2475</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2475.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=2475</wfw:commentRss><description>&lt;p&gt;Bogdan, nu este chiar asa intotdeauna...Am tot respectul pentru Joe
Celko, dar aici exagereaza putin - chiar daca la un moment dat
pomeneste de "&lt;span class="IntelliTXT"&gt;&lt;span class="featureText"&gt;improperly skilled programmers&lt;/span&gt;&lt;/span&gt;"
- si nu ma convinge foarte mult.&amp;nbsp; Eu&amp;nbsp; una nu sunt atat
de&amp;nbsp; "purista" si uneori folosesc de exemplu CLR, bineinteles cu
precautiile de rigoare. Itzik Ben-Gan descrie astfel de scenarii aici:
http://www.sqlmag.com/Articles/ArticleID/49429/pg/1/1.html.&lt;br&gt;
&lt;/p&gt;&lt;p&gt;&amp;nbsp;Revenind la "&lt;span class="IntelliTXT"&gt;&lt;span class="featureText"&gt;improperly skilled programmers&lt;/span&gt;&lt;/span&gt;" - un astfel de individ poate cu "succes" sa "o dea in bara" ( ---&amp;gt; "&lt;span class="IntelliTXT"&gt;&lt;span class="featureText"&gt;screw up your entire enterprise&lt;/span&gt;&lt;/span&gt;") folosind CLR sau nu. Nicaieri nu exista protectie "anti prost" totala...&lt;img src="http://sqlserver.ro/emoticons/emotion-1.gif" alt="Smile" /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: cum schimb format() din access?</title><link>http://sqlserver.ro/forums/thread/2474.aspx</link><pubDate>Tue, 14 Aug 2007 12:02:31 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2474</guid><dc:creator>B_gd_n[ ]Sahlean</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2474.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=2474</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://sqlserver.ro/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Diana:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;
&lt;p&gt;Se poate folosi aici si o functie CLR (---&amp;gt; SQL 2005) - C# ofera mai multa flexibilitate in lucrul cu siruri.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;a href="http://www.intelligententerprise.com/showArticle.jhtml?articleID=50500830" title="http://www.intelligententerprise.com/showArticle.jhtml?articleID=50500830" target="_blank"&gt;Keys to the Database, &lt;font color="red" size="+2"&gt;&lt;b&gt;Please stay on that side of the database.&lt;/b&gt;&lt;/font&gt;&lt;/a&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: cum schimb format() din access?</title><link>http://sqlserver.ro/forums/thread/2471.aspx</link><pubDate>Tue, 14 Aug 2007 10:44:04 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2471</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2471.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=2471</wfw:commentRss><description>&lt;p&gt;Se poate folosi aici si o functie CLR (---&amp;gt; SQL 2005) - C# ofera mai multa flexibilitate in lucrul cu siruri.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: cum schimb format() din access?</title><link>http://sqlserver.ro/forums/thread/2470.aspx</link><pubDate>Tue, 14 Aug 2007 10:34:53 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2470</guid><dc:creator>rsocol</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2470.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=2470</wfw:commentRss><description>&lt;p&gt;Presupunând că e vorba doar de valori întregi, pozitive, care au maxim 4 cifre, o variantă mai simplă ar fi:&lt;/p&gt;&lt;p&gt;SELECT REPLACE(STR(coloana,4),' ','0') FROM tabela&lt;/p&gt;&lt;p&gt;Dacă valorile pot avea mai mult de 4 cifre, varianta lui Bogdan e mai bună.&lt;/p&gt;&lt;p&gt;Răzvan&lt;/p&gt;</description></item><item><title>Re: cum schimb format() din access?</title><link>http://sqlserver.ro/forums/thread/2468.aspx</link><pubDate>Tue, 14 Aug 2007 10:07:02 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2468</guid><dc:creator>B_gd_n[ ]Sahlean</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2468.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=2468</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://sqlserver.ro/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;ioana:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;stie cineva cumva cum schimb urmatoarea expresie &lt;/p&gt;&lt;p&gt;"FORMAT([vknKrit_Pkw].[kritnr],'0000')" din access in sql server???&lt;/p&gt;&lt;p&gt;stiu ca ar trebui sa folosesc&amp;nbsp; functia CONVERT dar nu stiu cum???&lt;/p&gt;&lt;p&gt;&amp;nbsp;multumesc anticipat!!!&lt;br&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;Functia &lt;b&gt;Format &lt;/b&gt;din Access returneaza o valoarea de tip &lt;b&gt;String&lt;/b&gt;.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b&gt;CREATE FUNCTION [dbo].[FormatNumber]( @val FLOAT ) &lt;br&gt;RETURNS VARCHAR(25)&lt;br&gt;BEGIN&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RETURN CASE &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN @val &amp;lt; 1000 THEN &lt;br&gt;&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; REPLICATE('0',4-LEN(CAST(ROUND(@val,0) AS VARCHAR(3))))&lt;br&gt;&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; +CAST(ROUND(@val,0) AS VARCHAR(3))&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ELSE CAST(@val AS VARCHAR(25))&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; END&lt;br&gt;END&lt;/b&gt;&lt;br&gt;&lt;br&gt;SELECT *, &lt;b&gt;dbo.FormatNumber([Salariu Brut])&lt;/b&gt;&lt;br&gt;FROM tabel &lt;br&gt;&lt;/p&gt;</description></item><item><title>Re: cum schimb format() din access?</title><link>http://sqlserver.ro/forums/thread/2467.aspx</link><pubDate>Tue, 14 Aug 2007 09:11:17 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2467</guid><dc:creator>ioana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2467.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=2467</wfw:commentRss><description>NU MA AJUTA....:((...&lt;br&gt;</description></item><item><title>Re: cum schimb format() din access?</title><link>http://sqlserver.ro/forums/thread/2465.aspx</link><pubDate>Tue, 14 Aug 2007 08:32:44 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2465</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2465.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=2465</wfw:commentRss><description>&lt;p&gt;Vezi daca te ajuta&lt;/p&gt;&lt;p&gt;http://msdn2.microsoft.com/en-us/library/ms187928.aspx&amp;nbsp;&lt;/p&gt;</description></item><item><title>cum schimb format() din access?</title><link>http://sqlserver.ro/forums/thread/2464.aspx</link><pubDate>Tue, 14 Aug 2007 08:22:09 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2464</guid><dc:creator>ioana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2464.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=2464</wfw:commentRss><description>&lt;p&gt;stie cineva cumva cum schimb urmatoarea expresie &lt;/p&gt;&lt;p&gt;"FORMAT([vknKrit_Pkw].[kritnr],'0000')" din access in sql server???&lt;/p&gt;&lt;p&gt;stiu ca ar trebui sa folosesc&amp;nbsp; functia CONVERT dar nu stiu cum???&lt;/p&gt;&lt;p&gt;&amp;nbsp;multumesc anticipat!!!&lt;br&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>