<?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: Criptare date intr-o tabela...</title><link>http://sqlserver.ro/forums/thread/4462.aspx</link><pubDate>Fri, 21 Mar 2008 11:52:07 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:4462</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/4462.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=4462</wfw:commentRss><description>&lt;P&gt;Nu te ajuta clasele din namespace-ul System.Security.Criptography?&lt;/P&gt;</description></item><item><title>Re: Criptare date intr-o tabela...</title><link>http://sqlserver.ro/forums/thread/4458.aspx</link><pubDate>Fri, 21 Mar 2008 11:33:11 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:4458</guid><dc:creator>ThePuiu</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/4458.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=4458</wfw:commentRss><description>evident ca nu functioneaza in Access dar pt mine a fost folositoare aceasta bucata de cod:&lt;BR&gt;&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;select&lt;/SPAN&gt;&lt;FONT face="Courier New"&gt; @&lt;FONT size=2&gt;&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;continue&lt;/SPAN&gt; = &lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:fuchsia;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;len&lt;/SPAN&gt;(@&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:fuchsia;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;str&lt;/SPAN&gt;)&lt;BR&gt;&lt;BR&gt;&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;while&lt;/SPAN&gt; @&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;continue&lt;/SPAN&gt; &amp;gt; 0&lt;BR&gt;&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;begin&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&lt;FONT size=2&gt;&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;select&lt;/SPAN&gt; @result = (&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;SELECT&lt;/SPAN&gt; replacement &lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;FROM&lt;/SPAN&gt; eug_tst &lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;WHERE&lt;/SPAN&gt; (car = &lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:fuchsia;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;substring&lt;/SPAN&gt;(@&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:fuchsia;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;str&lt;/SPAN&gt;,@&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;continue&lt;/SPAN&gt;&lt;/FONT&gt;,1)))&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;+ @result&lt;BR&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;select&lt;/SPAN&gt; @&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;continue&lt;/SPAN&gt; = @&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;continue&lt;/SPAN&gt; - 1&lt;/FONT&gt;&lt;BR&gt;pt ca pe baza ei am gindit functia scrisa in C#.</description></item><item><title>Re: Criptare date intr-o tabela...</title><link>http://sqlserver.ro/forums/thread/4455.aspx</link><pubDate>Fri, 21 Mar 2008 09:30:17 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:4455</guid><dc:creator>Gherry</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/4455.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=4455</wfw:commentRss><description>pai functia respectiva nu ar trebui sa functioneze pe access. Spune-mi te rog cum ai procedat pt ca e foarte util de stiut cum ai facut conversia.&lt;br&gt;</description></item><item><title>Re: Criptare date intr-o tabela...</title><link>http://sqlserver.ro/forums/thread/4454.aspx</link><pubDate>Fri, 21 Mar 2008 08:56:45 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:4454</guid><dc:creator>ThePuiu</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/4454.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=4454</wfw:commentRss><description>&lt;P&gt;Da, e adevarata chestia cu criptarea coloanei sau a tabelei, dar eu trebuie sa fac criptarea intr-un mdb Access...am uitat sa precizez. Functia de mai sus cu parcurgerea este ceea ce vroiam.... Pe un Core 2, criptarea dureaza aprox 5 sec la citeva mii de recorduri, deci e rezonabil! &amp;nbsp;Multumesc mult tuturor!&lt;/P&gt;</description></item><item><title>Re: Criptare date intr-o tabela...</title><link>http://sqlserver.ro/forums/thread/4452.aspx</link><pubDate>Fri, 21 Mar 2008 07:42:07 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:4452</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/4452.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=4452</wfw:commentRss><description>Eu "votez" cu Marcel. Cred ca este mai&amp;nbsp;bine sa profiti de ceea ce ai deja la dispozitie - cel putin de la SQL 2005 "in sus" - decat sa te "chinui" sa-ti faci propriul algoritm de incriptare "from scratch".</description></item><item><title>Re: Criptare date intr-o tabela...</title><link>http://sqlserver.ro/forums/thread/4451.aspx</link><pubDate>Fri, 21 Mar 2008 07:05:38 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:4451</guid><dc:creator>Gherry</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/4451.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=4451</wfw:commentRss><description>poti sa incerci urmatoarea functie:&lt;br&gt;&lt;br&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;CREATE&lt;/span&gt; &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;FUNCTION&lt;/span&gt; criptare_String&lt;br&gt;(&lt;br&gt;&amp;nbsp;&amp;nbsp;&lt;span style="color:Teal;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;-- Add the parameters for the function here&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;@&lt;span style="color:Fuchsia;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;str&lt;/span&gt; &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;nvarchar&lt;/span&gt;(50)&lt;br&gt;)&lt;br&gt;RETURNS &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;nvarchar&lt;/span&gt;(50)&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;AS&lt;/span&gt;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;BEGIN&lt;/span&gt;&lt;br&gt;&lt;span style="color:Teal;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;-- Declare the return variable here&lt;/span&gt;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;DECLARE&lt;/span&gt; @result &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;as&lt;/span&gt; &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;nvarchar&lt;/span&gt;(50)&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;select&lt;/span&gt; @result = &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;''&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;span style="color:Teal;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;-- Add the T-SQL statements to compute the return value here&lt;/span&gt;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;declare&lt;/span&gt; @&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;continue&lt;/span&gt; &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;as&lt;/span&gt; &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;int&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;select&lt;/span&gt; @&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;continue&lt;/span&gt; = &lt;span style="color:Fuchsia;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;len&lt;/span&gt;(@&lt;span style="color:Fuchsia;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;str&lt;/span&gt;)&lt;br&gt;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;while&lt;/span&gt; @&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;continue&lt;/span&gt; &amp;gt; 0&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;begin&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;select&lt;/span&gt; @result = (&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;SELECT&lt;/span&gt; replacement &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;FROM&lt;/span&gt; eug_tst &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;WHERE&lt;/span&gt; (car = &lt;span style="color:Fuchsia;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;substring&lt;/span&gt;(@&lt;span style="color:Fuchsia;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;str&lt;/span&gt;,@&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;continue&lt;/span&gt;,1)))&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;+ @result&lt;br&gt;&amp;nbsp;&amp;nbsp;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;select&lt;/span&gt; @&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;continue&lt;/span&gt; = @&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;continue&lt;/span&gt; - 1&lt;br&gt;&amp;nbsp;&amp;nbsp;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;end&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;span style="color:Teal;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;-- Return the result of the function&lt;/span&gt;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;RETURN&lt;/span&gt; @result&lt;/span&gt;&lt;br&gt;&lt;br&gt;eu am folosit un tabel "eug_tst" care contine campul "car" - caracterul ce trebuie inlocuit si "replacement" - caracterul cu care inlocuim.&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;&lt;br&gt;o sa ia destul de mult cand o rulezi prima data pe tot tabelul dar dupa aceea poti sa pui codul (sau apelul) intr-un trigger care sa se ruleze la fiecare insert si update si acolo nu ar trebui sa se simta la viteza (decat daca faci importuri cu seturi mari de inregistrari, caz in care ar trebui cautata alta solutie)&lt;br&gt;</description></item><item><title>Re: Criptare date intr-o tabela...</title><link>http://sqlserver.ro/forums/thread/4445.aspx</link><pubDate>Thu, 20 Mar 2008 20:47:19 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:4445</guid><dc:creator>ignatandrei</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/4445.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=4445</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;ThePuiu:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;Salut, am o tabela cu un camp (EXPLICATIE) care contine aprox 20 caractere (cifre si litere) pe care as vrea sa-l criptez prin inlocuire cu valori aflate intr-o alta tabela. A doua tabela contine 'cheia' de genul: A se inlocuieste cu 7, B cu F, etc. Cum as putea face criptarea automat printr-o procedura stocata? (trebuie sa o fac de un numar mare de ori, deci trebuie automatizata cumva operatia si trebuie sa dureze si putin....). Inlocuirea trebuie sa se faca in aceasi tabela care contine originalul.&lt;/p&gt;
&lt;p&gt;Multumesc!&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br&gt;Nu vad alta solutie decit sa parcurgi cu un cursor fiecare linie/valoarea din Explicatei.&lt;br&gt;Problema pe care o vad este : sa zicem ca A inlocuiesti cu 7. iar pe 7 cu X&lt;br&gt;Valoarea A7 trebuie sa fie 7x, nu xx...&lt;br&gt;</description></item><item><title>Re: Criptare date intr-o tabela...</title><link>http://sqlserver.ro/forums/thread/4442.aspx</link><pubDate>Thu, 20 Mar 2008 19:45:29 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:4442</guid><dc:creator>marcel soare</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/4442.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=4442</wfw:commentRss><description>pentru sql server 2005 suporta criptarea continutului unei coloane. &lt;br&gt;criptarea se face pe baza unor chei, consulta documentatia pentru mai multe informatii&lt;br&gt;&lt;br&gt;pe sql 2008 poti cripta intreaga tabela.&lt;br&gt;&lt;br&gt;&lt;br&gt;</description></item><item><title>Criptare date intr-o tabela...</title><link>http://sqlserver.ro/forums/thread/4434.aspx</link><pubDate>Thu, 20 Mar 2008 11:44:25 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:4434</guid><dc:creator>ThePuiu</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/4434.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=4434</wfw:commentRss><description>&lt;P&gt;Salut, am o tabela cu un camp (EXPLICATIE) care contine aprox 20 caractere (cifre si litere) pe care as vrea sa-l criptez prin inlocuire cu valori aflate intr-o alta tabela. A doua tabela contine 'cheia' de genul: A se inlocuieste cu 7, B cu F, etc. Cum as putea face criptarea automat printr-o procedura stocata? (trebuie sa o fac de un numar mare de ori, deci trebuie automatizata cumva operatia si trebuie sa dureze si putin....). Inlocuirea trebuie sa se faca in aceasi tabela care contine originalul.&lt;/P&gt;
&lt;P&gt;Multumesc!&lt;/P&gt;</description></item></channel></rss>