<?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: Drop Database</title><link>http://sqlserver.ro/forums/thread/1255.aspx</link><pubDate>Fri, 08 Dec 2006 12:50:58 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1255</guid><dc:creator>marcel soare</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1255.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=1255</wfw:commentRss><description>&lt;p&gt;Incearca sa folosesti doua connection string-uri.&lt;br /&gt;Unul&amp;nbsp; pentru a executa comenzi pe master si altul pentru a executa comenzi pe baza ta de date. Astfel poti executa bath-urile diferite amintite mai sus.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Drop Database</title><link>http://sqlserver.ro/forums/thread/1251.aspx</link><pubDate>Fri, 08 Dec 2006 09:08:49 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1251</guid><dc:creator>MrSmersh</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1251.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=1251</wfw:commentRss><description>&lt;p&gt;Daca lucrezi in C# deja incep sa apara si alte metode, sa faci get schema pentru tabela de exemplu...&lt;/p&gt;&lt;p&gt;Sau daca vrei mai am in tolba numai trebuie sa&amp;nbsp;spui...&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Drop Database</title><link>http://sqlserver.ro/forums/thread/1248.aspx</link><pubDate>Thu, 07 Dec 2006 18:21:48 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1248</guid><dc:creator>rremus</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1248.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=1248</wfw:commentRss><description>&lt;p&gt;Numele [pressurePotExciteDB] nu poate fi rezolvat in timpul compilarii batch-ului, deci batch-ul nici nu ajunge vreodata in faza de executie. Trebuie&amp;nbsp; sa creezi baza da date intr-un batch si sa o folosesti intr-altul. Daca folosesti osql, sqlcmd, isqlw sau SSMS, insereaza delimitatorul de batch-uri (GO daca nu l-ai configurat la altceva) intre CREATE si USE. Daca e cod intr-o aplicatie, executa separata (e.g. apeleaza SqlCommand.ExecuteNoQuery separat).&lt;/p&gt;&lt;p&gt;HTH,&lt;br /&gt;~ Remus&lt;/p&gt;</description></item><item><title>Re: Tip Camp SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/1247.aspx</link><pubDate>Thu, 07 Dec 2006 16:45:26 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1247</guid><dc:creator>xmldeveloper</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1247.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=1247</wfw:commentRss><description>&lt;p&gt;GO nu este cuvant cheie. Este recunoscut doar de utilitare ca SQL Server Management Studio, sqlcmd, osql, Query Analyzer.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Tip Camp SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/1246.aspx</link><pubDate>Thu, 07 Dec 2006 16:33:58 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1246</guid><dc:creator>slv</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1246.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=1246</wfw:commentRss><description>Merci.&lt;br /&gt;Dar e ceva ciudat: Din &amp;quot;Microsoft SQL Server Management Express&amp;quot; merge, dar din C# nu.&lt;br /&gt;Are cineva o explicatie?&lt;br /&gt;</description></item><item><title>Re: Tip Camp SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/1239.aspx</link><pubDate>Thu, 07 Dec 2006 08:47:24 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1239</guid><dc:creator>xmldeveloper</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1239.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=1239</wfw:commentRss><description>&lt;p&gt;Va trebuie un GO.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;USE master;&lt;br /&gt;GO&lt;br /&gt;IF DB_ID (N&amp;#39;pressurePotExciteDB&amp;#39;) IS NOT NULL&lt;br /&gt;DROP DATABASE [pressurePotExciteDB];&lt;br /&gt;GO&lt;br /&gt;CREATE DATABASE [pressurePotExciteDB];&lt;br /&gt;GO&lt;br /&gt;USE [pressurePotExciteDB];&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Tip Camp SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/1237.aspx</link><pubDate>Thu, 07 Dec 2006 07:57:21 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1237</guid><dc:creator>MrSmersh</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1237.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=1237</wfw:commentRss><description>&lt;p&gt;versiune programator lenes e pseudocod (ca da e lenes sa se uite cum e exact in TSQL &lt;img src="http://sqlserver.ro/emoticons/emotion-1.gif" alt="Smile" /&gt;)&lt;/p&gt;&lt;p&gt;try&lt;/p&gt;&lt;p&gt;create db &lt;/p&gt;&lt;p&gt;catch&lt;/p&gt;&lt;p&gt;drop db&lt;/p&gt;&lt;p&gt;create db&lt;/p&gt;&lt;p&gt;daca&amp;nbsp;create&amp;nbsp;db nu mere nici in catch sau dupa el&amp;nbsp;tough luck&amp;nbsp;&lt;/p&gt;&lt;p&gt;nu vorbim de performanta ca&amp;nbsp;nu e chiar optim&amp;nbsp;da merge (&amp;quot;parerea mea&amp;quot; vorba lu nea stiti voi cine &lt;img src="http://sqlserver.ro/emoticons/emotion-1.gif" alt="Smile" /&gt;)...&lt;/p&gt;</description></item><item><title>Drop Database</title><link>http://sqlserver.ro/forums/thread/1236.aspx</link><pubDate>Thu, 07 Dec 2006 07:34:38 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1236</guid><dc:creator>slv</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1236.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=1236</wfw:commentRss><description>Raspunsurile voastre mi-au fost de mare ajutor. Merci&lt;br /&gt;Acum am o noua problema:&lt;br /&gt;&amp;nbsp;&amp;nbsp;Vreau, daca o baza de date exista sa o sterg si apoi sa o creez din nou. (un fel de clean-up)&lt;br /&gt;Foloseam urmatorul cod, dar nu merge daca baza de date nu exista.&lt;br /&gt;&lt;br /&gt;if exists(select * from sys.databases where name=&amp;#39;pressurePotExciteDB&amp;#39;)&lt;br /&gt;                begin&lt;br /&gt;                    drop database [pressurePotExciteDB]&lt;br /&gt;                end&lt;br /&gt;                create database [pressurePotExciteDB]&lt;br /&gt;                use [pressurePotExciteDB]&lt;br /&gt;&lt;br /&gt;Imi da urmatorul mesaj, daca baza de date nu exista:&lt;br /&gt;&lt;br /&gt;Msg 911, Level 16, State 1, Line 6&lt;br /&gt;Could not locate entry in sysdatabases for database &amp;#39;pressurePotExciteDB&amp;#39;. No entry found with that name. Make sure that the name is entered correctly.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>