<?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>GoodCore Software Blog &#187; SQL Server</title>
	<atom:link href="http://www.goodcoresoft.com/blog/tag/sql-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.goodcoresoft.com/blog</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 03 Apr 2009 11:35:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Setting up Navision on SQL Server manually</title>
		<link>http://www.goodcoresoft.com/blog/2008/09/15/setting-navision-on-sql-server/</link>
		<comments>http://www.goodcoresoft.com/blog/2008/09/15/setting-navision-on-sql-server/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 05:21:42 +0000</pubDate>
		<dc:creator>mehroz</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Navision]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://www.goodcoresoft.com/blog/?p=20</guid>
		<description><![CDATA[Settng up a Navision database on SQL Server requires a few steps. Here&#8217;s a quick checklist:
Navision requires traceflag 4616 to be set ON. We have two choices for this:

Execute the following SQL-statement.
DBCC TRACEON (4616,-1)
This approach will turn the flag on for the current session only, that is, as long as the SQL Server is not [...]]]></description>
			<content:encoded><![CDATA[<p>Settng up a Navision database on SQL Server requires a few steps. Here&#8217;s a quick checklist:</p>
<p>Navision requires traceflag <strong>4616 </strong>to be set ON. We have two choices for this:</p>
<ol>
<li>Execute the following SQL-statement.<br />
<strong><code>DBCC TRACEON (4616,-1)</code></strong><br />
This approach will turn the flag on for the current session only, that is, as long as the SQL Server is not restarted. Once the server gets restarted, you will have to run the above query again.</li>
<li>Add the startup parameter <strong>-T 4616</strong> to the SQL server database service: <strong>MSSQLSERVER</strong>. The best way to do this is to use the <em>SQL Server Configuration Manager</em>. This solution is rather a permanent one and the flag is set across system/service restarts.</li>
</ol>
<p>If you try to open a Navision database using Windows authentication, it displays a missing stored procedure xp_ndo_enumusersids error in xp_ndo.dll. To solve this, you will need to copy xp_ndo.dll to C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn (default path) and run the following SQL-script:</p>

<div class="wp_syntax"><div class="code"><pre class="sql sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">USE</span> master
EXEC sp_addextendedproc xp_ndo_enumusergroups<span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'C:<span style="color: #000099; font-weight: bold;">\P</span>rogram Files<span style="color: #000099; font-weight: bold;">\M</span>icrosoft SQL Server<span style="color: #000099; font-weight: bold;">\M</span>SSQL.1<span style="color: #000099; font-weight: bold;">\M</span>SSQL<span style="color: #000099; font-weight: bold;">\B</span>inn<span style="color: #000099; font-weight: bold;">\x</span>p_ndo.dll'</span>
GO
<span style="color: #993333; font-weight: bold;">GRANT</span> EXECUTE
<span style="color: #993333; font-weight: bold;">ON</span> <span style="color: #66cc66;">&#91;</span>xp_ndo_enumusergroups<span style="color: #66cc66;">&#93;</span>
<span style="color: #993333; font-weight: bold;">TO</span> PUBLIC
&nbsp;
GO
<span style="color: #993333; font-weight: bold;">USE</span> master
EXEC sp_addextendedproc xp_ndo_enumusersids<span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'C:<span style="color: #000099; font-weight: bold;">\P</span>rogram Files<span style="color: #000099; font-weight: bold;">\M</span>icrosoft SQL Server<span style="color: #000099; font-weight: bold;">\M</span>SSQL.1<span style="color: #000099; font-weight: bold;">\M</span>SSQL<span style="color: #000099; font-weight: bold;">\B</span>inn<span style="color: #000099; font-weight: bold;">\x</span>p_ndo.dll'</span>
GO
<span style="color: #993333; font-weight: bold;">GRANT</span> EXECUTE
<span style="color: #993333; font-weight: bold;">ON</span> <span style="color: #66cc66;">&#91;</span>xp_ndo_enumusersids<span style="color: #66cc66;">&#93;</span>
<span style="color: #993333; font-weight: bold;">TO</span> PUBLIC
GO</pre></div></div>

<p><strong>Useful References:</strong></p>
<p>DBCC TRACEON:<br />
<a href="http://msdn.microsoft.com/en-us/library/ms187329.aspx" >http://msdn.microsoft.com/en-us/library/ms187329.aspx</a></p>
<p>SQL Startup options:<br />
<a href="http://msdn.microsoft.com/en-us/library/ms190737.aspx" >http://msdn.microsoft.com/en-us/library/ms190737.aspx</a></p>
<p>Adding xp_ndo.dll manually:<br />
<a href="http://www.dynamicsnation.com/NAVNavision/Forums/tabid/61/forumid/53/threadid/67/scope/posts/Default.aspx" >http://www.dynamicsnation.com/NAVNavision/Forums/tabid/61/forumid/53/threadid/67/scope/posts/Default.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.goodcoresoft.com/blog/2008/09/15/setting-navision-on-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
