sql-server Questions - FogBugz Knowledge Exchangemost recent 30 from http://fogbugz.stackexchange.com2012-02-09T14:24:01Zhttp://fogbugz.stackexchange.com/feeds/tag/sql-serverhttp://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://fogbugz.stackexchange.com/questions/5721/move-database-to-new-sql-server-instanceMove Database To New SQL Server InstanceRichLich2010-11-03T20:19:40Z2011-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/215/access-converting-your-access-database-to-another-formatAccess: Converting your Access Database to Another FormatFogBugz KB2009-10-13T20:12:54Z2011-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/2573/error-im002-data-source-name-not-found-and-no-default-driver-specifiedERROR [IM002] Data source name not found and no default driver specified Matthias Otto2010-03-29T20:51:25Z2011-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/289/ole-db-error-incorrect-syntax-near-the-keyword-defaultOLE DB Error: "Incorrect Syntax near the keyword DEFAULT"FogBugz KB2009-10-15T01:59:31Z2011-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>
http://fogbugz.stackexchange.com/questions/230/sql-server-importing-data-from-fogbugz-on-demand-or-trial-into-sql-serverSQL Server: Importing data from FogBugz On Demand or trial into SQL ServerFogBugz KB2009-10-13T21:24:26Z2011-06-23T14:14:04Z
<p>How do I import data from my Fogbugz On Demand trial to SQL Server 2005 and 2008?</p>
<p><strong>NB</strong>: FogBugz 7 does run on SQL Server 2000, but with limited functionality. We recommend 2005 or above.</p>
http://fogbugz.stackexchange.com/questions/674/how-do-i-switch-from-integrated-security-to-sql-server-authentication-or-backHow do I switch from Integrated Security to SQL Server authentication or back?Rich Armstrong2009-11-12T02:34:15Z2011-06-22T19:37:14Z
<p>The connection to the SQL server database is in the registry under <code>HKEY_LOCAL_MACHINE\SOFTWARE\Fog Creek Software\FogBugz\[your FogBugz install directory]\sConnectionString</code></p>
<p>How do I alter this to switch between Integrated Security, which uses the FogBugz Windows user account to connect to the database, to SQL Server authentication, in which FogBugz has its own user account in SQL Server?</p>
http://fogbugz.stackexchange.com/questions/285/error-not-associated-with-a-trusted-sql-server-connectionError: "Not associated with a trusted SQL Server connection"FogBugz KB2009-10-15T01:50:27Z2011-06-22T16:55:02Z
<p>I'm having trouble connectiong to my SQL Server database and get the following error:</p>
<p><strong>Error Message</strong></p>
<p>[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'gbadmin'. Reason: Not associated with a trusted SQL Server connection</p>
http://fogbugz.stackexchange.com/questions/258/error-cannot-insert-the-value-null-into-column-tableError: Cannot Insert the value NULL into column '', table '';FogBugz KB2009-10-15T00:20:31Z2011-06-22T16:40:20Z
<p>I'm getting the following error message:</p>
<p><img src="http://www.fogcreek.com/FogBugz/KB/images/sp%5Fdbhelp2.gif" alt="err" title="" /></p>
<p>Any help here?</p>
http://fogbugz.stackexchange.com/questions/8399/need-some-clarificationNeed some clarificationkristiaan Davies2011-06-07T14:15:08Z2011-06-08T16:01:16Z
<p>Guys,
I went to update to a newer version of FG & K 8 the other day but it told me I needed to install an SQL Server Component before I could continue.</p>
<p>Stupidly I never made a note of what that component was and I now need to start deploying it to our test / dev systems.</p>
<p>Can someone point me in the direction of the requirements for FB & K with MS SQL please? </p>
<p>The release notes don't really give any technical information...</p>
http://fogbugz.stackexchange.com/questions/236/mysql-moving-database-from-sql-server-to-mysqlMySQL: Moving database from SQL Server to MySQLFogBugz KB2009-10-13T22:02:41Z2011-04-27T17:48:40Z
<p>How can I migrate my FogBugz database from SQL Server to MySQL?</p>
http://fogbugz.stackexchange.com/questions/7396/migrating-from-access-to-ms-sql-2008Migrating from Access to MS SQL 2008Big Ant2011-03-08T23:54:45Z2011-03-09T01:05:38Z
<p>I am attempting to update our Server running FogBugz 8 from using an Access database to using a MS SQL 2008 Database. Using the migration tool provided by Microsoft I have successfully imported all the data from the Access to the SQL database. When I attempted to login which the new database I get the login screen fine, enter the user name and password. When I click login however I get the Following error:</p>
<pre><code>The INSERT statement conflicted with the CHECK constraint "SSMA_CC$FragmentCache$sValue$disallow_zero_length". The conflict occurred in database "fogbugz", table "dbo.FragmentCache", column 'sValue'.
</code></pre>
<p>The statement has been terminated.</p>
<p>The rest of the details are in this screen shot below:
<img src="http://i.imgur.com/5e9yh.png" alt="alt text"></p>
<p>Does anyone have any suggestions to fix this error?</p>
http://fogbugz.stackexchange.com/questions/188/how-do-i-move-from-running-fogbugz-on-mysql-to-sql-serverHow do I move from running FogBugz on MySQL to SQL Server?FogBugz FAQ2009-10-08T20:35:28Z2011-03-08T17:49:13Z
<p>I'm running on MySQL now, but would like to run FogBugz on SQL Server 2008. How do I convert?</p>
http://fogbugz.stackexchange.com/questions/6719/trouble-upgrading-from-sql-server-2000-to-2005-2008Trouble upgrading from SQL Server 2000 to 2005/2008.Derek2011-01-21T21:23:33Z2011-01-28T15:00:28Z
<p>Whenever trying to attach our MSSQL 2000 database in MSSQL 2005 or 2008 I get errors. I tried this over 3 years ago and was unsuccessful, and looking to replace hardware, so this is going to have to work.</p>
<p>I have attempted this many ways:
- Restore .bak into new 'blank' database.
- Attempt to attach database from .mdf/.ldf
- Using SQL integration services to import data from old server.</p>
<p>The data seems to be brought into the database, but it is unable to start the database. Sits there as (suspect).</p>
<p>I understand databases quite well, and am a Microsoft SQL Server DBA for many clients. This one is above me for some reason.</p>
<p>Restore failed for Server 'DB1-2003'. (Microsoft.SqlServer.SmoExtended)</p>
<p>System.Data.SqlClient.SqlError: RESTORE could not start database 'FB'. (Microsoft.SqlServer.Smo)</p>
http://fogbugz.stackexchange.com/questions/1211/migrating-from-sql-server-2000-to-2008Migrating from SQL Server 2000 to 2008Rick Schummer2009-12-28T18:18:21Z2011-01-11T16:59:45Z
<p>Are there any special instructions to migrate a FogBugz database from SQL Server 2000 to 2008. Any pitfalls to watch for? </p>
<p>What we thought we would do is create the 2008 instance on the same box as 2000 (this is a Server 2003 machine). Detach the database in 2000 and move it to the 2008 instance. Someone mentioned problems with the 2000 compatibility mode for databases in general though. Should we create a new database in SQL Server 2008 and import the data?</p>
<p>Once the data is moved, what do we have to do for FogBugz to find the new database server and database?</p>
<p>Looking for recommendations to make this transition go as smooth as possible.</p>
<p>Rick Schummer</p>
http://fogbugz.stackexchange.com/questions/303/error-directory-name-is-invalidError: Directory name is invalidFogBugz KB2009-10-15T02:39:57Z2010-12-28T01:33:01Z
<p>I'm getting the folling error message, what gives?</p>
<p><strong>Error Message</strong></p>
<p>"The directory name is invalid. SQL: exec sp_fulltext_catalog 'FogBUGZCatalog', 'create' Params:" </p>
http://fogbugz.stackexchange.com/questions/1550/how-do-i-shrink-large-sql-server-transaction-logsHow do I shrink large SQL Server transaction logs?FogBugz FAQ2010-01-21T16:52:01Z2010-11-16T16:35:12Z
<p>It's possible with some configurations of SQL server for the transaction logs to grow very large. This has even at times threatened disk space on some of our customers' servers! How do I use DBCC SHRINKFILE to shrink these logs down?</p>
http://fogbugz.stackexchange.com/questions/242/access-upsizing-wizard-bewareAccess Upsizing Wizard: BewareFogBugz KB2009-10-13T22:22:33Z2010-11-10T21:30:56Z
<p>Are there any issues with the Access Upsizing Wizard (moving a FogBugz database from Access to SQL server).</p>
http://fogbugz.stackexchange.com/questions/5797/moving-server-cant-set-db-ownerMoving server. Can't set DB ownerSerge - appTranslator2010-11-09T09:13:08Z2010-11-09T14:34:40Z
<p>Hi,</p>
<p>I just moved my FB (software + website + SqlServer 2008 R2 express DB) to a new server.</p>
<p>I followed the steps explained in <a href="http://fogbugz.stackexchange.com/questions/344" rel="nofollow">this question</a> except that I used SSMS and did a backup/restore rather than detach/attach.
The problem is that when I restore the DB, SSMS doesn't allow me to specify the owner of the DB. Therefore the DB is created with sa as owner and the FogBugz Windows user can't connect to it.
I temporarily solved it by specifying sa in the connection string (registry) but I'd like to fix that ownership (or permissions) issue.</p>
<p>Can anyone help (please assume I'm a newbie regarding SqlServer administration and security)</p>
<p>TIA,</p>
http://fogbugz.stackexchange.com/questions/5616/sql-server-requirementsSQL Server requirementsJay2010-10-28T19:30:08Z2010-10-28T22:46:12Z
<p>Is there a SQL Server version requirement change in FogBugz 8? We went to install the upgrade today and it looks like this is the case. Is there a way to keep SQL Server 2000 and install FB8?</p>
http://fogbugz.stackexchange.com/questions/5400/how-can-i-extract-numbers-like-open-tickets-per-project-or-new-tickets-per-dayHow can I extract numbers like "open tickets per project" or "new tickets per day"?Dirk Paessler2010-10-16T14:27:31Z2010-10-16T15:11:37Z
<p>In our MIS and Intranet I would like to display the following information:</p>
<ul>
<li>Currently unsolved Tickets in Project X</li>
<li>Number of tickets newly created today in Project Y</li>
<li>Number of tickets solved today in Project Z</li>
</ul>
<p>How can I get this information programmatically?</p>
<p>A HTTP request (against the fogbugz server) or an SQL query run on fogbugz MS SQL server would be preferred.</p>
http://fogbugz.stackexchange.com/questions/3925/is-it-possible-to-merge-two-existing-fogbugz-databasesIs it possible to merge two existing FogBugz databasesPaul2010-08-09T00:33:02Z2010-08-10T13:35:19Z
<p>Is it possible to merge two existing FogBugz databases ?
The first one is in MSAccess format and the one that we want to merge into is SQL Server.
My first thoughts were that there would likely be conflicts in the keys between one db and the other if I tried to do it manually once I had upgraded the first instance to SQL.
I don't suppose there is some sort of wizard that will merge two instances ??</p>
http://fogbugz.stackexchange.com/questions/3451/import-project-listImport project listBilly Moon2010-06-24T15:43:27Z2010-08-05T19:22:13Z
<p>I have a list of Projects and Areas from another application that I'd ideally like to just import into the FogBugz SQL db rather than having someone rekey. As an initial step, I just created a new record in Project on the SQL side - it does show up in the list for new cases, but doesn't show up in the project list in admin so obviously I am missing something. To what other tables beyond Project and Area would I need to add stuff for FogBugz to recognize an imported record as a valid Project?</p>
http://fogbugz.stackexchange.com/questions/3250/can-i-run-sql-server-2000-standard-and-sql-server-2008-r2-express-side-by-sideCan I run SQL Server 2000 Standard and SQL Server 2008 R2 Express side-by-side?jwfearn2010-06-04T20:17:09Z2010-07-08T15:45:11Z
<p>I'm running Microsoft Windows Server 2003 SP2 for Small Business Sever Premium Edition, which includes Microsoft SQL Server 2000 (Standard Edition, I believe). Since current versions of FogBugz require SQL Server 2005 or above, I'm considering moving to the free SQL Server 2008 R2 Express Edition.</p>
<p><a href="http://fogbugz.stackexchange.com/questions/1211/migrating-from-sql-server-2000-to-2008" rel="nofollow">Some</a> <a href="http://fogbugz.stackexchange.com/questions/234/installing-sql-server-express" rel="nofollow">other</a> <a href="http://fogbugz.stackexchange.com/questions/3106/which-version-of-sql-server-2008" rel="nofollow">questions</a> have partially addressed this but I'm wondering about some details.</p>
<p>Assuming my FogBugz database is smaller than the maximum size supported SQL Server 2008 R2 Express Edition, what steps should I follow to both <strong>install</strong> 2008 and <strong>migrate</strong> my data to it?</p>
<p>In particular, can I install 2008 R2 Express side-by-side with my existing 2000 installation? Do I need to worry about the 2008 installer trying to upgrade the 2000 installation since <a href="http://msdn.microsoft.com/en-us/library/ms143393%28v=SQL.100%29.aspx" rel="nofollow">according to Microsoft</a>, there is no supported upgrade path from Standard (paid) to Express (free)?</p>
<p>Assuming I can install 2000 and 2008 Express side-by-side, I assume I can migrate by following <a href="http://fogbugz.stackexchange.com/questions/1211/migrating-from-sql-server-2000-to-2008" rel="nofollow">these steps</a>. After I verify that the migration worked, can/should I remove the 2000 installation (I was only using it to run FogBugz)?</p>
http://fogbugz.stackexchange.com/questions/3106/which-version-of-sql-server-2008Which version of SQL Server 2008?wweicker2010-05-18T22:45:35Z2010-05-21T15:48:18Z
<p>Which version of SQL Server 2008 should we upgrade to? </p>
<p>We are upgrading from SQL Server 2000 on Windows Server 2003. Our database is currently around 4gb with 16 users. We also run Vault on this same server in the same SQL Server instance with 10 users.</p>
<p>My understanding is Express Edition has a size limitation, so I'm wondering whether FogBugz cares about any functional differences between Workgroup / Web / Developer / Standard / Enterprise editions, or does it even matter for our size and volume?</p>
http://fogbugz.stackexchange.com/questions/234/installing-sql-server-expressInstalling SQL Server ExpressFogBugz KB2009-10-13T21:52:07Z2010-04-06T17:19:51Z
<p>How do I install and configure SQL Server Express for use with FogBugz?</p>
http://fogbugz.stackexchange.com/questions/274/error-unable-to-grant-login-permission-using-sp-grantloginError: Unable to Grant Login Permission (using sp_grantlogin)FogBugz KB2009-10-15T01:23:46Z2009-10-15T01:25:54Z
<p><strong>Error Message:</strong></p>
FogBugz Setup was unable to grant login permission to use the Windows
account <em>SERVERNAME</em>\Fogbugz (using sp_grantlogin). Message: Windows NT user
or group '<em>SERVERNAME</em>\Fogbugz' not found. Check the name again.</p>