<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; sqlcmd vs osql &#8211; Basic Comparison</title>
	<atom:link href="http://blog.sqlauthority.com/2009/01/05/sql-server-sqlcmd-vs-osql-basic-comparison/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2009/01/05/sql-server-sqlcmd-vs-osql-basic-comparison/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Fri, 17 May 2013 15:26:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #010 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2009/01/05/sql-server-sqlcmd-vs-osql-basic-comparison/#comment-403898</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #010 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 05 Jan 2013 01:31:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1959#comment-403898</guid>
		<description><![CDATA[[...] sqlcmd vs osql – Basic Comparison [...]]]></description>
		<content:encoded><![CDATA[<p>[...] sqlcmd vs osql – Basic Comparison [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Albert</title>
		<link>http://blog.sqlauthority.com/2009/01/05/sql-server-sqlcmd-vs-osql-basic-comparison/#comment-350836</link>
		<dc:creator><![CDATA[Albert]]></dc:creator>
		<pubDate>Wed, 19 Sep 2012 09:43:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1959#comment-350836</guid>
		<description><![CDATA[I&#039;ve recently changed over from running a set of scripts using osql to sqlcmd. This has increased the time taken to run the scripts significantly: With osql it took around 30 minutes and with sqlcmd around 2 hours. Any idea why? There were no other significant changes on the server.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;ve recently changed over from running a set of scripts using osql to sqlcmd. This has increased the time taken to run the scripts significantly: With osql it took around 30 minutes and with sqlcmd around 2 hours. Any idea why? There were no other significant changes on the server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RickW</title>
		<link>http://blog.sqlauthority.com/2009/01/05/sql-server-sqlcmd-vs-osql-basic-comparison/#comment-327273</link>
		<dc:creator><![CDATA[RickW]]></dc:creator>
		<pubDate>Wed, 08 Aug 2012 18:30:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1959#comment-327273</guid>
		<description><![CDATA[SQLCMD is just too slow for large data files.  Just too slow. Osql blazes. What gives?]]></description>
		<content:encoded><![CDATA[<p>SQLCMD is just too slow for large data files.  Just too slow. Osql blazes. What gives?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jimmy John</title>
		<link>http://blog.sqlauthority.com/2009/01/05/sql-server-sqlcmd-vs-osql-basic-comparison/#comment-281250</link>
		<dc:creator><![CDATA[Jimmy John]]></dc:creator>
		<pubDate>Wed, 02 May 2012 00:03:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1959#comment-281250</guid>
		<description><![CDATA[i have the exact same problem.... did you ever find the solution to this issue?]]></description>
		<content:encoded><![CDATA[<p>i have the exact same problem&#8230;. did you ever find the solution to this issue?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://blog.sqlauthority.com/2009/01/05/sql-server-sqlcmd-vs-osql-basic-comparison/#comment-272090</link>
		<dc:creator><![CDATA[Bob]]></dc:creator>
		<pubDate>Wed, 04 Apr 2012 21:28:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1959#comment-272090</guid>
		<description><![CDATA[Is there a way to do something similar to the following:

--=========================
declare @servername varchar(50)

select top 1 @servername = servername from myServers

:setvar ServerName @servername
:CONNECT $(ServerName)
 --========================

Obviously the above doesn&#039;t work. I want to connect to another server without explicitly giving the server name.

Thanks]]></description>
		<content:encoded><![CDATA[<p>Is there a way to do something similar to the following:</p>
<p>&#8211;=========================<br />
declare @servername varchar(50)</p>
<p>select top 1 @servername = servername from myServers</p>
<p>:setvar ServerName @servername<br />
:CONNECT $(ServerName)<br />
 &#8211;========================</p>
<p>Obviously the above doesn&#8217;t work. I want to connect to another server without explicitly giving the server name.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kapil Chauhan</title>
		<link>http://blog.sqlauthority.com/2009/01/05/sql-server-sqlcmd-vs-osql-basic-comparison/#comment-270517</link>
		<dc:creator><![CDATA[Kapil Chauhan]]></dc:creator>
		<pubDate>Sun, 01 Apr 2012 15:28:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1959#comment-270517</guid>
		<description><![CDATA[Hi, I have created a stored procedure in sql server 2005 to send email using send_db_mail function of sql procedure. I am calling this procedure in a batch file using sqlcmd of sql server 2005. When i run or schedule that batch file, it&#039;s run perfectly and send email to reception but the pop up email queued does not close automatically. can someone help me to close that pop up automatically using any command in batch file. Thanks in advance.]]></description>
		<content:encoded><![CDATA[<p>Hi, I have created a stored procedure in sql server 2005 to send email using send_db_mail function of sql procedure. I am calling this procedure in a batch file using sqlcmd of sql server 2005. When i run or schedule that batch file, it&#8217;s run perfectly and send email to reception but the pop up email queued does not close automatically. can someone help me to close that pop up automatically using any command in batch file. Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: srinath</title>
		<link>http://blog.sqlauthority.com/2009/01/05/sql-server-sqlcmd-vs-osql-basic-comparison/#comment-260128</link>
		<dc:creator><![CDATA[srinath]]></dc:creator>
		<pubDate>Tue, 06 Mar 2012 19:44:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1959#comment-260128</guid>
		<description><![CDATA[Hi how do I send an output  of sql from sqlcmd as an email?Please help]]></description>
		<content:encoded><![CDATA[<p>Hi how do I send an output  of sql from sqlcmd as an email?Please help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aaaa</title>
		<link>http://blog.sqlauthority.com/2009/01/05/sql-server-sqlcmd-vs-osql-basic-comparison/#comment-206366</link>
		<dc:creator><![CDATA[aaaa]]></dc:creator>
		<pubDate>Mon, 28 Nov 2011 09:28:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1959#comment-206366</guid>
		<description><![CDATA[how to automate test-database (sql server 2008) backup via command prompt?]]></description>
		<content:encoded><![CDATA[<p>how to automate test-database (sql server 2008) backup via command prompt?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aaaa</title>
		<link>http://blog.sqlauthority.com/2009/01/05/sql-server-sqlcmd-vs-osql-basic-comparison/#comment-206333</link>
		<dc:creator><![CDATA[aaaa]]></dc:creator>
		<pubDate>Mon, 28 Nov 2011 08:32:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1959#comment-206333</guid>
		<description><![CDATA[how to aumate database(test) sql server 2008 backup via command prompt??]]></description>
		<content:encoded><![CDATA[<p>how to aumate database(test) sql server 2008 backup via command prompt??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BASAVA</title>
		<link>http://blog.sqlauthority.com/2009/01/05/sql-server-sqlcmd-vs-osql-basic-comparison/#comment-139194</link>
		<dc:creator><![CDATA[BASAVA]]></dc:creator>
		<pubDate>Mon, 06 Jun 2011 10:00:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1959#comment-139194</guid>
		<description><![CDATA[can we schedule a job from commad prompt while usong osql command.

please tell me if any idea.

Regards,
BASAVA]]></description>
		<content:encoded><![CDATA[<p>can we schedule a job from commad prompt while usong osql command.</p>
<p>please tell me if any idea.</p>
<p>Regards,<br />
BASAVA</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ron Warshawsky</title>
		<link>http://blog.sqlauthority.com/2009/01/05/sql-server-sqlcmd-vs-osql-basic-comparison/#comment-115568</link>
		<dc:creator><![CDATA[Ron Warshawsky]]></dc:creator>
		<pubDate>Tue, 01 Feb 2011 19:14:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1959#comment-115568</guid>
		<description><![CDATA[There is a free tool &quot;SQLS*Plus&quot; which is an SQL*Plus for SQL Server. Works with SQL Server 2000/2005 and 2008

Very flexible with data formatting (set lines size, pagesize, etc), variables (&amp;, &amp;&amp;), etc - light years better than isql, osql
or sqlcmd

I found it at http://www.memfix.com]]></description>
		<content:encoded><![CDATA[<p>There is a free tool &#8220;SQLS*Plus&#8221; which is an SQL*Plus for SQL Server. Works with SQL Server 2000/2005 and 2008</p>
<p>Very flexible with data formatting (set lines size, pagesize, etc), variables (&amp;, &amp;&amp;), etc &#8211; light years better than isql, osql<br />
or sqlcmd</p>
<p>I found it at <a href="http://www.memfix.com" rel="nofollow">http://www.memfix.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Purnima</title>
		<link>http://blog.sqlauthority.com/2009/01/05/sql-server-sqlcmd-vs-osql-basic-comparison/#comment-99626</link>
		<dc:creator><![CDATA[Purnima]]></dc:creator>
		<pubDate>Sat, 13 Nov 2010 21:59:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1959#comment-99626</guid>
		<description><![CDATA[HI !

After I installed MS SQL  server management studio express (version 2005) I can&#039;t execute sqlcmd.exe in command prompt.

I should be able to access sqlc,d.exe in folder C:/Program%20Files/Microsoft%20SQL%20Server/90/Tools/Binn/ and then add it to PATH variable, but the file sqlcmd.exe is not located there.

Moreover I installed MS SQL server mgmt studio express on my desktop and I want to connect from my desktop.

Could you please help me on that? Is it the operating system that is not supported I use MS Windows XP Home edition with Service Pack 2 ?


Thanks in advance for your help

Purnima]]></description>
		<content:encoded><![CDATA[<p>HI !</p>
<p>After I installed MS SQL  server management studio express (version 2005) I can&#8217;t execute sqlcmd.exe in command prompt.</p>
<p>I should be able to access sqlc,d.exe in folder C:/Program%20Files/Microsoft%20SQL%20Server/90/Tools/Binn/ and then add it to PATH variable, but the file sqlcmd.exe is not located there.</p>
<p>Moreover I installed MS SQL server mgmt studio express on my desktop and I want to connect from my desktop.</p>
<p>Could you please help me on that? Is it the operating system that is not supported I use MS Windows XP Home edition with Service Pack 2 ?</p>
<p>Thanks in advance for your help</p>
<p>Purnima</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mpv</title>
		<link>http://blog.sqlauthority.com/2009/01/05/sql-server-sqlcmd-vs-osql-basic-comparison/#comment-86355</link>
		<dc:creator><![CDATA[mpv]]></dc:creator>
		<pubDate>Thu, 02 Sep 2010 19:59:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1959#comment-86355</guid>
		<description><![CDATA[I am using a batch file written by someone else. It uses osql with a -n parameter, but I don&#039;t see a comparable parameter in sqlcmd. Do I need this? If so, what does it do for me?

The help text says &quot;Removes numbering and the prompt symbol (&gt;) from input lines.&quot; Can you explain what this actually means?

Thanks... mpv]]></description>
		<content:encoded><![CDATA[<p>I am using a batch file written by someone else. It uses osql with a -n parameter, but I don&#8217;t see a comparable parameter in sqlcmd. Do I need this? If so, what does it do for me?</p>
<p>The help text says &#8220;Removes numbering and the prompt symbol (&gt;) from input lines.&#8221; Can you explain what this actually means?</p>
<p>Thanks&#8230; mpv</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luis</title>
		<link>http://blog.sqlauthority.com/2009/01/05/sql-server-sqlcmd-vs-osql-basic-comparison/#comment-82054</link>
		<dc:creator><![CDATA[Luis]]></dc:creator>
		<pubDate>Wed, 28 Jul 2010 15:50:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1959#comment-82054</guid>
		<description><![CDATA[Hello Pinal,
I Have a large file with calls to a Stored Procedure(about 3.5GB). sqlcmd sometimes says scripting error I think its a timeout error but not sure, in the other hand osql execute it without any problem, but its taking too much time to get done.

Is there a way or good practices to do it faster?]]></description>
		<content:encoded><![CDATA[<p>Hello Pinal,<br />
I Have a large file with calls to a Stored Procedure(about 3.5GB). sqlcmd sometimes says scripting error I think its a timeout error but not sure, in the other hand osql execute it without any problem, but its taking too much time to get done.</p>
<p>Is there a way or good practices to do it faster?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Faisal Iqbal</title>
		<link>http://blog.sqlauthority.com/2009/01/05/sql-server-sqlcmd-vs-osql-basic-comparison/#comment-64161</link>
		<dc:creator><![CDATA[Faisal Iqbal]]></dc:creator>
		<pubDate>Wed, 31 Mar 2010 17:09:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1959#comment-64161</guid>
		<description><![CDATA[Pinal,

Can we use sqlcmd on a system where SQL Server is not installed. I have to execute script file from my machine to my database server.

--Faisal Iqbal]]></description>
		<content:encoded><![CDATA[<p>Pinal,</p>
<p>Can we use sqlcmd on a system where SQL Server is not installed. I have to execute script file from my machine to my database server.</p>
<p>&#8211;Faisal Iqbal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pramod</title>
		<link>http://blog.sqlauthority.com/2009/01/05/sql-server-sqlcmd-vs-osql-basic-comparison/#comment-62150</link>
		<dc:creator><![CDATA[pramod]]></dc:creator>
		<pubDate>Thu, 04 Mar 2010 10:21:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1959#comment-62150</guid>
		<description><![CDATA[please elaborate the topic to cover much detail........]]></description>
		<content:encoded><![CDATA[<p>please elaborate the topic to cover much detail&#8230;&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edward Manning</title>
		<link>http://blog.sqlauthority.com/2009/01/05/sql-server-sqlcmd-vs-osql-basic-comparison/#comment-62082</link>
		<dc:creator><![CDATA[Edward Manning]]></dc:creator>
		<pubDate>Wed, 03 Mar 2010 12:38:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1959#comment-62082</guid>
		<description><![CDATA[Thanks Pinal,

Was trying to write a bat file to give to the DBAs to execute on our production boxes and the information given here was exactly what I needed.

Cheers
Ed]]></description>
		<content:encoded><![CDATA[<p>Thanks Pinal,</p>
<p>Was trying to write a bat file to give to the DBAs to execute on our production boxes and the information given here was exactly what I needed.</p>
<p>Cheers<br />
Ed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://blog.sqlauthority.com/2009/01/05/sql-server-sqlcmd-vs-osql-basic-comparison/#comment-60107</link>
		<dc:creator><![CDATA[Brian]]></dc:creator>
		<pubDate>Fri, 22 Jan 2010 15:49:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1959#comment-60107</guid>
		<description><![CDATA[I have SQL Server 2005 Management Studio on one of my PCs, but on a client&#039;s computer who will not allow me to install SQl Server on it or any app that requires Admin priviledges, I need to submit TSQL commands to alter SQL 2005 Database tables remotely. Will SQLCMD or another utility allow me to do that?]]></description>
		<content:encoded><![CDATA[<p>I have SQL Server 2005 Management Studio on one of my PCs, but on a client&#8217;s computer who will not allow me to install SQl Server on it or any app that requires Admin priviledges, I need to submit TSQL commands to alter SQL 2005 Database tables remotely. Will SQLCMD or another utility allow me to do that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2009/01/05/sql-server-sqlcmd-vs-osql-basic-comparison/#comment-57125</link>
		<dc:creator><![CDATA[pinaldave]]></dc:creator>
		<pubDate>Wed, 28 Oct 2009 23:15:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1959#comment-57125</guid>
		<description><![CDATA[@steve,

SQLCMD does not work with SQL Server 2000.

OSQL works with SQL Server 2000.

Kind Regards,
Pinal]]></description>
		<content:encoded><![CDATA[<p>@steve,</p>
<p>SQLCMD does not work with SQL Server 2000.</p>
<p>OSQL works with SQL Server 2000.</p>
<p>Kind Regards,<br />
Pinal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blog.sqlauthority.com/2009/01/05/sql-server-sqlcmd-vs-osql-basic-comparison/#comment-57117</link>
		<dc:creator><![CDATA[Steve]]></dc:creator>
		<pubDate>Wed, 28 Oct 2009 18:38:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1959#comment-57117</guid>
		<description><![CDATA[If your targets are a mixed envirionment of 2005 and 2000, will sqlcmd work on the 2000 environment servers? This is an important function that you do not mention.]]></description>
		<content:encoded><![CDATA[<p>If your targets are a mixed envirionment of 2005 and 2000, will sqlcmd work on the 2000 environment servers? This is an important function that you do not mention.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ana</title>
		<link>http://blog.sqlauthority.com/2009/01/05/sql-server-sqlcmd-vs-osql-basic-comparison/#comment-49791</link>
		<dc:creator><![CDATA[Ana]]></dc:creator>
		<pubDate>Mon, 23 Mar 2009 20:32:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1959#comment-49791</guid>
		<description><![CDATA[Hi! I not sure if I understood this article. I made the !!dir example with osql and every happens in the same way than sqlcmd.

Then... what&#039;s the difference??

Thanks]]></description>
		<content:encoded><![CDATA[<p>Hi! I not sure if I understood this article. I made the !!dir example with osql and every happens in the same way than sqlcmd.</p>
<p>Then&#8230; what&#8217;s the difference??</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry Hung</title>
		<link>http://blog.sqlauthority.com/2009/01/05/sql-server-sqlcmd-vs-osql-basic-comparison/#comment-45474</link>
		<dc:creator><![CDATA[Jerry Hung]]></dc:creator>
		<pubDate>Thu, 08 Jan 2009 21:12:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1959#comment-45474</guid>
		<description><![CDATA[One can set variable in SQLCMD mode too, if running T-SQL script in SQLCMD mode

:SETVAR ServerName &quot;Server&quot;
:SETVAR ManagementDatabase &quot;MDW&quot;
GO
:CONNECT $(ServerName)
GO

.............usual T-SQL code.............]]></description>
		<content:encoded><![CDATA[<p>One can set variable in SQLCMD mode too, if running T-SQL script in SQLCMD mode</p>
<p>:SETVAR ServerName &#8220;Server&#8221;<br />
:SETVAR ManagementDatabase &#8220;MDW&#8221;<br />
GO<br />
:CONNECT $(ServerName)<br />
GO</p>
<p>&#8230;&#8230;&#8230;&#8230;.usual T-SQL code&#8230;&#8230;&#8230;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER - Interesting Observation - Using sqlcmd From SSMS Query Editor Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2009/01/05/sql-server-sqlcmd-vs-osql-basic-comparison/#comment-45390</link>
		<dc:creator><![CDATA[SQL SERVER - Interesting Observation - Using sqlcmd From SSMS Query Editor Journey to SQL Authority with Pinal Dave]]></dc:creator>
		<pubDate>Tue, 06 Jan 2009 07:17:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1959#comment-45390</guid>
		<description><![CDATA[[...] 6, 2009 by pinaldave    A day before I wrote article SQL SERVER - sqlcmd vs osql - Basic Comparison. Today while I was displaying how sqlcmd can be used instead of osql to one of my companies team [...]]]></description>
		<content:encoded><![CDATA[<p>[...] 6, 2009 by pinaldave    A day before I wrote article SQL SERVER &#8211; sqlcmd vs osql &#8211; Basic Comparison. Today while I was displaying how sqlcmd can be used instead of osql to one of my companies team [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
