I have always just used a bat file and called the SQL Attach function to attach an existing db to the users sql instance.