Viewing 5 posts - 1 through 5 (of 5 total)
I tried that, still isn't working:
IF EXISTS (SELECT * FROM dbo.SysObjects WHERE Name = 'UDFDemo' AND XType = 'U' AND USER_NAME(uid) = 'dbo')
DROP TABLE dbo.UDFDemo
GO
CREATE TABLE dbo.UDFDemo
(
...
June 15, 2007 at 11:23 am
Thanks for all your help SSC, but unfortunately the solution you posted is missing one criteria inside the UDF. I am not comparing values soley, but also making sure...
June 15, 2007 at 11:00 am
Those are both possible solutions, but does anyone know why using a CHECK constraint that calls a UDF wouldn't work? Perhaps I am calling it incorrectly or something else is...
June 15, 2007 at 8:02 am
Good point, but, the UDF is more complicated than my example. It needs to only kick out dups if the order meets a certain criteria.
For example, my...
June 14, 2007 at 2:32 pm
You can use the built in SP sp_trace_create in a stored procedure to create a trace specifying a stop time. Check it out and others in BOL. There...
June 14, 2007 at 2:24 pm
Viewing 5 posts - 1 through 5 (of 5 total)