Home All Groups Group Topic Archive Search About

Interesting but apparently harmless bug in QA when using [TAB]

Author
27 Aug 2005 11:20 PM
malcolm
Bug in Query Analyzer appears after installing SP4 (and maybe earlier SP's
but I haven't checked).

Create a sproc in the QA but, instead of a space between CREATE and
PROCEDURE, use a [TAB].

In the Sproc add a CREATE TABLE statement - two or 3 fields will do it.

Save the Sproc

When you open the sproc for editing the the QA, any CREATE becomes ALTER.

Again, Tech Support in India has verified this behavior.

However, when you open the sproc in the EM, it looks OK.

So maybe harmless.
--
malcolm

Author
28 Aug 2005 1:30 PM
John Bell
Hi

I didn't get the behaviour you described!!! What do you mean by
"When you open the sproc for editing the the QA, any CREATE becomes ALTER."?

With:

CREATE    PROCEDURE MyTab AS
BEGIN
CREATE    TABLE #Tmptbl ( id int, col1 char(10), col2 char(1) )
INSERT INTO #Tmptbl ( id , col1, col2 )
SELECT 1, 'A', 'B'

SELECT * FROM #Tmptbl
END

and using the object browser to "Script New Window as ALTER" I get CREATE
PROCEDURE!

John

Show quote
"malcolm" <ramarto***@access312.com> wrote in message
news:7CE6F0C0-295A-4C34-A9EB-F7C01D397989@microsoft.com...
> Bug in Query Analyzer appears after installing SP4 (and maybe earlier SP's
> but I haven't checked).
>
> Create a sproc in the QA but, instead of a space between CREATE and
> PROCEDURE, use a [TAB].
>
> In the Sproc add a CREATE TABLE statement - two or 3 fields will do it.
>
> Save the Sproc
>
> When you open the sproc for editing the the QA, any CREATE becomes ALTER.
>
> Again, Tech Support in India has verified this behavior.
>
> However, when you open the sproc in the EM, it looks OK.
>
> So maybe harmless.
> --
> malcolm
Author
28 Aug 2005 9:19 PM
Mary Chipman [MSFT]
I think he may be talking about the Access UI. I seem to remember that
behavior.

--Mary

On Sun, 28 Aug 2005 14:30:20 +0100, "John Bell"
<jbellnewspo***@hotmail.com> wrote:

Show quote
>Hi
>
>I didn't get the behaviour you described!!! What do you mean by
>"When you open the sproc for editing the the QA, any CREATE becomes ALTER."?
>
>With:
>
>CREATE    PROCEDURE MyTab AS
>BEGIN
> CREATE    TABLE #Tmptbl ( id int, col1 char(10), col2 char(1) )
> INSERT INTO #Tmptbl ( id , col1, col2 )
> SELECT 1, 'A', 'B'
>
> SELECT * FROM #Tmptbl
>END
>
>and using the object browser to "Script New Window as ALTER" I get CREATE
>PROCEDURE!
>
>John
>
>"malcolm" <ramarto***@access312.com> wrote in message
>news:7CE6F0C0-295A-4C34-A9EB-F7C01D397989@microsoft.com...
>> Bug in Query Analyzer appears after installing SP4 (and maybe earlier SP's
>> but I haven't checked).
>>
>> Create a sproc in the QA but, instead of a space between CREATE and
>> PROCEDURE, use a [TAB].
>>
>> In the Sproc add a CREATE TABLE statement - two or 3 fields will do it.
>>
>> Save the Sproc
>>
>> When you open the sproc for editing the the QA, any CREATE becomes ALTER.
>>
>> Again, Tech Support in India has verified this behavior.
>>
>> However, when you open the sproc in the EM, it looks OK.
>>
>> So maybe harmless.
>> --
>> malcolm
>
Author
29 Aug 2005 6:26 PM
MGFoster
That is correct.  An Access .adp file:  when a stored procedure is
opened for editing, the CREATE PROCEDURE is changed to ALTER PROCEDURE.
  Not a but, just Access.
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

Mary Chipman [MSFT] wrote:
Show quote
> I think he may be talking about the Access UI. I seem to remember that
> behavior.
>
> --Mary
>
> On Sun, 28 Aug 2005 14:30:20 +0100, "John Bell"
> <jbellnewspo***@hotmail.com> wrote:
>
>
>>Hi
>>
>>I didn't get the behaviour you described!!! What do you mean by
>>"When you open the sproc for editing the the QA, any CREATE becomes ALTER."?
>>
>>With:
>>
>>CREATE    PROCEDURE MyTab AS
>>BEGIN
>>CREATE    TABLE #Tmptbl ( id int, col1 char(10), col2 char(1) )
>>INSERT INTO #Tmptbl ( id , col1, col2 )
>>SELECT 1, 'A', 'B'
>>
>>SELECT * FROM #Tmptbl
>>END
>>
>>and using the object browser to "Script New Window as ALTER" I get CREATE
>>PROCEDURE!
>>
>>John
>>
>>"malcolm" <ramarto***@access312.com> wrote in message
>>news:7CE6F0C0-295A-4C34-A9EB-F7C01D397989@microsoft.com...
>>
>>>Bug in Query Analyzer appears after installing SP4 (and maybe earlier SP's
>>>but I haven't checked).
>>>
>>>Create a sproc in the QA but, instead of a space between CREATE and
>>>PROCEDURE, use a [TAB].
>>>
>>>In the Sproc add a CREATE TABLE statement - two or 3 fields will do it.
>>>
>>>Save the Sproc
>>>
>>>When you open the sproc for editing the the QA, any CREATE becomes ALTER.
>>>
>>>Again, Tech Support in India has verified this behavior.
>>>
>>>However, when you open the sproc in the EM, it looks OK.
>>>
>>>So maybe harmless.
>>>--
>>>malcolm
>>

AddThis Social Bookmark Button