<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Another Programmer&#039;s Blog &#187; Sql Server Management Studio 2008</title>
	<atom:link href="http://www.daringa.com/archives/tag/sql-server-management-studio-2008/feed" rel="self" type="application/rss+xml" />
	<link>http://www.daringa.com</link>
	<description>.NET, C#, MSSQL Server, Windows 8</description>
	<lastBuildDate>Wed, 16 Jul 2025 16:35:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
		<item>
		<title>error hresult e_fail has been returned from a call to a com</title>
		<link>http://www.daringa.com/archives/115</link>
		<comments>http://www.daringa.com/archives/115#comments</comments>
		<pubDate>Mon, 10 Dec 2012 12:12:22 +0000</pubDate>
		<dc:creator>bogdan</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[Error HRESULT E_FAIL has been returned from a call to a COM component.]]></category>
		<category><![CDATA[Sql Server Management Studio 2008]]></category>
		<category><![CDATA[sqlcmd]]></category>

		<guid isPermaLink="false">http://blog.daringa.com/?p=115</guid>
		<description><![CDATA[When loading large files &#8211; over 100MB with  Sql Server Management Studio 2008 you might get the following error: Error HRESULT E_FAIL has been returned from a call to a COM component. (mscorlib)   Large scripts run better with sqlcmd.exe.  Here are some of the parameters for sqlcmd.exe: Sqlcmd [-U login id] [-P password] [-S server] [-H [...]]]></description>
				<content:encoded><![CDATA[<p>When loading large files &#8211; over 100MB with  Sql Server Management Studio 2008 you might get the following error:</p>
<p><span style="color: #ff0000;">Error HRESULT E_FAIL has been returned from a call to a COM </span><span style="color: #ff0000;">component. (mscorlib)</span>  <a href="http://blog.daringa.com/wp-content/uploads/2012/12/Capture.png"><img class="alignnone size-full wp-image-117" title="Capture" src="http://blog.daringa.com/wp-content/uploads/2012/12/Capture.png" alt="" width="494" height="177" /></a></p>
<p>Large scripts run better with sqlcmd.exe.  Here are some of the parameters for sqlcmd.exe:</p>
<pre>Sqlcmd [-U login id] [-P password]
[-S server] [-H hostname] [-E trusted connection]
[-d use database name] [-l login timeout] [-t query timeout]
[-h headers] [-s colseparator] [-w screen width]
[-a packetsize] [-e echo input] [-I Enable Quoted Identifiers]</pre>
<p>Here is how I ran  mine:</p>
<p><span style="color: #ff0000;">sqlcmd -S .\MYSQLSERVER2008 -U MyUsername -P MyPassword -i C:\Database\hugescript.sql</span></p>
<p>My huge script file was 1.5GB.  More  on sqlcmd can be found at <a title="sqlcmd Utility" href="http://msdn.microsoft.com/en-us/library/ms180944.aspx" target="_blank">Microsoft site</a>.</p>
<p>The command line does a better job managing the memory.</p>
<p>Conclusion is:  run larger files with sqlcmd.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daringa.com/archives/115/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
