Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)

  • RE: Calling UDF from constraint

    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

    (

    ...

  • RE: Calling UDF from constraint

    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...

  • RE: Calling UDF from constraint

    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...

  • RE: Calling UDF from constraint

    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...

  • RE: Starting and stopping traces through SQL jobs

    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...

Viewing 5 posts - 1 through 5 (of 5 total)