﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Administering / SQL Server 2005  / sqlcmd -S / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Fri, 24 May 2013 13:18:18 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: sqlcmd -S</title><link>http://www.sqlservercentral.com/Forums/Topic928826-146-1.aspx</link><description>Can you supply the servername and the instance name if it is not the default instance on the server.  This will help us format the SQLCMD parameters you should be using.Generally when I have used it is has been:sqlcmd -H&amp;lt;Host name if on different machine&amp;gt; -S&amp;lt;SQL server name\instance name&amp;gt; -U&amp;lt;username if needed&amp;gt; -P&amp;lt;password&amp;gt; -E -i&amp;lt;input file for execution&amp;gt; -o&amp;lt;output file for results&amp;gt;</description><pubDate>Mon, 23 Aug 2010 02:18:02 GMT</pubDate><dc:creator>BravehearT1326</dc:creator></item><item><title>RE: sqlcmd -S</title><link>http://www.sqlservercentral.com/Forums/Topic928826-146-1.aspx</link><description>Trysqlcmd -Sservername\instancename:cool:</description><pubDate>Mon, 23 Aug 2010 01:45:05 GMT</pubDate><dc:creator>Jamie Ingram-729524</dc:creator></item><item><title>RE: sqlcmd -S</title><link>http://www.sqlservercentral.com/Forums/Topic928826-146-1.aspx</link><description>It does not work...Maybe it's because i have my default instance in SQL Server 2005 and my named instance in SQL Server 2000.Maybe i have to change the order as the instances are installed and put the default instance as SQL Server 2000.What do you think?I can connect to SQL Server 2005 using oSQL instead of sqlcmd, isn't this strange?</description><pubDate>Fri, 28 May 2010 01:08:14 GMT</pubDate><dc:creator>river1</dc:creator></item><item><title>RE: sqlcmd -S</title><link>http://www.sqlservercentral.com/Forums/Topic928826-146-1.aspx</link><description>Use--&amp;gt; sqlcmd -Sservernamehttp://syntaxhelp.com/SQLServer/SQLCMD</description><pubDate>Thu, 27 May 2010 13:02:01 GMT</pubDate><dc:creator>MANU-J.</dc:creator></item><item><title>RE: sqlcmd -S</title><link>http://www.sqlservercentral.com/Forums/Topic928826-146-1.aspx</link><description>It as any thing to do with the fact that i have a SQL Server 2000 named instance on the same box?I can connect using osql, but can not connect using sqlcmd...osql was finished in SQL Server 2005, correct?</description><pubDate>Thu, 27 May 2010 03:49:46 GMT</pubDate><dc:creator>river1</dc:creator></item><item><title>sqlcmd -S</title><link>http://www.sqlservercentral.com/Forums/Topic928826-146-1.aspx</link><description>Hi,   i try to execute this command at the cmd level:sqlcmd -S computernamei receive the following error:invalid comand line arg[2]: '-S'My instance name the name of my computer.Why does this fails?</description><pubDate>Thu, 27 May 2010 03:11:13 GMT</pubDate><dc:creator>river1</dc:creator></item></channel></rss>