• I actually caught the error in the script after I posted it, but specifying the database in the connection string was the problem... That would have been done through the application connection string, but I was testing from management studio and was letting it go to the default database which was master. Anyway thanks for the help, everything is working exactly like it should now.