<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
    <channel>
        <title>Web-Site-Scripts.com - MS SQL</title>
        <link>https://www.web-site-scripts.com/knowledge-base/category/105</link>
        <description><![CDATA[Root / KnowledgeBase Manager Pro / Installation Manual / MS SQL]]></description>
        <language>en-us</language>
        <generator>KnowlageBase RSS Generator</generator>

         
                <item>
                        <title>If you're using MSSQL 2005</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00693</link>
                                    <description><![CDATA[<p>If you're using MSSQL 2005, please insert this as a second line to the <b>/admin/config.inc.php</b> file (KMP must be already installed):</p>
<p></p><div class="preformatted">
<div class="preformattedContent">define('MAX_INSERT_ROWS', 1);</div>
</div>
<p>The file will look similar to this then:</p><p></p>
<p></p><div class="preformatted">
<div class="preformattedContent"><div class="preformattedContent">&lt;?php</div><div class="preformattedContent"><span style="background-color: rgb(255, 255, 0);">define('MAX_INSERT_ROWS', 1);</span></div><div class="preformattedContent">&nbsp; &nbsp; // --- Debug settings ---</div><div class="preformattedContent">&nbsp; &nbsp; // General application debug</div><div class="preformattedContent">&nbsp; &nbsp; define('KMP_DEBUG', 0); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // 1 to enable, 0 to disable</div><div><br></div></div>
</div>
<p>Save the config.inc.php file.</p><p></p>
]]></description>
                                    <pubDate>Tue, 27 Sep 2011 16:01:38 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00693</guid>
                    </item>
                <item>
                        <title>Full-Text Indexing (MSSQL)</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00654</link>
                                    <description><![CDATA[<p>Full-Text Indexing must be enabled on the MSSQL server, otherwise search function in KMP wouldn't work. It is also <b>recommended to have it enabled before you install KMP.</b></p>
<p>By default Full-Text Indexing is enabled on SQL Server 2005/2008. To find out if it is true for your server, please do the following checks.</p><p></p><ul><li><a href="#ft-deamon" target="">Check if Full-Text Filter Daemon is Running</a></li><li><a href="#ft-catalog" target="">Full-Text Index is Now Enabled. How to Add KMP Tables to the Full-Text Catalog?</a></li></ul><p></p><h3>If you prefer MS SQL Express</h3><p>Please note that MS SQL Express also has <b>Full-Text Indexing</b> feature, you would just need to use the MS SQL&nbsp;Express <i>with Advanced Services</i>&nbsp;package.</p><p>You can download MS SQL Express here:</p><p></p><ul><li><span style="background-color: rgb(255, 255, 255); font-family: 'Segoe UI', Tahoma, sans-serif; line-height: 16.1875px;"><a href="http://www.microsoft.com/en-us/download/details.aspx?id=30438" target="">MS SQL Express 2008 R2 SP2</a></span></li><li><span style="background-color: rgb(255, 255, 255); font-family: 'Segoe UI', Tahoma, sans-serif; line-height: 16.1875px;"><a href="http://www.microsoft.com/en-us/download/details.aspx?id=29062" target="">MS SQL Express 2012</a></span></li></ul><div><p><font face="Segoe UI, Tahoma, sans-serif"><span style="line-height: 16.1875px;">When asked, select the <b>SQLEXPRADV</b>&nbsp;package - that's the MS SQL Express with Advanced Services package that you need:</span></font></p><p><font face="Segoe UI, Tahoma, sans-serif"><span style="line-height: 16.1875px;"></span></font><font face="Segoe UI, Tahoma, sans-serif"><span style="line-height: 16.1875px;"><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00654/sql-express-2012-w-adv-serv.PNG" alt="" title="" width="464" height="468" border="0" hspace="0" vspace="0" align="" style="margin: 0px; border-width: 0px;"><br></span></font></p></div>
<h2><a name="ft-deamon" ></a>Check if Full-Text Filter Daemon is Running</h2>
<p>Go to <b>Start &gt; Control Panel &gt; Administrative Tools &gt; Services</b>.</p>
<p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00654/service.png" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " title="" alt="" border="0"><br></p>
<p>You should see there&nbsp;<b>SQL Full-text Filter Daemon Launcher&nbsp;(SQLSERVERNAME)&nbsp;</b>for SQL 2008, or&nbsp;<b>SQL Server FullText Search (SQLSERVERNAME)&nbsp;</b>for SQL 2010.</p>
<p>Its status should be <b>Started</b>.</p>
<p>If this service is not running, just start it and make it start automatically. This will solve the issue and no re-installation is necessary.</p>
<p>If you cannot find this service, check if Full-Text Filter Daemon is installed. For that, go to <b>Start &gt; All Programs &gt; Microsoft SQL Server 2008 &gt; Configuration Tools &gt; SQL Server Configuration Manager</b>.</p><p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00654/config-manager.png" alt="" title="" width="700" height="182" border="0" hspace="0" vspace="0" align="" style="margin-right: 0px; margin-left: 0px; margin-bottom: 0px; margin-top: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; "><br></p><p>Find the "<b>SQL Full-text Filter Daemon Launcher</b>" service here. If it is not running, launch it and setup it to start Automatically.</p><p>If this service is not shown here, then Full-text Filter Daemon is simply not installed in this SQL instance.</p><p>Run SQL setup and update this instance. On the "Feature Selection" step you need to select the "<b>Full-Text Search</b>" option.</p><p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00654/setup-full-text-search.png" alt="" title="" width="581" height="489" border="0" hspace="0" vspace="0" align="" style="margin-right: 0px; margin-left: 0px; margin-bottom: 0px; margin-top: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; "><br></p><p>If you haven't installed KMP yet, you can go on and <a href="ARTICLE_URL#128##AA-00167#" target="">install it</a> now (you can skip the remaining part of this guide).</p><p>If you had installed KMP prior to enabling the Full-Text Indexing feature, there are two ways to enable search in KMP:</p><p></p><ul><li><span style="line-height: 18px;">re-install KMP</span></li><li><span style="line-height: 18px;">add required KMP database tables to the full-text search catalog (keep reading to learn how to do that)</span></li></ul><p></p>
<p></p>
<h2><a name="ft-catalog" ></a>Full-Text Index is Now Enabled. How to Add KMP Tables to the Full-Text Catalog?</h2><p></p><div class="info">
<div class="infoHeader">Please note!</div>
<div class="infoContent">
<p>
This step is needed if you enabled Full-Text Indexing feature <b>after </b>installing KMP and you do not want to reinstall it. If you have enabled this feature before installing KMP, feel free to continue the installation process. You're fine.</p>
</div>
</div>
<p>OK. You finally enabled all full-text options on your SQL server and search function is not working correctly yet.&nbsp;You want to get search working, but you do not want to re-install KMP because of this.</p><p></p>
<p>You can add required database tables and columns to the full text catalog manually, without reinstalling KMP.</p>
<p>
</p>
<p>In&nbsp;<b>SQL Server Management Studio </b>check if the Full-Text Catalog&nbsp;named "<b>kmp_fulltext_catalog</b>" already exists. For this, go to <b>Storage &gt; Full Text Catalogs </b>page in your database structure and check if "<b>kmp_fulltext_catalog</b>" exists there.</p>
<p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00654/storage_catalogs.png" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " title="" alt="" border="0"><br></p>
<p>You can see on my screenshot that the mentioned catalog already exists. If it doesn't exist on your SQL server, you can create it: Right-click on <b>Full Text Catalogs</b> &gt; <b>New Full Text Catalog</b>..., then provide the name for it in the window that opens:&nbsp;"<b>kmp_fulltext_catalog</b>" (without quotes), and save it by clicking OK. No need to change anything else.</p>
<p>Let's add the required tables and columns to the catalog now.</p>
<p>Right-click on it &gt; <b>Properties</b>.</p>
<p>Go to the <b>Tables/View</b>s page.</p>
<p>Right now the catalog should look like this (notice the empty list on the right <i>Table/view objects assigned to the catalog. </i>If this list is not empty for some reason, then probably you do not have to proceed because full text catalog is just fine and should work normally - try searching something in KMP to make sure).</p>
<p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00654/empty_catalog.png" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " title="" alt="" border="0"><br></p>
<p>If the list on the right is empty, then you should start adding the following tables and columns to the index:</p>
<p><table cellspacing="0" cellpadding="1" class="overview"><tbody>
<tr>
<th>
Table</th>
<th>
Columns</th>
</tr>
<tr>
<td>
&nbsp;dbo.drafts</td>
<td>
&nbsp;plain_text, question</td>
</tr>
<tr>
<td>
&nbsp;dbo.faq_article_templates</td>
<td>
&nbsp;plain_text, title</td>
</tr>
<tr>
<td>
&nbsp;dbo.faq_categories</td>
<td>
&nbsp;cat_name, meta_description, meta_keywords</td>
</tr>
<tr>
<td>
&nbsp;dbo.faq_statistics</td>
<td>
&nbsp;feedback</td>
</tr>
<tr>
<td>
&nbsp;dbo.faq_visitors_comments</td>
<td>
&nbsp;visitor_comment, visitor_subject</td>
</tr>
<tr>
<td>
dbo.search_index&nbsp;</td>
<td>
&nbsp;back_end_custom_fields, comments, front_end_custom_fields, meta_description, meta_keywords, plain_text, question</td>
</tr>
<tr>
<td>
&nbsp;dbo.terms</td>
<td>
&nbsp;term, term_description</td>
</tr>
</tbody>
</table></p>
<p>To add a table to the Full Text Catalog simply select this table on the left and click on the <b><font face="'courier new'">-&gt;</font></b> button. It will be added to the list on the right.</p>
<p>To add columns to the Full Text Catalog select the relevant table in the list on the right and mark checkboxes for these columns below.</p>
<p>For example, this screenshot shows the look of the dbo.drafts table and its columns in the catalog.</p>
<p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00654/catalog_properties.png" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " title="" alt="" border="0"><br></p>
<p>Be attentive to add every table and column and then click OK to save the catalog.</p>
<p>You can now check the search function, it should work correctly.</p>
<p></p>
<p></p>
]]></description>
                                    <pubDate>Mon, 04 Apr 2011 15:08:21 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00654</guid>
                    </item>
                <item>
                        <title>Migration from MySQL to MS SQL</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00615</link>
                                    <description><![CDATA[<p>This guide explains how to migrate KMP from MySQL to MS SQL with keeping your data. This guide can also be used if you're migrating from one MS SQL server to another.</p><p></p><ol><li>Ensure that the <a href="ARTICLE_URL#615##AA-00654#" target="">Full-Text Indexing feature</a> is installed on the MS SQL server.</li><li>Install a fresh KMP v6.0.1 or higher instance using a new empty MS SQL database (see&nbsp;<a href="ARTICLE_URL#128##AA-00167#" target="">The installation guide</a>&nbsp;for details).</li><li>Update&nbsp;the old instance of KMP to the v6.0.1 or higher (see <a href="ARTICLE_URL#198##AA-00237#" target="">The update guide</a>&nbsp;for details). <b>Please note that both instances must be of the same version!</b></li><li>Make a database dump of the upgraded instance of KMP: go to Administration &gt; Database Backups and click "Create Dump".&nbsp;This could take several minutes. Please do not interrupt the process.<br><br><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00615/create-dump.png" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " title="" alt="" border="0"><br><br></li><li>Copy the following folders through from the&nbsp;upgraded instance&nbsp;of KMP to the new one:<br><br><div class="preformatted">
<div class="preformattedContent"><p>
/admin/attaches/<br></p><p>/admin/media_store/</p><p>/admin/systembackups/</p></div></div><br></li><li>Go to&nbsp;Administration &gt; Database Backups in the new KMP instance, sort dumps by&nbsp;and click "Restore" for the most recent database dump. Dump restoring could take quite a lot of time (several hours). That's fine. <b>Please do not interrupt the process</b>.<br><br><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00615/backup-restore.png" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " title="" alt="" border="0"><br><br></li><li>Give a good test to a new instance running on MS SQL: check that all your articles, attachments, images, users, etc. were moved properly. Please do not delete the old KMP instance until you're sure that the new instance is up and running with all your data safe.</li></ol><p></p>]]></description>
                                    <pubDate>Mon, 27 Dec 2010 10:19:41 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00615</guid>
                    </item>
                <item>
                        <title>Database extensions for PHP (MySQL, Microsoft SQL)</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00595</link>
                                    <description><![CDATA[<p>KMP uses MySQL or MS SQL database to store most of its data. You would need to have a database driver (realized as a&nbsp;PHP extension) to enable KMP connect to a database server. Chose the link below which matches your web server operation system and desired database type.</p>
<p></p>
<ul><li><a href="ARTICLE_URL#678##AA-00717#" target="">Drivers for Linux - MySQL</a></li><li><a href="ARTICLE_URL#677##AA-00716#" target="">Drivers for Windows - MySQL</a></li><li><a href="ARTICLE_URL#681##AA-00720#" target="">Drivers for IIS6 (Windows 2003/XP) - MSSQL</a></li><li><a href="ARTICLE_URL#679##AA-00718#" target="">Drivers for IIS7/IIS8 (Windows 2008/7/10) - MSSQL</a></li><li><a href="ARTICLE_URL#709##AA-00748#" target="">Drivers for Windows + Apache - MSSQL</a></li></ul>
<p></p>
<p><br></p>
<p><br></p>
<p></p>
<p>
</p>
<p></p>
<div>
<p></p>

<p></p>
</div>]]></description>
                                    <pubDate>Mon, 29 Nov 2010 17:10:02 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00595</guid>
                    </item>
                
    </channel>
</rss>