Error migrating from SQL Source Control to SQL Server 2000
ciaranarcher
Posts: 28
I created a migration, committed it and when trying to run it against a SQL Server 2000 database, I get the following error:
Specifically it seems to be an issue with the extended props:
This can be made work by using ::fn_listextendedproperty instead (note colons).
Is this a bug or something I'm doing wrong?
The following error message was returned from the SQL Server: [208] Invalid object name 'fn_listextendedproperty'.
Specifically it seems to be an issue with the extended props:
The following SQL command caused the error: INSERT INTO dbo.tmp_ciaran_XMLRequests ( LengthBytes , RequestedOn , AnotherCol ) VALUES ( 0 , -- LengthBytes - int '2012-06-22 14:58:03' , -- RequestedOn - datetime N'' -- AnotherCol - nchar(10) ) /* End of custom script trunk 8 to 10 migrating from version 8 to version 10 */ /* Start of RedGate SQL Source Control versioning database-level extended properties. */ DECLARE @RG_SC_VERSION BIGINT SET @RG_SC_VERSION = 10 IF EXISTS (SELECT 1 FROM fn_listextendedproperty(N'SQLSourceControl Database Revision', NULL, NULL, NULL, NULL, NULL, NULL)) EXEC sp_dropextendedproperty N'SQLSourceControl Database Revision', NULL, NULL, NULL, NULL, NULL, NULL EXEC sp_addextendedproperty N'SQLSourceControl Database Revision', @RG_SC_VERSION, NULL, NULL, NULL, NULL, NULL, NULL
This can be made work by using ::fn_listextendedproperty instead (note colons).
Is this a bug or something I'm doing wrong?
Comments
Red Gate Technical Support Engineer
I thought SQL Source Control uses uses SQL Compare Pro to generate the migration script, and doesn't that support SQL Server 2000?
Red Gate Technical Support Engineer
When you say SQL Compare doesn't support SQL Server 2000 'anymore', can you tell me since when/version?
The reason I ask is that your website still says it does support SQL Server 2000: http://www.red-gate.com/supportcenter/c ... ng_Started
Thanks,
Ciaran
Really what that means is that we've stopped testing SQL Compare with SQL Server 2000 - SQL Compare 10 still works, as far as I'm aware, with SQL Server 2000, but there may be SQL 2000-specific bugs, and since we don't test against it, those could make it into release.
If you want to use SQL Compare with SQL 2000 databases, version 10 will probably work, and if it doesn't version 9.5 is available for download here: http://www.red-gate.com/supportcenter/G ... d_versions
Hope that helps!
Red Gate Technical Support Engineer