<?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; Connecting to Server Using Windows Authentication by SQLCMD</title>
	<atom:link href="http://blog.sqlauthority.com/2011/05/19/sql-server-connecting-to-server-using-windows-authentication-by-sqlcmd/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2011/05/19/sql-server-connecting-to-server-using-windows-authentication-by-sqlcmd/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Thu, 23 May 2013 14:22:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Binu</title>
		<link>http://blog.sqlauthority.com/2011/05/19/sql-server-connecting-to-server-using-windows-authentication-by-sqlcmd/#comment-480308</link>
		<dc:creator><![CDATA[Binu]]></dc:creator>
		<pubDate>Wed, 22 May 2013 06:24:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12940#comment-480308</guid>
		<description><![CDATA[Hi Pinal.

I am facing error with SQLCMD(sql 2005 EE)

SQLCMD -E -S

Sqlcmd: Error: Microsoft SQL Native Client : Unable to complete login process du
e to delay in opening server connection.

When I tried 
SQLCMD -E -S -l20 
it connected.

I tried with sql authentication
SQLCMD -S -U -P

It worked find
issue with windows authentication]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal.</p>
<p>I am facing error with SQLCMD(sql 2005 EE)</p>
<p>SQLCMD -E -S</p>
<p>Sqlcmd: Error: Microsoft SQL Native Client : Unable to complete login process du<br />
e to delay in opening server connection.</p>
<p>When I tried<br />
SQLCMD -E -S -l20<br />
it connected.</p>
<p>I tried with sql authentication<br />
SQLCMD -S -U -P</p>
<p>It worked find<br />
issue with windows authentication</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aleksbor</title>
		<link>http://blog.sqlauthority.com/2011/05/19/sql-server-connecting-to-server-using-windows-authentication-by-sqlcmd/#comment-414924</link>
		<dc:creator><![CDATA[Aleksbor]]></dc:creator>
		<pubDate>Tue, 29 Jan 2013 23:50:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12940#comment-414924</guid>
		<description><![CDATA[Guys, MS says -U and -P switches are for SQL authentication; therefore, you can&#039;t use them with domain logins:
http://technet.microsoft.com/en-us/library/cc281720.aspx]]></description>
		<content:encoded><![CDATA[<p>Guys, MS says -U and -P switches are for SQL authentication; therefore, you can&#8217;t use them with domain logins:<br />
<a href="http://technet.microsoft.com/en-us/library/cc281720.aspx" rel="nofollow">http://technet.microsoft.com/en-us/library/cc281720.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://blog.sqlauthority.com/2011/05/19/sql-server-connecting-to-server-using-windows-authentication-by-sqlcmd/#comment-414266</link>
		<dc:creator><![CDATA[Tom]]></dc:creator>
		<pubDate>Mon, 28 Jan 2013 21:13:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12940#comment-414266</guid>
		<description><![CDATA[try using -S instead of -s]]></description>
		<content:encoded><![CDATA[<p>try using -S instead of -s</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dharmesh Barochia</title>
		<link>http://blog.sqlauthority.com/2011/05/19/sql-server-connecting-to-server-using-windows-authentication-by-sqlcmd/#comment-406571</link>
		<dc:creator><![CDATA[Dharmesh Barochia]]></dc:creator>
		<pubDate>Fri, 11 Jan 2013 18:29:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12940#comment-406571</guid>
		<description><![CDATA[In real life, we generally connect database which will hosted on different server. I agree that we can connect local database by forcing SQL Server using &quot;-E&quot; but will this help us? no.. then how we can connect the database which are hosted in different server.

I spend more than two days on Google and try all possibility but none of them help me to resolve my issue.

I am able to connect production server database using sql server management studio in my system by inserting servername, username and password but when I try to connect using sqlcmd it always try to select my local database instead of server and throw me error

Login failed for user &#039;username&#039;. The user is not associated with a trusted SQL Server connection.

Your any small tip or help will be appreciated!!
I tried may syntex, some of them are.
Sqlcmd –s servername,portnumber –U username –P Password
Sqlcmd –s ServerIP –U username –P Password
Sqlcmd –s serveIP,portnumber –U username –P Password]]></description>
		<content:encoded><![CDATA[<p>In real life, we generally connect database which will hosted on different server. I agree that we can connect local database by forcing SQL Server using &#8220;-E&#8221; but will this help us? no.. then how we can connect the database which are hosted in different server.</p>
<p>I spend more than two days on Google and try all possibility but none of them help me to resolve my issue.</p>
<p>I am able to connect production server database using sql server management studio in my system by inserting servername, username and password but when I try to connect using sqlcmd it always try to select my local database instead of server and throw me error</p>
<p>Login failed for user &#8216;username&#8217;. The user is not associated with a trusted SQL Server connection.</p>
<p>Your any small tip or help will be appreciated!!<br />
I tried may syntex, some of them are.<br />
Sqlcmd –s servername,portnumber –U username –P Password<br />
Sqlcmd –s ServerIP –U username –P Password<br />
Sqlcmd –s serveIP,portnumber –U username –P Password</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2011/05/19/sql-server-connecting-to-server-using-windows-authentication-by-sqlcmd/#comment-363561</link>
		<dc:creator><![CDATA[pinaldave]]></dc:creator>
		<pubDate>Wed, 24 Oct 2012 02:48:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12940#comment-363561</guid>
		<description><![CDATA[Watch SQL in Sixty Seconds Video to resolve connection error http://bit.ly/connection-error]]></description>
		<content:encoded><![CDATA[<p>Watch SQL in Sixty Seconds Video to resolve connection error <a href="http://bit.ly/connection-error" rel="nofollow">http://bit.ly/connection-error</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Resolving SQL Server Connection Errors &#8211; SQL in Sixty Seconds #030 &#8211; Video &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2011/05/19/sql-server-connecting-to-server-using-windows-authentication-by-sqlcmd/#comment-363541</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Resolving SQL Server Connection Errors &#8211; SQL in Sixty Seconds #030 &#8211; Video &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Wed, 24 Oct 2012 01:31:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12940#comment-363541</guid>
		<description><![CDATA[[...] SQL SERVER – Connecting to Server Using Windows Authentication by SQLCMD [...]]]></description>
		<content:encoded><![CDATA[<p>[...] SQL SERVER – Connecting to Server Using Windows Authentication by SQLCMD [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bikramjit</title>
		<link>http://blog.sqlauthority.com/2011/05/19/sql-server-connecting-to-server-using-windows-authentication-by-sqlcmd/#comment-354442</link>
		<dc:creator><![CDATA[Bikramjit]]></dc:creator>
		<pubDate>Sun, 30 Sep 2012 04:13:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12940#comment-354442</guid>
		<description><![CDATA[I agree Amogh a more detailed explanation is required I am trying to create a format file using BCP, I am able to do it with the sa username and password,
If I use the -T switch it works fine as well, however when I try to use the username that connects me to SQL Server with Windows Authentication eg -U Servername\User -P XXX I get error 
SQLState = 28000, NativeError = 18456
Error = [Microsoft][SQL Server Native Client 10.0][SQL Server]Login failed for
user &#039;Server\User&#039;.
My windows admin username is different from my SQL username however my SQL username uses Windows Authentication to connect to SSMS.

I have the same problem when I use OPENROWSET, if I use the Trusted_Connection=yes option it works but if I use the Windows Authenticated username and password it fails.]]></description>
		<content:encoded><![CDATA[<p>I agree Amogh a more detailed explanation is required I am trying to create a format file using BCP, I am able to do it with the sa username and password,<br />
If I use the -T switch it works fine as well, however when I try to use the username that connects me to SQL Server with Windows Authentication eg -U Servername\User -P XXX I get error<br />
SQLState = 28000, NativeError = 18456<br />
Error = [Microsoft][SQL Server Native Client 10.0][SQL Server]Login failed for<br />
user &#8216;Server\User&#8217;.<br />
My windows admin username is different from my SQL username however my SQL username uses Windows Authentication to connect to SSMS.</p>
<p>I have the same problem when I use OPENROWSET, if I use the Trusted_Connection=yes option it works but if I use the Windows Authenticated username and password it fails.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amogh Sarpotdar</title>
		<link>http://blog.sqlauthority.com/2011/05/19/sql-server-connecting-to-server-using-windows-authentication-by-sqlcmd/#comment-317519</link>
		<dc:creator><![CDATA[Amogh Sarpotdar]]></dc:creator>
		<pubDate>Sun, 22 Jul 2012 15:53:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12940#comment-317519</guid>
		<description><![CDATA[You havent explained how it matters. I am facing the same issue, found your solution on it working but not convincing. Why cant I connect using explicit -U and -P parameters to the server?]]></description>
		<content:encoded><![CDATA[<p>You havent explained how it matters. I am facing the same issue, found your solution on it working but not convincing. Why cant I connect using explicit -U and -P parameters to the server?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andre</title>
		<link>http://blog.sqlauthority.com/2011/05/19/sql-server-connecting-to-server-using-windows-authentication-by-sqlcmd/#comment-187165</link>
		<dc:creator><![CDATA[Andre]]></dc:creator>
		<pubDate>Wed, 02 Nov 2011 16:03:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12940#comment-187165</guid>
		<description><![CDATA[Pinal, 

I am using Windows Server 2008 R2 and I have SQL Server 2008 installed on the machine.  I am logged in as the administrator and it is not allowing me to create an ODBC connection.  I receive:

Connection Failed
SQLState: &#039;28000&#039;
SQL Server Error: 18456

I know it has something to do with Windows Server 2008&#039;s security, because installing SQL Server 2008 R2 on a Windows Server 2003 machine does not give me this headache :-)]]></description>
		<content:encoded><![CDATA[<p>Pinal, </p>
<p>I am using Windows Server 2008 R2 and I have SQL Server 2008 installed on the machine.  I am logged in as the administrator and it is not allowing me to create an ODBC connection.  I receive:</p>
<p>Connection Failed<br />
SQLState: &#8217;28000&#8242;<br />
SQL Server Error: 18456</p>
<p>I know it has something to do with Windows Server 2008&#8242;s security, because installing SQL Server 2008 R2 on a Windows Server 2003 machine does not give me this headache :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sashs</title>
		<link>http://blog.sqlauthority.com/2011/05/19/sql-server-connecting-to-server-using-windows-authentication-by-sqlcmd/#comment-138171</link>
		<dc:creator><![CDATA[Sashs]]></dc:creator>
		<pubDate>Wed, 01 Jun 2011 10:12:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12940#comment-138171</guid>
		<description><![CDATA[I&#039;m facing same problem in SSMS for windows authentication mode connection. My new machine having Windows 7 operating system and SQL 2005. 

Frist time I can able to connect local database server with windows authentication. After that If I connect to test database with use VPN connection, it&#039;s connected with windows authentication. Then again I CANNOT connect the local database with Windows authentication. I&#039;m getting this error:

Cannot connect to SQL2

Additional Information:
Login failed for user &#039;&#039;. The user is not associated with a trusted SQL server connection. (Microsoft SQL Server, Error:18452)]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m facing same problem in SSMS for windows authentication mode connection. My new machine having Windows 7 operating system and SQL 2005. </p>
<p>Frist time I can able to connect local database server with windows authentication. After that If I connect to test database with use VPN connection, it&#8217;s connected with windows authentication. Then again I CANNOT connect the local database with Windows authentication. I&#8217;m getting this error:</p>
<p>Cannot connect to SQL2</p>
<p>Additional Information:<br />
Login failed for user &#8221;. The user is not associated with a trusted SQL server connection. (Microsoft SQL Server, Error:18452)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nish</title>
		<link>http://blog.sqlauthority.com/2011/05/19/sql-server-connecting-to-server-using-windows-authentication-by-sqlcmd/#comment-135274</link>
		<dc:creator><![CDATA[Nish]]></dc:creator>
		<pubDate>Thu, 19 May 2011 15:10:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12940#comment-135274</guid>
		<description><![CDATA[Thanks for the detailed information.

Tried before but never worked. After reading your blog, Tried and worked.

You know that you always rock, right?

Thanks again.]]></description>
		<content:encoded><![CDATA[<p>Thanks for the detailed information.</p>
<p>Tried before but never worked. After reading your blog, Tried and worked.</p>
<p>You know that you always rock, right?</p>
<p>Thanks again.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
