how to check whether there is formula defined for the field

  • as above

  • "formula" is not a SQL Server term.

    Do you possibly mean a user-defined Function?

    [font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
    Proactive Performance Solutions, Inc.
    [/font]
    [font="Verdana"] "Performance is our middle name."[/font]

  • The answer is "Yes"

  • Jack Corbett (12/18/2008)


    The answer is "Yes"

    I thought it was 42.

    Tramp, can you state your question a little more clearly please? The question title gets cut off.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Not cool to make fun of a new poster who doesn't speak good english >>>

    USE tempdb

    GO

    CREATE TABLE dbo.Demo

    (

    id int NOT NULL IDENTITY(1,1)

    , x AS id * 2

    )

    GO

    INSERT INTO dbo.Demo DEFAULT VALUES

    INSERT INTO dbo.Demo DEFAULT VALUES

    INSERT INTO dbo.Demo DEFAULT VALUES

    INSERT INTO dbo.Demo DEFAULT VALUES

    INSERT INTO dbo.Demo DEFAULT VALUES

    GO

    SELECT * FROM dbo.Demo

    GO

    EXEC sp_help 'dbo.Demo'

    /*

    idintno410 0 no(n/a)(n/a)NULL

    xintyes410 0 yes(n/a)(n/a)NULL

    The yes means it's a computed column (formula)

    */

    GO

    DROP TABLE dbo.Demo

  • It's also not cool to post questions without enough meat or content to make them very meaningful. Your interpretation of what might be being asked her is very different than what I interpreted it to be. I was thinking along the lines of rbarryyoung and that it is referring to a function perhaps. If someone is going to ask a question and expect to get some kind of valid help, they should at least put the effort into writing a complete post of what they need to know.

    Jonathan Kehayias | Principal Consultant | MCM: SQL Server 2008
    My Blog | Twitter | MVP Profile
    Training | Consulting | Become a SQLskills Insider
    Troubleshooting SQL Server: A Guide for Accidental DBAs[/url]

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

You must be logged in to reply to this topic. Login to reply