# bug: procedure

**URL:** <https://forums.toadworld.com/t/bug-procedure/34565>\
**Category:** Toad for SQL Server\
**Created:** [November 24, 2015, 12:09am UTC](https://forums.toadworld.com/t/bug-procedure/34565 "2015-11-24T00:09:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![weiwsy](https://avatars.discourse-cdn.com/v4/letter/w/cab0a1/32.png) [@weiwsy](https://forums.toadworld.com/u/weiwsy)\
**Post date:** [November 24, 2015, 12:09am UTC](https://forums.toadworld.com/t/bug-procedure/34565/1 "2015-11-24T00:09:34Z")

</div>

Bug report:

Create a stored procedure using the toad execution statement, if the last parameter has an empty string default and a multi line comment command is created, the default value and comment will be lost.

For example:

step1： Execute the following statement in toad,

create PROCEDURE [dbo].[proc\_errortest]  
@xx varchar(1)=’’ /_the default value will be lost, and the comment will be lost_/  
AS  
select 1

step2：review the definition of the procedure proc\_errortest， the result is：

create PROCEDURE [dbo].[proc\_errortest]  
@xx varchar(1)  
AS  
select 1  
GO

---

<div class="post-metadata">

**Author:** ![s.bertolotti](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@s.bertolotti](https://forums.toadworld.com/u/s.bertolotti)\
**Post date:** [November 24, 2015, 12:46pm UTC](https://forums.toadworld.com/t/bug-procedure/34565/2 "2015-11-24T12:46:13Z")

</div>

Hi weiwsy,

I try to execute your execution statement in the last beta of TOAD SS 6.7.0.37 and the problem/bug is present too.

Best regards,

Sergio

---

<div class="post-metadata">

**Author:** ![weiwsy](https://avatars.discourse-cdn.com/v4/letter/w/cab0a1/32.png) [@weiwsy](https://forums.toadworld.com/u/weiwsy)\
**Post date:** [November 27, 2015, 12:10am UTC](https://forums.toadworld.com/t/bug-procedure/34565/3 "2015-11-27T00:10:25Z")

</div>

When will fix this bug？

---

<div class="post-metadata">

**Author:** ![weiwsy](https://avatars.discourse-cdn.com/v4/letter/w/cab0a1/32.png) [@weiwsy](https://forums.toadworld.com/u/weiwsy)\
**Post date:** [November 27, 2015, 12:15am UTC](https://forums.toadworld.com/t/bug-procedure/34565/4 "2015-11-27T00:15:21Z")

</div>

Hi, Sergio

Thank you for your reply, are you the official staff?

do you know when an official can do to fix this problem

---

<div class="post-metadata">

**Author:** ![s.bertolotti](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@s.bertolotti](https://forums.toadworld.com/u/s.bertolotti)\
**Post date:** [November 27, 2015, 11:56am UTC](https://forums.toadworld.com/t/bug-procedure/34565/5 "2015-11-27T11:56:57Z")

</div>

Hi Weiwsy,

nothing. I’m not member of the official staff.

I don’t know if and when toad’s developers think to solved the problem.

Kelly or Cathy, can you reply to Weiwsy about this problem ?

Best regards,

Sergio

---

<div class="post-metadata">

**Author:** ![Kelly.Chen](https://avatars.discourse-cdn.com/v4/letter/k/dfb087/32.png) [@Kelly.Chen](https://forums.toadworld.com/u/Kelly.Chen)\
**Post date:** [November 29, 2015, 11:24pm UTC](https://forums.toadworld.com/t/bug-procedure/34565/6 "2015-11-29T23:24:41Z")

</div>

Hi,

I put this issue in our fixed plan(TSS-1222). We will try to fix soon.

Kelly
