Welcome to Sign in | Help
» Search

Search

You searched for the word(s):
Showing page 14 of 49 (482 total posts) < 1 second(s)
  • Re: t-sql update sql server 2000

    &#206;ntr-adevăr, UPDATE-ul de mai sus se face pe primele două &#238;nregistrări (aşa &#238;nţelesesem că trebuie). Dacă trebuie doar pe a doua &#238;nregistrare, atunci putem face ceva de genul: UPDATE aaa SET Principal=0 WHERE DataInregistrare = ( SELECT MIN(DataInregistrare) FROM aaa b WHERE b.CodContract=aaa.CodContract AND ...
    Posted to T-SQL (Forum) by rsocol on February 17, 2009
  • Re: t-sql update sql server 2000

    Sorry, am corectat mai sus... trebuia IN in loc de =. Răzvan
    Posted to T-SQL (Forum) by rsocol on February 17, 2009
  • Re: t-sql update sql server 2000

    Acum am observat şi chestia cu ''aceeasi luna (si an) la DataInregistrare pe primele 2 inregistrari''. În cazul acesta ar fi: UPDATE aaa SET Principal=0&nbsp;WHERE DataInregistrare&nbsp;IN (&nbsp;&nbsp;SELECT TOP 2 DataInregistrare FROM aaa b&nbsp;&nbsp;WHERE b.CodContract=aaa.CodContract&nbsp;&nbsp;AND DATEDIFF(month, DataInregistrare, ...
    Posted to T-SQL (Forum) by rsocol on February 17, 2009
  • Re: t-sql update sql server 2000

    &#206;ncearcă ceva de genul: UPDATE aaa SET Principal=0 WHERE DataInregistrare IN ( SELECT TOP 2 DataInregistrare FROM aaa b WHERE b.CodContract=aaa.CodContract ORDER BY DataInregistrare ) Răzvan
    Posted to T-SQL (Forum) by rsocol on February 17, 2009
  • Re: Data Server

    SELECT GETDATE() AS TheDateAndTime INSERT INTO YourTable (TheDateAndTime) VALUES (GETDATE()) Razvan
    Posted to Intrebari generale (Forum) by rsocol on February 16, 2009
  • Re: Salvare fiser baza de date (SQl Server management studio express)

    Vezi şi Comparing SQL Server Express and Compact Editions Whitepaper Răzvan
    Posted to Intrebari generale (Forum) by rsocol on February 10, 2009
  • Re: order by

    Nu recomand ''workaround''-ul menţionat de Kimberly Tripp. &#206;n primul r&#226;nd, chestia cu TOP 99.999 PERCENT nu funcţionează corect (atunci c&#226;nd ai mai mult de 100000 de r&#226;nduri), iar chestia cu ''TOP 9223372036854775807'' ar putea să nu funcţioneze &#238;ntr-o versiune viitoare de SQL Server, c&#226;nd o să optimizeze şi acest ...
    Posted to T-SQL (Forum) by rsocol on February 9, 2009
  • Re: order by

    Dacă &#238;n view era ''TOP 3 ... ORDER BY Something'' şi faci un ''SELECT * FROM View'' fără să specifici ORDER BY-ul, atunci ultimul pas din execution plan este ordonarea, pentru a returna doar numărul de r&#226;nduri specificat. Cele 3 r&#226;nduri selectate (pe baza ordinii specificate), vor fi apare ordonate &#238;n rezultat (deoarece ...
    Posted to T-SQL (Forum) by rsocol on February 9, 2009
  • Re: order by

    Dacă faci un ''SELECT * FROM SomeView'', fără să precizezi ORDER BY, atunci rezultatele pot fi obţinute &#238;n orice ordine (chiar dacă view-ul este ceva de genul ''CREATE VIEW SomeView AS SELECT TOP 100 PERCENT ... ORDER BY Something''). Dacă vrei să obţii rezultatele &#238;ntr-o anumită ordine, trebuie să specifici clauza ORDER BY &#238;n ...
    Posted to T-SQL (Forum) by rsocol on February 9, 2009
  • Re: SQL Server 2005 Service Pack 3

    &#206;ncep&#226;nd de ieri, 27 ianuarie 2009, Service Pack 3 este disponibil şi prin Microsoft Update, ca un update opţional, care e vizibil atunci c&#226;nd se alege ''Custom Scan''. Peste două săptăm&#226;ni, SP3 pentru Express Edition, Express Edition with Advanced Services şi Express Edition Toolkit va fi disponibil ca un Automatic Update. ...
    Posted to Anunturi (Forum) by rsocol on January 28, 2009
« First ... < Previous 12 13 14 15 16 Next > ... Last »
Powered by Community Server (Commercial Edition), by Telligent Systems