Like I said, I am not aware of any user defined global variables in SQL 2k. But I suggest a solution. Say, you have a table with two columns, VarName, VarValue that acts as a list of name-value pair. You could write User defined functions that read-write data for each name-value. Here is an example. VarName VarName ------------------- City London Country UK Then you could write UDFs like GetCity(), SetCity(), GetCountry(), SetCountry() etc Farhan Noor Qureshi if (this == this) thow this; -- modified at 13:46 Tuesday 29th November, 2005