How can we help you today? How can we help you today?
Oleg
Hi Dan, oh, it seems will be very useful product. Btw, are you going to send some gifts for beta testers? Regards, Oleg. / comments
Hi Dan, oh, it seems will be very useful product. Btw, are you going to send some gifts for beta testers? Regards, Oleg.
0 votes
Hi Andras, I'd like to add: SQL compare 5 is working good in my case but SQLCompare 6 is not. Are useful catched queries? Regards, Oleg. / comments
Hi Andras, I'd like to add: SQL compare 5 is working good in my case but SQLCompare 6 is not. Are useful catched queries? Regards, Oleg.
0 votes
Hi Andras, here are 2 statements 1 -- last for win auth. SELECT so.name AS TableName, sys.schemas.name AS TableOwner, cc.name AS ConstraintName, cc.object_id AS Constraint_id, cc.is_not_for_replication AS NotForReplication, cc.is_not_trusted AS WithNoCheck, cc.is_disabled AS Disabled, sc.name AS ColumnName, cc.parent_column_id AS colid, cc.definition AS Text FROM sys.check_constraints cc WITH (NOLOCK) INNER JOIN sys.objects so WITH (NOLOCK) ON so.object_id=cc.parent_object_id LEFT JOIN sys.schemas WITH (NOLOCK) ON sys.schemas.schema_id=so.schema_id LEFT JOIN sys.columns sc ON sc.column_id=cc.parent_column_id AND sc.object_id=cc.parent_object_id ORDER BY so.name, cc.name 2 -- last for sql auth user sa SELECT object_id AS id, definition AS text, 1 AS colid, 1 AS number, CONVERT(bit, 0) AS Encrypted, CONVERT(bit, OBJECTPROPERTY(object_id, N'IsDefaultCnst')) AS IsDefault, CONVERT(bit, ISNULL(OBJECTPROPERTY(object_id, N'ExecIsQuotedIdentOn'),0)) AS QuotedIdentifier, NULL AS ctext FROM sys.sql_modules WITH (NOLOCK) WHERE (OBJECTPROPERTY(object_id, N'IsProcedure')<>0 OR OBJECTPROPERTY(object_id, N'IsView')<>0 OR OBJECTPROPERTY(object_id, N'IsTrigger')<>0 OR OBJECTPROPERTY(object_id, N'IsInlineFunction')<>0 OR OBJECTPROPERTY(object_id, N'IsScalarFunction')<>0 OR OBJECTPROPERTY(object_id, N'IsTableFunction')<>0 OR OBJECTPROPERTY(object_id, N'IsDefaultCnst')<>0 OR object_id IN (SELECT object_id FROM sys.triggers WHERE parent_class=0) ) UNION ALL SELECT object_id AS id, definition AS text, parent_column_id AS colid, 0 AS number, CAST(0 as bit) AS Encrypted, CAST(1 as bit) AS IsDefault, CONVERT(bit, ISNULL(OBJECTPROPERTY(object_id, N'ExecIsQuotedIdentOn'),0)) AS QuotedIdentifier, NULL AS ctext FROM sys.default_constraints WITH (NOLOCK) UNION ALL SELECT object_id AS id, definition AS text, CAST(1 as int) AS colid, procedure_number AS number, CAST(0 as bit) AS Encrypted, CAST(0 as bit) AS IsDefault, CONVERT(bit, ISNULL(OBJECTPROPERTY(object_id, N'ExecIsQuotedIdentOn'),0)) AS QuotedIdentifier, NULL AS ctext FROM sys.numbered_procedures WITH (NOLOCK) ORDER BY id, colid, number / comments
Hi Andras, here are 2 statements 1 -- last for win auth. SELECT so.name AS TableName, sys.schemas.name AS TableOwner, cc.name AS ConstraintName, cc.object_id AS Constraint_id, cc.is_not_for_replic...
0 votes
Ok, Johnatan. I'd like to add only: The this SQL Compare behavoiur is different for Windows authentication and SQL authentication. / comments
Ok, Johnatan. I'd like to add only: The this SQL Compare behavoiur is different for Windows authentication and SQL authentication.
0 votes
On Another machine: SQL Compare aborting, Registering databases SQL-SRV1.db87-Reading constraints, Unable to cast object of type 'System.DBNull' to type 'System.String' / comments
On Another machine: SQL Compare aborting, Registering databases SQL-SRV1.db87-Reading constraints, Unable to cast object of type 'System.DBNull' to type 'System.String'
0 votes