database Questions - FogBugz Knowledge Exchange
most recent 30 from http://fogbugz.stackexchange.com
2012-02-09T09:07:13Z
http://fogbugz.stackexchange.com/feeds/tag/database
http://www.creativecommons.org/licenses/by-nc/2.5/rdf
http://fogbugz.stackexchange.com/questions/9843/cleaning-up-old-plugin-tables
Cleaning up old plugin tables
Mike Caron
2012-01-20T16:09:11Z
2012-01-31T18:30:28Z
<p>What is the correct procedure to clean up unused plugin tables?</p>
<p>Somehow throughout the life of our FogBugz installation we've managed to accrue a lot of plugin tables. It looks like some of them are actually unused as we have the same name plugins with different indexes.</p>
<p>Is there a good way to identify which tables are unneeded and drop them?</p>
http://fogbugz.stackexchange.com/questions/9797/keep-a-seperate-wiki-create-date-field
Keep a seperate Wiki Create Date field.
Tom of cPanel
2012-01-12T23:48:25Z
2012-01-12T23:48:25Z
<p>I've run into a problem with the way the wiki's are stored. To create a report of just the Wiki articles created, you have to join the revisions and wikipage tables.</p>
<p>If each page row kept a createdate column, it would make new article detection much simpler for API users.</p>
http://fogbugz.stackexchange.com/questions/9786/how-do-i-clear-all-of-the-cases-from-a-database
How do I clear all of the cases from a database?
Chris M
2012-01-11T15:17:58Z
2012-01-11T17:33:20Z
<blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://fogbugz.stackexchange.com/questions/16/how-do-i-delete-cases" rel="nofollow">How do I delete cases?</a> </p>
</blockquote>
<p>I want to clear all of the cases from my database and reset the autonumber back to 1.</p>
<p>How can I do this easily? Or at least, how can I do this?</p>
<p>I am importing data from our old system, and I want to run some import tests, but preserving my original bug numbers is very important, so subsequent imports have to allow me to use all the bug numbers starting from 1.</p>
http://fogbugz.stackexchange.com/questions/4949/is-microsoft-access-support-being-deprecated
Is Microsoft Access support being deprecated?
Ben Kamens
2010-09-27T21:24:33Z
2012-01-09T03:51:35Z
<p>I heard that FogBugz support for Microsoft Access is being deprecated.</p>
<p>Is that true, and what does that mean?</p>
http://fogbugz.stackexchange.com/questions/5721/move-database-to-new-sql-server-instance
Move Database To New SQL Server Instance
RichLich
2010-11-03T20:19:40Z
2011-12-14T18:22:38Z
<p>What has to change where in the Fogbugz 8 configuration when a database is moved from one SQL Server instance to another? Anything special needed to be done when the old DB is SQL 2005 and the new is SQL 2008?</p>
<p>(see <a href="http://fogbugz.stackexchange.com/questions/344/move-fogbugz-to-another-server" rel="nofollow">this post</a> for moving the FogBugz site)</p>
http://fogbugz.stackexchange.com/questions/350/importing-your-fogbugz-database-into-fogbugz-on-demand
Importing Your FogBugz Database into FogBugz On Demand
FogBugz KB
2009-10-15T20:37:11Z
2011-12-09T16:54:35Z
<p>How can I import the database from my FogBugz installation into FogBugz On Demand?</p>
http://fogbugz.stackexchange.com/questions/238/mysql-moving-database-from-one-mysql-instance-to-another
MySQL: Moving database from one MySQL instance to another
FogBugz KB
2009-10-13T22:06:17Z
2011-12-08T16:37:11Z
<p>How do you go about migrating a FogBugz database from one MySQL instance to another?</p>
<p>(see <a href="http://fogbugz.stackexchange.com/questions/344/move-fogbugz-to-another-server" rel="nofollow">this post</a> for moving the FogBugz site)</p>
http://fogbugz.stackexchange.com/questions/3154/how-do-i-find-bugs-with-no-bug-events
How do I find bugs with no bug events?
Rich Armstrong
2010-05-24T18:50:10Z
2011-11-30T19:22:00Z
<p>Some of my bug records appear to have no bug events. How do I find them?</p>
http://fogbugz.stackexchange.com/questions/240/sql-server-set-up-fogbugz-database-on-a-separate-non-trusted-server
SQL Server: Set up FogBugz database on a separate non-trusted server
FogBugz KB
2009-10-13T22:10:03Z
2011-11-17T19:54:10Z
<p>How can you set up a FogBugz database on a separate non-trusted server?</p>
http://fogbugz.stackexchange.com/questions/9487/plugin-search-cases-with-input-in-custom-field
Plugin: Search cases with [input] in custom field
Troels
2011-11-08T14:01:39Z
2011-11-15T19:44:05Z
<p>Hi.</p>
<p>I am developing a plugin where I wish to get a list of case id's (i.e. ixBug) of cases that have a certain value in a custom field.</p>
<p>I'm thinking that the SQL could look like this:
<code>SELECT Bug.ixBug FROM Bug,Plugin_8_CustomBugData WHERE Plugin_8_CustomBugData.invoice=@userinput</code>.
Which I've tried to translate to code:</p>
<pre><code>query.AddSelect("Bug.ixBug, Bug.ixPersonAssignedTo");
query.AddLeftJoin("Plugin_8_CustomBugData", "Bug.ixBug = Plugin_8_CustomBugData.ixBug");
query.AddSelect("Plugin_8_CustomBugData.invoice41");
</code></pre>
<p>But this gives me an error "Unknown column 'Plugin_8_CustomBugData.invoice41' in 'field list'". On one of the many pages I've come across, I've found out that plugin tables are not available to other plugins.</p>
<p>I'v been searching here and on google with no luck. All the results are about the XML API (which I am not using) or links to <a href="https://developers.fogbugz.com/default.asp?W184" rel="nofollow">CAllPluginsApi</a>. Either I don't get the CAllPluginsApi or it is not what I need. There's not much documentation to work from.</p>
<p>I'm running FogBugz v8.6.50 on MySQL.</p>
http://fogbugz.stackexchange.com/questions/221/the-fogbugz-database-format-schema
The FogBugz Database Format (Schema)
FogBugz KB
2009-10-13T20:26:24Z
2011-11-09T20:38:47Z
<p>Where can I find details on the FogBugz database schema?</p>
http://fogbugz.stackexchange.com/questions/376/importing-your-cases-from-another-tool
Importing your cases from another tool
FogBugz KB
2009-10-15T22:32:54Z
2011-11-02T15:35:58Z
<p>How can you import all of your cases from another issue/bug tracker?</p>
http://fogbugz.stackexchange.com/questions/215/access-converting-your-access-database-to-another-format
Access: Converting your Access Database to Another Format
FogBugz KB
2009-10-13T20:12:54Z
2011-10-28T20:22:08Z
<p><em><strong>Official Fog Creek Notice:</strong> <a href="http://fogbugz.stackexchange.com/questions/4949/is-microsoft-access-support-being-deprecated/4950#4950" rel="nofollow">MS Access support is being deprecated in FogBugz 8.0</a>.</em></p>
<p>How do you convert an MS Access database to another format?</p>
http://fogbugz.stackexchange.com/questions/228/mysql-importing-data-from-on-demand-or-trial
MySQL: Importing data from On Demand or trial
FogBugz KB
2009-10-13T21:10:11Z
2011-09-30T15:19:47Z
<p>How can I import a FogBugz On Demand trial database into MySQL?</p>
http://fogbugz.stackexchange.com/questions/862/how-do-i-remove-information-from-my-fogbugz-database
How do I remove information from my FogBugz database?
FogBugz FAQ
2009-11-30T17:11:25Z
2011-09-30T15:01:39Z
<p>I have a bunch of cases I'd like to delete. How do I go about it?</p>
http://fogbugz.stackexchange.com/questions/9071/on-demand-database-backup-are-very-slow
On Demand database backup are very slow
Emil Rasmussen
2011-08-29T07:01:23Z
2011-09-19T16:51:18Z
<p>I wanted to download a local copy of the FogBugz database of our FogBugz On Demand account. But after 4 hours I canceled the operation - the progress bar showed something like 5 percent completed.</p>
<p>I know the feature is meant for migrating a FogBugz installation, and not for ad hoc backups, but it was so slow that it was not usable.</p>
<p>I know having a local copy of the database perhaps is a bit paranoid, but the recent <a href="http://status.fogcreek.com/2011/08/hurricane-irene.html" rel="nofollow">hurricane warning</a> prompted me to take action.</p>
http://fogbugz.stackexchange.com/questions/5319/how-can-i-undo-resolving-a-case-as-a-duplicate
How can I 'undo' resolving a case as a duplicate?
Kenny Evitt
2010-10-13T12:54:21Z
2011-09-16T18:47:00Z
<p>I resolved several cases with a 'duplicate' resolved status and entered the case of which I believed both were duplicates. A coworker disputed that the cases were duplicates. I've re-opened the cases – and removed the contents of the 'Duplicate of' field, but the 'original' case still lists those cases as duplicates and the 'duplicate' cases still indicate that they are duplicates of the 'original' case. How can I 'fix' this?</p>
<p>[I'm not averse to modifying the DB directly. I think it would be helpful to document how this could be done, if only via the DB backend.]</p>
<p>[I've also subsequently edited the re-opened 'duplicate' cases and removed the contents of the 'Duplicate of' field, but doing so does not 'fix' this.]</p>
http://fogbugz.stackexchange.com/questions/9172/plugin-sql-wrapper-w-left-joins
plugin: SQL wrapper w/ left joins
dts
2011-09-14T22:48:29Z
2011-09-14T22:48:29Z
<p>Hello,</p>
<p>I have a question about executing a specific type of SQL query through the wrapper exposed to the plugins:</p>
<p>My plugin has a database table which contains an "ixPerson" column, which corresponds to the column of the same name in the Fogbugz core "Person" table. I am able to successfully execute queries which join these two tables on the "ixPerson" field, and it works as expected. In addition, I need to be able to select all records in the Fogbugz core "Person" table that DO NOT have records in my plugin's table, based on the "ixPerson" field. I have looked up ways to do this online, specifically here: </p>
<p><a href="http://weblogs.sqlteam.com/peterl/archive/2007/09/20/Finding-records-in-one-table-not-present-in-another-table.aspx" rel="nofollow">http://weblogs.sqlteam.com/peterl/archive/2007/09/20/Finding-records-in-one-table-not-present-in-another-table.aspx</a></p>
<p>Several examples are given, but all but one of them use nested WHERE clauses. I don't know how I would go about using a nested WHERE clause through the wrapper, or if its even possible. If someone could give me some tips, or point me to any Fogbugz documentation on this if it exists, I would be most grateful.</p>
<p>I attempted the version that uses the LEFT JOIN and no nested WHERE clauses, but it did not return any results to me. My temporary solution is two SQL queries and loops to identify (and remove) records which exist in both tables. It works, but I would like a single query solution if possible!</p>
<p>Thanks in advance!</p>
<p>-Don</p>
http://fogbugz.stackexchange.com/questions/1038/shrink-my-fogbugz-database-by-removing-old-email-attachments
Shrink my FogBugz database by removing old email attachments?
FogBugz FAQ
2009-12-15T16:54:58Z
2011-09-12T16:23:52Z
<p>I have a bunch of old customer emails and attachments that I want to get rid of. How can I get rid of large email attachments that are older than 6 months old?</p>
http://fogbugz.stackexchange.com/questions/1728/moving-to-ms-sql-server-express-need-to-reduce-database-size-by-deleting-email-a
Moving to MS SQL Server Express, need to reduce database size by deleting email attachments
Terrell
2010-02-03T18:21:08Z
2011-09-12T16:22:42Z
<blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://fogbugz.stackexchange.com/questions/1038/shrink-my-fogbugz-database-by-removing-old-email-attachments" rel="nofollow">Shrink my FogBugz database by removing old email attachments?</a> </p>
</blockquote>
<p>We have been using the full version of MS SQL Server Standard for our FogBugz 7.0 installation, but are now downgrading to MS SQL Server Express. However, SQL Server Express has a 4GB database limit and our database is over 6GB in size mostly due to many large file attachments from email. </p>
<p>How do I remove all file attachments over a certain size or older than a certain time period? I would like to maintain the text from the cases themselves for reference, but do not need the attachments.</p>
<p>Thanks</p>
<p>Terrell</p>
http://fogbugz.stackexchange.com/questions/3551/data-too-long-for-column-stoken-at-row-1
Data too long for column 'sToken' at row 1
Becky Goodman
2010-07-08T16:09:11Z
2011-09-09T07:27:21Z
<p>We have the following error displaying in our Fogbugz:</p>
<pre><code>7/8/2010 10:44 AM (GMT-05:00): The Fog Creek Maintenance Service has reported an error. (200) CCmd: Data too long for column 'sToken' at row 1
SQL: INSERT INTO SorterToken (sToken, nLatestDoc) VALUES (?, ?)
Params: SI
1: FROM:"¨k¤k¶Ê±¡/¤k©Ê¿³¾Ä¶Ê±¡/¤k¥Î¤fªA/¨k©
2: 24555
Wasabi.Runtime.WasabiException (0x80004005): Data too long for column 'sToken' at row 1
SQL: INSERT INTO SorterToken (sToken, nLatestDoc) VALUES (?, ?)
Params: SI
1: FROM:"¨k¤k¶Ê±¡/¤k©Ê¿³¾Ä¶Ê±¡/¤k¥Î¤fªA/¨k©
2: 24555
---> MySql.Data.MySqlClient.MySqlException: Data too long for column 'sToken' at row 1
at MySql.Data.MySqlClient.MySqlStream.OpenPacket()
at MySql.Data.MySqlClient.NativeDriver.ReadResult(UInt64& affectedRows, Int64& lastInsertId)
at MySql.Data.MySqlClient.MySqlDataReader.GetResultSet()
at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
at Wasabi.Runtime.ADO.Command.ExecuteNonQuery() in c:\src\Wasabi\Wasabi.Runtime\ADO\Command.cs:line 94
at FogCreek.FogBugz.CCmd.ExecuteNonQuery(Nullable`1 nCacheClearLevel) in c:\src\FogBugz\distribution\src-Website\CCmd.was:line 237
at Wasabi.Runtime.Error.Raise(Int32 number, String source, String description, String helpfile, Nullable`1 helpcontext) in c:\src\Wasabi\Wasabi.Runtime\Error.cs:line 88
at FogCreek.FogBugz.CCmd.ExecuteNonQuery(Nullable`1 nCacheClearLevel) in c:\src\FogBugz\distribution\src-Website\CCmd.was:line 247
at FogCreek.FogBugz.CToken.Insert(String sTokenInit, Int32 nLatestDocInit) in c:\src\FogBugz\distribution\src-Website\CToken.was:line 215
at FogCreek.FogBugz.CBayesianLearner.LearnTokens(CTokenBag tokenBag, Int32 ixAreaDestinationInit, Int32 ixAreaSourceInit, Boolean bUndoPreviousInit, Boolean bBinaryClassificationInit) in c:\src\FogBugz\distribution\src-Website\CBayesianLearner.was:line 251
at FogCreek.FogBugz.CBug.Train(Int32 ixAreaFrom, Int32 ixAreaTo) in c:\src\FogBugz\distribution\src-Website\CBug.was:line 3131
at FogCreek.FogBugz.CTrainingRequest.PerformRequest() in c:\src\FogBugz\distribution\src-Website\CTrainingRequest.was:line 276
at FogCreek.FogBugz.__Global.SingleHeartbeatFogBugz(Int32 cMaxBayesianRequests, Int32 cMaxMailMessages, Int32 nEmailTimeout) in c:\src\FogBugz\distribution\src-Website\singleHeartbeat.was:line 93
at FogCreek.FogBugz.__Global.SingleHeartbeatPlatform(Int32 cMaxBayesianRequests, Int32 cMaxMailMessages, Int32 nEmailTimeout) in c:\src\FogBugz\distribution\src-Website\singleHeartbeat.was:line 45
at FogCreek.FogBugz.__Global.StartHeartbeat() in c:\src\FogBugz\distribution\src-Website\heartbeat.was:line 70
</code></pre>
<p>Can you please assist?</p>
http://fogbugz.stackexchange.com/questions/2573/error-im002-data-source-name-not-found-and-no-default-driver-specified
ERROR [IM002] Data source name not found and no default driver specified
Matthias Otto
2010-03-29T20:51:25Z
2011-08-22T17:39:53Z
<p>Hi all,</p>
<p><img src="http://img690.imageshack.us/img690/834/screenshotka.png" alt="alt text"></p>
<p>since this morning I am getting the above error. We set up the server just about a week ago and used it successfully until Friday. When I got in this morning it failed.</p>
<ul>
<li>I checked the ConnectionString (as recommended)</li>
<li>ensured that SQL runs</li>
<li>verified user account and permissions</li>
<li>verified that logging in with that account and DB works</li>
<li>used database server's IP address instead of computer name</li>
</ul>
<p>Then I thought upgrading to 7.1.18 might fix it. The upgrade included database upgrades that ran without trouble. Still, it wouldn't connect to our database afterwards.</p>
<p>Any ideas what could be wrong? Thanks</p>
<blockquote>
<p><img src="http://www.gravatar.com/avatar/baf927dcc0b0c5d0f41dece1e575aa0f?s=32&d=identicon&r=PG" alt="Fog Creek"> <a href="http://fogbugz.stackexchange.com/questions/1023/whats-that-kiwi-logo-and-case-number-at-the-bottom-of-my-feature-request" rel="nofollow">Case FC1869023</a></p>
</blockquote>
http://fogbugz.stackexchange.com/questions/9041/support-for-coalesce-in-database-queries-in-plugins
Support for COALESCE in database queries in plugins
adambox
2011-08-18T18:57:24Z
2011-08-18T18:57:49Z
<p>I tried to use a <code>COALESCE</code> in a <code>CBugQuery</code> in a plugin I'm writing and FogBugz threw an exception:</p>
<blockquote>
<p>System.ArgumentException: Unknown function: COALESCE</p>
</blockquote>
<p>Since MySQL and SQL Server both support it, why doesn't FogBugz (now that Access support is deprecated)?</p>
<blockquote>
<p><img src="http://www.gravatar.com/avatar/baf927dcc0b0c5d0f41dece1e575aa0f?s=32&d=identicon&r=PG" alt="Fog Creek"> <a href="http://fogbugz.stackexchange.com/questions/1023/whats-that-kiwi-logo-and-case-number-at-the-bottom-of-my-feature-request" rel="nofollow">Case FC2115036</a></p>
</blockquote>
http://fogbugz.stackexchange.com/questions/2130/fogbugz-pre-sales-q-web-db
FogBugz Pre-Sales Q: Web & DB
Elliot Ross
2010-02-22T20:53:30Z
2011-08-17T21:14:10Z
<p>Greetings,</p>
<p>Our Dev team has been looking at the tool, they state that it works with MS IIS, Question, does it "share" IIS nicely or does it take over the whole box like sharepoint services?</p>
<p>Second - if using the smaller DB engines - any info on database growth numbers?</p>
<p>(need to determine if we can get by without purchasing full squirrelly server</p>
<p>Thanks</p>
http://fogbugz.stackexchange.com/questions/8836/sample-mysql-configuration-my-cnf-my-ini
Sample MySQL configuration (my.cnf / my.ini)
adambox
2011-07-21T14:11:07Z
2011-08-09T21:03:52Z
<p>Could someone post a good my.cnf / my.ini file for use with FogBugz? (see also <a href="http://fogbugz.stackexchange.com/questions/1102/what-gotchas-are-there-in-the-mysql-requirements-for-fogbugz" rel="nofollow">MySQL gotchas</a>)</p>
http://fogbugz.stackexchange.com/questions/8759/removed-active-directory-fogbugz-no-longer-working-after-trying-re-install
Removed active directory - fogbugz no longer working after trying re-install
bitbounce
2011-07-15T14:53:45Z
2011-08-02T14:32:33Z
<p>So, here's the scenario.</p>
<p>Everything was working fine. Then i stupidly installed AD on my server, and then un-installed it.</p>
<p>This caused all sorts of user errors. After unsuccessfully trying to get them working, FB app domain would still not run.</p>
<p>I decided to try re-installing. Now, I get the following error when trying to reach my FB site:</p>
<p><em>You do not have a version of the FogBugz database that FogBugz could read. It is possible that restarting your web server will reset things back to normal. If you are trying to get FogBugz to create a blank database for you, please add a table named Version with a column named ixVersion (int) and the value 0 in it.
Please backup your data and reinstall FogBugz.</em></p>
<p>So, what do i do now?!</p>
http://fogbugz.stackexchange.com/questions/8879/fogbugz-on-demand-snapshot
Fogbugz On Demand Snapshot
bmarick
2011-07-27T19:06:35Z
2011-07-27T19:06:35Z
<p>Is it possible to get a snap shot of our current Fogbugz database for our server. The purpose would be to increase speed of reports and other applications we currently have to do via xml exchange. </p>
<p>Thanks </p>
<p>Brandon</p>
http://fogbugz.stackexchange.com/questions/8730/using-plugin-api-is-it-possible-to-get-all-bug-events-for-a-particular-bug
Using plugin API is it possible to get all bug events for a particular bug?
Nikhil
2011-07-12T15:31:23Z
2011-07-19T20:58:18Z
<p>I am building a plugin that requires me to get all the events for a bug. Is there an prescribed way to do this?</p>
http://fogbugz.stackexchange.com/questions/8700/how-much-database-expertise-do-i-need-to-host-fogbugz-myself
How much database expertise do I need to host FogBugz myself?
FogBugz FAQ
2011-07-07T18:29:57Z
2011-07-11T20:27:20Z
<p>I'm considering running FogBugz myself, but need to know how much I need to know about SQL Server or MySQL to do so safely.</p>
http://fogbugz.stackexchange.com/questions/289/ole-db-error-incorrect-syntax-near-the-keyword-default
OLE DB Error: "Incorrect Syntax near the keyword DEFAULT"
FogBugz KB
2009-10-15T01:59:31Z
2011-06-23T15:04:48Z
<p>I'm getting the following error message:</p>
<p><strong>Error Message:</strong></p>
<p>Microsoft OLE DB Provider for SQL Server error '80040e14'<br />
Incorrect syntax near the keyword 'DEFAULT'.<br />
/fogbugz/CBug.asp, line 127</p>
<p>What's the deal?</p>