I’m calling a function TextSubSetValue ( "", svValue, TRUE ); Where svValue is the location of a data folder for SQL Server 2005.I wanted to use Text Replacement tab in Sql Scripts to update occurrences of the key DatabaseDataDir in my sql add script...