Posted by David Portas on 01/17/07 00:34
markjerz@googlemail.com wrote:
> That's not even slightly viable. I have well over a hundred tables
> using that rule with a lot of data in them.
Rules are not viable at all in my opinion. This is perhaps one reason
why they are deprecated in favour of constraints:
"CREATE RULE will be removed in a future version of Microsoft SQL
Server. Avoid using CREATE RULE in new development work, and plan to
modify applications that currently use it. We recommend that you use
check constraints instead. Check constraints are created by using the
CHECK keyword of CREATE TABLE or ALTER TABLE. For more information, see
CHECK Constraints."
> I've read something about
> updating syscomments table??? Not sure of the exact procedure though so
> any help would be good.
>
There is no exact procedure. Updating system tables is dangerous,
unreliable and unsupported. Don't go there.
--
David Portas, SQL Server MVP
Whenever possible please post enough code to reproduce your problem.
Including CREATE TABLE and INSERT statements usually helps.
State what version of SQL Server you are using and specify the content
of any error messages.
SQL Server Books Online:
http://msdn2.microsoft.com/library/ms130214(en-US,SQL.90).aspx
--
[Back to original message]
|