PerfectPhase wrote:When I run a T-SQL script in SQL Management Studio, is there a way to do something along the lines of a #include? I have a large list of GUIDs that I currently have to cut and paste into each .sql file, there has to be a better way!
Thanks
Stephen.
Have you thought of putting your GUIDs in a text file and performing an OpenRowSet with Joins to the database data you want to use it with?