When I execute database script, I got errors in stored procedure then it couldn\'t create that stored procedure that have errors. I want to forcibly create stored procedure
You can force the creation of a stored procedure by creating it in a can't-fail way. See this example:
if object_id('sp_name') is null
exec sp_executesql N'create procedure dbo.sp_name as select 1'
go
alter procedure db.sp_name
as
...
go
Now if the alter fails, there will be a stored procedure anyway.