<?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 generale</title><link>http://sqlserver.ro/forums/16/ShowForum.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Re: Probleme cu data in tabel din baza de date .mdf</title><link>http://sqlserver.ro/forums/thread/8554.aspx</link><pubDate>Tue, 07 Dec 2010 12:34:13 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8554</guid><dc:creator>Slick</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8554.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=8554</wfw:commentRss><description>Va multumesc tuturor pentru ajutor. :)</description></item><item><title>Re: Probleme cu data in tabel din baza de date .mdf</title><link>http://sqlserver.ro/forums/thread/8545.aspx</link><pubDate>Fri, 03 Dec 2010 10:39:55 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8545</guid><dc:creator>rsocol</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8545.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=8545</wfw:commentRss><description>Dacă nu mai e nevoie să păstraţi coloana &amp;#238;n vechiul format, puteţi adăuga o coloană nouă &amp;#238;n care să copiaţi datele respective &amp;#238;n format datetime şi apoi să ştergeţi vechea coloană (eventual să şi o redenumiţi pe cea nouă cu numele coloanei vechi):&lt;br /&gt;&lt;br /&gt;ALTER TABLE MyTable ADD ReceiveDateAndTime datetime&lt;br /&gt;UPDATE MyTable SET ReceiveDateAndTime = DATEADD(second,ReceiveTime,'19700101')&lt;br /&gt;ALTER TABLE MyTable DROP COLUMN ReceiveTime&lt;br /&gt;--EXEC sp_rename 'MyTable.ReceiveDateAndTime', 'ReceiveTime', 'COLUMN'&lt;br /&gt;&lt;br /&gt;Răzvan</description></item><item><title>Re: Probleme cu data in tabel din baza de date .mdf</title><link>http://sqlserver.ro/forums/thread/8543.aspx</link><pubDate>Fri, 03 Dec 2010 10:06:26 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8543</guid><dc:creator>xmldeveloper</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8543.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=8543</wfw:commentRss><description>Aveti mai multe solutii:&lt;br&gt;1. Construiti o functie prin care sa apelati in interogari toate coloanele de acel tip, exact cum v-a descris Razvan:&lt;br&gt;&lt;table cellpadding="0" cellspacing="0"&gt;&lt;tr style="vertical-align:top;line-height:normal;"&gt;&lt;td style="width:40px;text-align:right;"&gt;&lt;pre style="font-family:courier new;font-size:11px;color:gray;margin:0px;padding:2px;"&gt;1&lt;br&gt;2&lt;br&gt;3&lt;br&gt;4&lt;br&gt;5&lt;br&gt;6&lt;br&gt;7&lt;br&gt;8&lt;br&gt;9&lt;br&gt; &lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style="margin:0px;padding:2px 2px 2px 8px;"&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; dbo.fn_ConvertUnixTimeStamp(@UnixTimeStamp &lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;bigint&lt;/span&gt;)&lt;br&gt;RETURNS &lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;datetime&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;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:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;DECLARE&lt;/span&gt; @ReturnedDate &lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;datetime&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;SET&lt;/span&gt; @ReturnedDate = &lt;span style="color:Fuchsia;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;DATEADD&lt;/span&gt;(second,@UnixTimeStamp,&lt;span style="color:Red;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;'19700101'&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; @ReturnedDate;&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;GO&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br&gt;Apelare:&lt;br&gt;&lt;table cellpadding="0" cellspacing="0"&gt;&lt;tr style="vertical-align:top;line-height:normal;"&gt;&lt;td style="width:40px;text-align:right;"&gt;&lt;pre style="font-family:courier new;font-size:11px;color:gray;margin:0px;padding:2px;"&gt;1&lt;br&gt;2&lt;br&gt; &lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style="margin:0px;padding:2px 2px 2px 8px;"&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;SELECT&lt;/span&gt; dbo.fn_ConvertUnixTimeStamp(ReceiveTime) &lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;AS&lt;/span&gt; ReceiveDateAndTime &lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;FROM&lt;/span&gt; MyTable;&lt;br&gt;GO&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;2. Adaugati o coloana calculata la tabelele continand acest tip:&lt;br&gt;&lt;br&gt;&lt;table cellpadding="0" cellspacing="0"&gt;&lt;tr style="vertical-align:top;line-height:normal;"&gt;&lt;td style="width:40px;text-align:right;"&gt;&lt;pre style="font-family:courier new;font-size:11px;color:gray;margin:0px;padding:2px;"&gt;1&lt;br&gt;2&lt;br&gt;3&lt;br&gt; &lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style="margin:0px;padding:2px 2px 2px 8px;"&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;ALTER&lt;/span&gt; &lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;TABLE&lt;/span&gt; MyTable&lt;br&gt;&lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;ADD&lt;/span&gt; ReceiveDateAndTime &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:Fuchsia;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;DATEADD&lt;/span&gt;(second,ReceiveTime,&lt;span style="color:Red;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;'19700101'&lt;/span&gt;);&lt;br&gt;GO&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br&gt;&lt;br&gt;</description></item><item><title>Re: Probleme cu data in tabel din baza de date .mdf</title><link>http://sqlserver.ro/forums/thread/8542.aspx</link><pubDate>Fri, 03 Dec 2010 09:16:27 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8542</guid><dc:creator>Slick</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8542.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=8542</wfw:commentRss><description>&lt;P&gt;@rsocol&lt;/P&gt;
&lt;P&gt;Am reusit sa fac chestia aia si intradevar merge. Totusi nu se poate cumva sa fac sa schimb timpul in toate tabelele din baza de date? Sau se poate face ceva la baza de date sau la server ca sa nu mai apara data asa?&lt;/P&gt;</description></item><item><title>Re: Probleme cu data in tabel din baza de date .mdf</title><link>http://sqlserver.ro/forums/thread/8541.aspx</link><pubDate>Thu, 02 Dec 2010 13:47:37 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8541</guid><dc:creator>rsocol</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8541.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=8541</wfw:commentRss><description>&amp;#206;n Management Studio apeşi New Query, apoi selectezi baza de date (&amp;#238;n combo-ul &amp;#238;n care apare &amp;#238;n mod implicit "master"), iar apoi scrii query-ul de mai sus (&amp;#238;n care modifici "YourTable" cu numele tabelei tale) şi apeşi pe butonul Execute.&lt;br /&gt;&lt;br /&gt;Răzvan</description></item><item><title>Re: Probleme cu data in tabel din baza de date .mdf</title><link>http://sqlserver.ro/forums/thread/8540.aspx</link><pubDate>Thu, 02 Dec 2010 13:43:13 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8540</guid><dc:creator>Slick</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8540.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=8540</wfw:commentRss><description>&lt;P&gt;@rsocol&lt;/P&gt;
&lt;P&gt;Poti sa imi detaliezi putin procedura? Experienta mea cu baze de date tinde la 0 :D&lt;/P&gt;</description></item><item><title>Re: Probleme cu data in tabel din baza de date .mdf</title><link>http://sqlserver.ro/forums/thread/8537.aspx</link><pubDate>Wed, 01 Dec 2010 14:17:38 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8537</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8537.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=8537</wfw:commentRss><description>Sau, daca accesezi dintr-o alta aplicatie, te poti inspira de aici:&lt;br /&gt;http://www.codeproject.com/KB/cs/timestamp.aspx</description></item><item><title>Re: Probleme cu data in tabel din baza de date .mdf</title><link>http://sqlserver.ro/forums/thread/8534.aspx</link><pubDate>Wed, 01 Dec 2010 12:35:09 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8534</guid><dc:creator>rsocol</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8534.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=8534</wfw:commentRss><description>Poti sa incerci un:&lt;br /&gt;&lt;br /&gt;SELECT DATEADD(second,ReceiveTime,'19700101') AS ReceiveDateAndTime, * FROM YourTable&lt;br /&gt;&lt;br /&gt;Razvan</description></item><item><title>Re: Probleme cu data in tabel din baza de date .mdf</title><link>http://sqlserver.ro/forums/thread/8533.aspx</link><pubDate>Wed, 01 Dec 2010 12:27:05 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8533</guid><dc:creator>Slick</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8533.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=8533</wfw:commentRss><description>Intradevar&amp;nbsp;se pare ca&amp;nbsp;e vorba de "unix timestamp". Aveti idee cum sa-l fac sa apara normal? Sau cu ce alt program sa deschid baza de date sa nu mai apara chestia aia?</description></item><item><title>Re: Probleme cu data in tabel din baza de date .mdf</title><link>http://sqlserver.ro/forums/thread/8523.aspx</link><pubDate>Fri, 26 Nov 2010 09:08:11 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8523</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8523.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=8523</wfw:commentRss><description>Vezi daca nu e vorba de "unix timestamp"&lt;br /&gt;http://www.unixtimestamp.com/index.php</description></item><item><title>Re: Probleme cu data in tabel din baza de date .mdf</title><link>http://sqlserver.ro/forums/thread/8521.aspx</link><pubDate>Fri, 26 Nov 2010 08:11:19 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8521</guid><dc:creator>B_gd_n[ ]Sahlean</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8521.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=8521</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;Slick:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;Data ar trebui sa fie asa: "25-11-2010 12:34:23"&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br&gt;Ce valoare bigint ai în baza de date pentru data calendaristică de mai sus ?&lt;br&gt;</description></item><item><title>Re: Probleme cu data in tabel din baza de date .mdf</title><link>http://sqlserver.ro/forums/thread/8520.aspx</link><pubDate>Fri, 26 Nov 2010 06:57:32 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8520</guid><dc:creator>Slick</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8520.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=8520</wfw:commentRss><description>&lt;P&gt;Sql server management studio express am folosit si eu. &lt;/P&gt;
&lt;P&gt;Am expandat columns iar pentru coloana care ma intereseaza am asa: "ReceiveTime(bigint, null)"&lt;/P&gt;
&lt;P&gt;Data ar trebui sa fie asa: "25-11-2010 12:34:23"&lt;/P&gt;</description></item><item><title>Re: Probleme cu data in tabel din baza de date .mdf</title><link>http://sqlserver.ro/forums/thread/8515.aspx</link><pubDate>Wed, 24 Nov 2010 20:32:20 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8515</guid><dc:creator>xmldeveloper</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8515.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=8515</wfw:commentRss><description>Ce tip de data este coloana respectiva?&lt;br&gt;Folositi SQL Server Management Studio, conectat la serverul pe care se afla baza de date, puteti afla tipul de data expandand nodul columns - pe tabelele care va intereseaza.&lt;br&gt;</description></item><item><title>Re: Probleme cu data in tabel din baza de date .mdf</title><link>http://sqlserver.ro/forums/thread/8514.aspx</link><pubDate>Wed, 24 Nov 2010 14:06:11 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8514</guid><dc:creator>ignatandrei</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8514.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=8514</wfw:commentRss><description>unde apare, ca nu am inteles ? in excel?&lt;br&gt;</description></item><item><title>Probleme cu data in tabel din baza de date .mdf</title><link>http://sqlserver.ro/forums/thread/8513.aspx</link><pubDate>Wed, 24 Nov 2010 13:54:04 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8513</guid><dc:creator>Slick</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8513.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=8513</wfw:commentRss><description>&lt;P&gt;Salut!&lt;/P&gt;
&lt;P&gt;Am o baza de date&amp;nbsp;.mdf de la o aplicatie ce foloseste Mssql server. Problema e cu data din tabele care apare sub forma unui numar format din 10 cifre. Se poate converti cumva sau cum se poate rezolva problema?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item></channel></rss>