<?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>Take A Byte &#187; SQL</title>
	<atom:link href="http://www.takeabyte.com.au/category/sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.takeabyte.com.au</link>
	<description>Helping the IT Crowd</description>
	<lastBuildDate>Fri, 17 Jul 2009 10:43:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>The SQL server specified in SSIS service configuration is not present or is not available.</title>
		<link>http://www.takeabyte.com.au/2009/07/the-sql-server-specified-in-ssis-service-configuration-is-not-present-or-is-not-available/</link>
		<comments>http://www.takeabyte.com.au/2009/07/the-sql-server-specified-in-ssis-service-configuration-is-not-present-or-is-not-available/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 10:49:10 +0000</pubDate>
		<dc:creator>John Tran</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.takeabyte.com.au/?p=306</guid>
		<description><![CDATA[If your connected to SQL 2005 Integrated Services and you get the following error message when expanding MSDB
TITLE: Microsoft SQL Server Management Studio
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&#38;LinkId=20476
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
ADDITIONAL INFORMATION:
The SQL server specified in SSIS service configuration is not present or is not available. This might occur when there is no [...]]]></description>
			<content:encoded><![CDATA[<p>If your connected to SQL 2005 Integrated Services and you get the following error message when expanding MSDB</p>
<p>TITLE: Microsoft SQL Server Management Studio<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)</p>
<p>For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&amp;LinkId=20476</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
ADDITIONAL INFORMATION:</p>
<p>The SQL server specified in SSIS service configuration is not present or is not available. This might occur when there is no default instance of SQL Server on the computer. For more information, see the topic &#8220;Configuring the Integration Services Service&#8221; in Server 2005 Books Online.</p>
<p>Login timeout expired<br />
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.<br />
Named Pipes Provider: Could not open a connection to SQL Server [2].  (MsDtsSrvr)</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Login timeout expired<br />
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.<br />
Named Pipes Provider: Could not open a connection to SQL Server [2].  (Microsoft SQL Native Client)</p>
<p>Check the following,</p>
<ol>
<li>Launch SQL Server Configuration Manager</li>
<li>Check that the SQL Server Integrated Services is running and that the Log On As account is an Active Directory account with correct permissions.</li>
<li>Under SQL Server 2005 Network Configuration make sure Names Pipes is enabled for the SQL instance.</li>
</ol>
<p>If you have multiple instance then you may need to change the <strong>MsDtsSrvr.ini.xml </strong>to state the default instance.</p>
<p>The registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTS\ServiceConfigFile specifies the location and name for the configuration file that Integration Services service uses. The default value of the registry key is C:\Program Files\Microsoft SQL Server\90\DTS\Binn\ MsDtsSrvr.ini.xml. You can update the value of the registry key to use a different name and location for the configuration file.</p>
<p>In the configuration file, go to <ServerName>.</ServerName> and replace the . with ServerName\InstanceName</p>
]]></content:encoded>
			<wfw:commentRss>http://www.takeabyte.com.au/2009/07/the-sql-server-specified-in-ssis-service-configuration-is-not-present-or-is-not-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Invalid Object Name when using sp_send_dbmail in SQL 2005</title>
		<link>http://www.takeabyte.com.au/2009/06/invalid-object-name-when-using-sp_send_db_mail-in-ql-2005/</link>
		<comments>http://www.takeabyte.com.au/2009/06/invalid-object-name-when-using-sp_send_db_mail-in-ql-2005/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 14:56:40 +0000</pubDate>
		<dc:creator>John Tran</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.takeabyte.com.au/?p=291</guid>
		<description><![CDATA[If you are trying to send a query result via email in SQL 2005 then you will need to use sp_send_dbmail procedure.  As with other Database Stored Mail procedures, the sp_send_dbmail procedure lives in the msdb database.  Therefore, you need to ensure that you are a member of the DatabaseMailUserRole in the msdb [...]]]></description>
			<content:encoded><![CDATA[<p>If you are trying to send a query result via email in SQL 2005 then you will need to use sp_send_dbmail procedure.  As with other Database Stored Mail procedures, the sp_send_dbmail procedure lives in the msdb database.  Therefore, you need to ensure that you are a member of the <strong><em>DatabaseMailUserRole</em></strong> in the msdb database.</p>
<p>Now secondly if you are using the <strong>@query</strong> parameter then you need to make sure that you specify the database where you would like the query to run.  You can do this by using the <strong>@execute_query_database</strong> parameter.  If you do not do this then you will receive an invalid object name error.</p>
<p><strong>Example:</strong></p>
<p>EXEC msdb.dbo.sp_send_dbmail<br />
  @recipients = &#8216;<em>youremail@domain.com</em>&#8216;,<br />
  @subject = &#8216;<em>Subject</em>&#8216;,<br />
  @profile_name = <em>&#8216;DBMail Profile Account Name</em>&#8216;,<br />
  @query = &#8216;<em>your query</em>&#8216;<br />
  @execute_query_database  = &#8216;<em>database you would like to query</em>&#8216;,<br />
  @body = &#8216;<em>your message here or you can leave out if you don&#8217;t want anything other then the query in the body</em>&#8216;,<br />
  @attach_query_result_as_file = <em>0 or 1</em>;</p>
<p>Another thing to remember is if you want the query result to be displayed in the body and not as a file attachement then make sure you use the @attach_query_result_as_file parameter and set the value to 0.  If you would like to send it as a file attachment then you will need to set the value as 1.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.takeabyte.com.au/2009/06/invalid-object-name-when-using-sp_send_db_mail-in-ql-2005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MetaFrame Presentation Server cannot contact the license server Empty error message</title>
		<link>http://www.takeabyte.com.au/2008/10/metaframe-presentation-server-cannot-contact-the-license-server-empty-error-message/</link>
		<comments>http://www.takeabyte.com.au/2008/10/metaframe-presentation-server-cannot-contact-the-license-server-empty-error-message/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 15:58:19 +0000</pubDate>
		<dc:creator>John Tran</dc:creator>
				<category><![CDATA[Citrix]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.takeabyte.com.au/?p=178</guid>
		<description><![CDATA[If you receive the following error message &#8220;MetaFrame Presentation Server cannot contact the license server Empty&#8221; when logging on your Citrix Server, do the following.

Check the Event Log on the Citrix Server
You should see the following error under the System Log &#8211; This computer running MetaFrame Presentation Server will now stop accepting connections. This server [...]]]></description>
			<content:encoded><![CDATA[<p>If you receive the following error message &#8220;MetaFrame Presentation Server cannot contact the license server Empty&#8221; when logging on your Citrix Server, do the following.</p>
<ol>
<li>Check the Event Log on the Citrix Server<br />
You should see the following error under the System Log &#8211; This computer running MetaFrame Presentation Server will now stop accepting connections. This server is no longer in or could not enter a licensing grace period.</li>
<li>Now check the Event Log on your licensing Server<br />
You should see the following error under the Application Log Error: 9002, Severity: 17, State: 6<br />
The log file for database &#8216;CITRIX&#8217; is full. Back up the transaction log for the database to free up some log space.</li>
<li>If you do not see the following errors then please visit <a href="http://support.citrix.com/article/CTX112408" target="_blank">http://support.citrix.com/article/CTX112408</a></li>
<li>If you do see the errors in your Event Log then you must truncate the inactive transactions in your transaction log and shrink the Citrix transaction log file.  The easiest way to do this is to firstly backup your Citrix database log file and then run the following query.<br />
<em><br />
DBCC SHRINKFILE(CITRIX_log, 10)</em></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.takeabyte.com.au/2008/10/metaframe-presentation-server-cannot-contact-the-license-server-empty-error-message/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Moving SQL tempdb Database in SQL 2005</title>
		<link>http://www.takeabyte.com.au/2008/10/moving-sql-tempdb-database-in-sql-2005/</link>
		<comments>http://www.takeabyte.com.au/2008/10/moving-sql-tempdb-database-in-sql-2005/#comments</comments>
		<pubDate>Fri, 17 Oct 2008 10:46:47 +0000</pubDate>
		<dc:creator>John Tran</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.takeabyte.com.au/?p=131</guid>
		<description><![CDATA[
Launch SQL Server Management Studio and Log onto Server
Determine the logical file names for the tempdb database by using sp_helpfile as follows, click on New Query and run following script

use tempdb
go
sp_helpfile
go

The logical name for each file is contained in the name column. This example uses the default file names of tempdev and templog.
Use the ALTER [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li>Launch SQL Server Management Studio and Log onto Server</li>
<li>Determine the logical file names for the <strong>tempdb</strong> database by using <strong>sp_helpfile</strong> as follows, click on New Query and run following script<br />
<em><br />
use tempdb<br />
go<br />
sp_helpfile<br />
go<br />
</em><br />
The logical name for each file is contained in the <strong>name</strong> column. This example uses the default file names of <strong>tempdev</strong> and <strong>templog</strong>.</li>
<li>Use the ALTER DATABASE statement, specifying the logical file name as follows:<br />
<em><br />
use master<br />
go<br />
Alter database tempdb modify file (name = tempdev,<br />
filename = &#8216;<em>New_Drive</em>:\<em>New_Path</em>\tempdb.mdf&#8217;)<br />
go<br />
Alter database tempdb modify file (name = templog,<br />
filename = &#8216;<em>New_Drive</em>:\<em>New_Path</em>\templog.ldf&#8217;)</em><em><br />
go</p>
<p>
</em></li>
<li>Stop and Restart SQL Server Service</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.takeabyte.com.au/2008/10/moving-sql-tempdb-database-in-sql-2005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving SQL master Database in SQL 2005</title>
		<link>http://www.takeabyte.com.au/2008/10/moving-sql-master-database-in-sql-2005/</link>
		<comments>http://www.takeabyte.com.au/2008/10/moving-sql-master-database-in-sql-2005/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 20:35:44 +0000</pubDate>
		<dc:creator>John Tran</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.takeabyte.com.au/?p=127</guid>
		<description><![CDATA[
Launch SQL Server Configuration Manager
Click on SQL Server 2005 Services and in the right panel right click on SQL Server (instance_name) and click on Properties
On the Advanced tab, in the Startup Parameters box, type the parameters separated by semicolons (;).
Current Startup Parameters: -dD:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\master.mdf;-eD:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG;-lD:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\mastlog.ldf
Change the path of [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li>Launch SQL Server Configuration Manager</li>
<li>Click on SQL Server 2005 Services and in the right panel right click on SQL Server (instance_name) and click on Properties</li>
<li>On the Advanced tab, in the Startup Parameters box, type the parameters separated by semicolons (;).</li>
<li><strong>Current Startup Parameters</strong>: <em>-dD:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\master.mdf;-eD:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG;-lD:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\mastlog.ldf</em></li>
<li>Change the path of master.mdf and mastlog.ldf.</li>
<li><strong>New Startup Parameters:</strong> <em>-dNew_Drive:\New_Path\master.mdf;-eD:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG;-lNew_Drive:\New_Path\mastlog.ldf</em></li>
<li>Stop SQL Server Service</li>
<li>Move master.mdf and mastlog.ldf to new location.  Make sure that permission are correctly set on the new directory.  If you do not give appropriate access to SQL, the SQL Server Service will not start.</li>
<li>Start SQL Server Service</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.takeabyte.com.au/2008/10/moving-sql-master-database-in-sql-2005/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Moving SQL model and msdb Databases in MS SQL 2005</title>
		<link>http://www.takeabyte.com.au/2008/10/moving-sql-model-and-msdb-databases-in-ms-sql-2005/</link>
		<comments>http://www.takeabyte.com.au/2008/10/moving-sql-model-and-msdb-databases-in-ms-sql-2005/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 15:56:51 +0000</pubDate>
		<dc:creator>John Tran</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.takeabyte.com.au/?p=120</guid>
		<description><![CDATA[
Launch SQL Server Configuration Manager
Click on SQL Server 2005 Services and in the right panel right click on SQL Server (instance_name) and click on Properties
On the Advanced tab, in the Startup Parameters box, type the parameters separated by semicolons (;).
Current Startup Parameters: -dD:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\master.mdf;-eD:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG;-lD:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\mastlog.ldf
Add -m, -c and [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li>Launch SQL Server Configuration Manager</li>
<li>Click on SQL Server 2005 Services and in the right panel right click on SQL Server (instance_name) and click on Properties</li>
<li>On the Advanced tab, in the Startup Parameters box, type the parameters separated by semicolons (;).</li>
<li><strong>Current Startup Parameters:</strong> <em>-dD:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\master.mdf;-eD:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG;-lD:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\mastlog.ldf</em></li>
<li>Add -m, -c and T3608 to the Startup Parameters.</li>
<li><strong>New Startup Parameters:</strong> <em>-T3608;-m;-c;-dD:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\master.mdf;-eD:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG;-lD:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\mastlog.ldf</em></li>
<li>Stop and start SQL Server</li>
<li>Detach the model database by using the following commands:<br />
<em><br />
use master<br />
go<br />
sp_detach_db &#8216;model&#8217;<br />
go<br />
</em></li>
<li>Move the model database from its current location to your desired location.  <strong>Make sure that you have the correct permissions in the new directory.</strong></li>
<li>Reattach the model database by using the following commands:<br />
<em><br />
use master<br />
go<br />
sp_attach_db &#8216;model&#8217;,'E:\Sqldata\model.mdf&#8217;,'E:\Sqldata\modellog.ldf&#8217;<br />
go<br />
</em></li>
<li>Make sure you remove -m -c -T3608 from the Startup Parameters</li>
<li>Do the same with the msdb database.</li>
</ol>
<p>NOTE: If you get the following message when starting a New Query <strong>DB is in single-user mode and there&#8217;s already someone connected to the DB</strong>.  Then make sure that you have disconnected from the object explorer before clicking on New Query.  So when you first launch SQL Server Management Studio, click cancel when it asks you to Connect to Server.  Then click on New Query, this will ensure that you have not logged on twice in single user mode.</p>
<p>The other error message is <strong>&#8220;Cannot detach an opened database when the server is in minimally configured mode&#8221;</strong> when trying to sp_detach_db &#8216;model&#8217;.  Best solution is to launch SQL Server Configuration Manager.  Click on SQL Server 2005 Services.  On the right pane, stop every service except the SQL Server (instance_name).  Also disable the network adapter if you still are getting the error message after stopping all services.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.takeabyte.com.au/2008/10/moving-sql-model-and-msdb-databases-in-ms-sql-2005/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Quick Guide to Creating SQL LUN&#8217;s and Installing SnapManager for SQL</title>
		<link>http://www.takeabyte.com.au/2008/10/quick-guide-to-creating-sql-luns-and-installing-snapmanager-for-sql/</link>
		<comments>http://www.takeabyte.com.au/2008/10/quick-guide-to-creating-sql-luns-and-installing-snapmanager-for-sql/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 12:50:14 +0000</pubDate>
		<dc:creator>John Tran</dc:creator>
				<category><![CDATA[NetApp]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SnapManager]]></category>
		<category><![CDATA[StoreVault]]></category>
		<category><![CDATA[Tags]]></category>

		<guid isPermaLink="false">http://www.takeabyte.com.au/?p=104</guid>
		<description><![CDATA[This is just a quick guide to creating SQL LUN&#8217;s and installing SnapManager for SQL.  If you would like a comprehensive guide then you will need to download the SMSQL &#8211; InstallAndAdminGuide.pdf file from Storevault Support.  You will need to register to gain access to the download page.
To begin you will need to make sure [...]]]></description>
			<content:encoded><![CDATA[<p>This is just a quick guide to creating SQL LUN&#8217;s and installing SnapManager for SQL.  If you would like a comprehensive guide then you will need to download the <strong>SMSQL &#8211; InstallAndAdminGuide.pdf</strong> file from <a href="http://support.storevault.com" target="_blank">Storevault Support</a>.  You will need to register to gain access to the download page.</p>
<p>To begin you will need to make sure that you have the following software packages, StoreVault Manager 3.2, SnapDrive 5.0 and SnapManager for SQL 2.11.  If you do not have these packages you can download them from <a href="http://support.storevault.com" target="_blank">Storevault Support</a>.  Once you have obtained the necessary packages do the following.</p>
<p><strong>NOTE:  You will need to install all packages on the SQL Server that you would like to backup. </strong></p>
<ol>
<li>Install StoreVault Manager 3.2</li>
<li>Install SnapDrive 5.0. You may need to install the Windows 2003 Server Hotfix <a href="http://support.microsoft.com/kb/931300" target="_blank"><span style="color: #333333;">KB931300</span></a> &#8211; Snapshot volumes do not mount successfully or the volume dismount operation reports an error when you use a Network Appliance storage device with the Windows Server 2003 Virtual Disk Service.<a href="http://thehotfixshare.net/board/index.php?autocom=downloads&amp;req=download&amp;code=do_download&amp;id=3378" target="_blank">Click here to download x64 Version</a><br />
<a href="http://thehotfixshare.net/board/index.php?autocom=downloads&amp;req=download&amp;code=do_download&amp;id=3255" target="_blank">Click here to download x86 Version</a></li>
<li>Install SnapManager for SQL 2.11</li>
<li>Install ISCSI Software Initiator.  You can <a href="http://www.microsoft.com/downloads/details.aspx?familyid=12cb3c1a-15d6-4585-b385-befd1319f825&amp;displaylang=en" target="_blank">download ISCSI Software Initiator</a> from here if you do not have a copy.  Once you have installed the ISCSI Initiator make sure you launch the application and add the ISCSI target and obtain the ISCSI Name, eg. qn.1998-01.com.vmware:vmwareserver01-69g33239.</li>
<li>Now launch StoreVault Manager and Log onto the SAN that you would like to create the LUN&#8217;s on.</li>
<li>Click Create LUN (SAN) and go through the Create LUN Wizard.  Make sure you select MS SQL Database as the LUN Application Type as shown below.<br />
<a title="Create LUN (SAN)" href="http://www.takeabyte.com.au/wp-content/uploads/2008/10/create-sql-lun-01.jpg" target="_blank"><br />
<img src="http://www.takeabyte.com.au/wp-content/uploads/2008/10/create-sql-lun-01.jpg" alt="Create LUN (SAN)" /></a></li>
<li>You will also need to add the ISCSI Name of the host and StoreVault will automatically attach the LUN to the host.  Once you complete the Wizard, the LUN will appear under My Computer.</li>
<li>Launch SnapManager and follow the Wizard.</li>
<li>You will need to migrate all your databases to the newly created LUN&#8217;s.  Best practise is to have a seperate LUN for your Databases, Logs and SnapInfo.  Databases that are stored on local disk will not be able to be backed up using SnapManager for SQL.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.takeabyte.com.au/2008/10/quick-guide-to-creating-sql-luns-and-installing-snapmanager-for-sql/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
