SQL Compare 6 - sysname as column datatype
Yuri
Posts: 6
When I compare databases and source database contains a new table with column of type "sysname" - generated sql to create table uses [dbo].[sysname] as datatype, which causes an error in script, as sysname apparently does not belong to [dbo] schema.
SQL Compare 6.2.0.271
SQL Compare 6.2.0.271
Comments
Red-Gate support
www.teeso.com
The Essential Electronic School Office
CREATE TABLE tab (id sysname, sid [sys].[sysname])
it comes out as:
CREATE TABLE [dbo].[tab]
(
[id] [sys].[sysname] NOT NULL,
[sid] [sys].[sysname] NOT NULL
) ON [PRIMARY]
GO
So I'm not sure where your tables are getting the [dbo] from. If you could send me (michelle.taylor@red-gate.com) the script you used to create the problem table or a backup of the database with the problem table, I might be able to find out what's actually being reported by SQL Server about this table / what syntax it is that we don't understand properly.
Redgate Software
www.teeso.com
The Essential Electronic School Office
Redgate Software
Redgate Software