Armand Niculescu

Armand is a 32 year old designer and programmer employed with Media Division. He has 15 years experience with programming, specializing in scripting languages such as Actionscript, Javascript and PHP. He also does design and photography.

One response to “Searching in all tables and columns of a database”

  1. James

    The script works fine provided you don’t need to search through ‘text or ‘ntext’ columns. I’ve tried adding these data types to line

    AND DATA_TYPE IN (’char’, ‘varchar’, ‘nchar’, ‘nvarchar’, ‘ntext’, ‘text’)
    but this just throuws the following error:
    Msg 8116, Level 16, State 1, Line 1
    Argument data type ntext is invalid for argument 1 of left function.

    Can anyone please help?