<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — What does Table Pref refer to in Company Setup?]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=1102&amp;type=atom" />
	<updated>2020-06-25T05:55:00Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=1102</id>
		<entry>
			<title type="html"><![CDATA[Re: What does Table Pref refer to in Company Setup?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37694#p37694" />
			<content type="html"><![CDATA[<p>The counter value is in the file <strong>config_db.php</strong> where the variable <strong>$tb_pref_counter</strong> should refer to the next available array element.</p><p>The command to set the auto increment field correctly (self-adjusting) at the end would be:</p><div class="codebox"><pre><code>ALTER TABLE &lt;table_name&gt; AUTO_INCREMENT = 1;</code></pre></div><p>but in FA, there is no &quot;Company&quot; table.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2020-06-25T05:55:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37694#p37694</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: What does Table Pref refer to in Company Setup?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37687#p37687" />
			<content type="html"><![CDATA[<p>@scendraw of course database field are Auto-incremental, especially if the field is a primary key. It doesn&#039;t matter whether you delete a record or not, the space is already taken, the next record will be auto-increment. So what you can do is update the structure of your table.</p><p>Syntax:<br />ALTER TABLE table_name AUTO_INCREMENT = start_value; </p><p>For Example:</p><p>ALTER TABLE Company AUTO_INCREMENT = 50;</p><p>Hope this help</p>]]></content>
			<author>
				<name><![CDATA[cedricktshiyoyo]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45118</uri>
			</author>
			<updated>2020-06-24T12:59:33Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37687#p37687</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: What does Table Pref refer to in Company Setup?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37684#p37684" />
			<content type="html"><![CDATA[<p>I deleted a company with table pref 3_&nbsp; then I went on to create another company but I cannot choose 3_ it has to be 4_.</p><p>Is this normal?</p>]]></content>
			<author>
				<name><![CDATA[scendraw]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45541</uri>
			</author>
			<updated>2020-06-24T05:27:29Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37684#p37684</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: What does Table Pref refer to in Company Setup?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=4855#p4855" />
			<content type="html"><![CDATA[<p>Many webhosts only allow clients to have one MySql database. By using table prefixes, you can have multiple companies inside one database. The first company gets 0_ in front of all the tables, the next company gets 1_ and so on.<br />You don&#039;t need to use this feature, if you can create an unlimited amount of databases. However many like to have all their companies inside one database.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2010-02-17T23:59:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=4855#p4855</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[What does Table Pref refer to in Company Setup?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=4854#p4854" />
			<content type="html"><![CDATA[<p>I searched the forum and wiki and cannot find a reference to this. It seems to increment a number (_3 or _6) when you add a company, yet I had some functions appear not to work if I let the incrementation occur. If I leave it as blank, then all functions appear to work.</p><p>Any suggestions?</p>]]></content>
			<author>
				<name><![CDATA[avb3]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=419</uri>
			</author>
			<updated>2010-02-17T21:46:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=4854#p4854</id>
		</entry>
</feed>
