I must be missing something in SQL Server 2005. I want the attached script to do nothing more than create the stored procedure that I will, in turn, later execute. How do I get it so that when it runs it just creates the stored procedure and does not try to run it? I am missing some basic navigational skills in this new version. So my question is, using SQL Server 2005, how do I structure a script to create a stored procedure? I do not want it to run the commands in the script I just want it to create the script. If you could also comment the proper structure when it comes to checking for the existence of the script that would be helpful. I just want to be able to provide scripts that will either create or alter existing SQL scripts.