dbTalk Databases Forums  

Bug in Query Analyzer

microsoft.public.sqlserver.tools microsoft.public.sqlserver.tools


Discuss Bug in Query Analyzer in the microsoft.public.sqlserver.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Razvan Socol
 
Posts: n/a

Default Bug in Query Analyzer - 06-09-2004 , 04:41 AM






Execute this in Query Analyzer:

SELECT CONVERT(varchar(8),0x0131) as A, 'X' as B

You will get the expected results if you choose "Results in text", but
if you choose "Results in grid" you will get nothing in column A and
'1' in column B.

Is there anyone at MS reading this ?
Is there any other place I should report this bug ?

Razvan Socol

Reply With Quote
  #2  
Old   
Rand Boyd [MSFT]
 
Posts: n/a

Default RE: Bug in Query Analyzer - 06-09-2004 , 02:05 PM






I can report this as a bug. It does appear taht the grid does not return
the correct information, or atleast does not interpret it correctly.

Rand
This posting is provided "as is" with no warranties and confers no rights.


Reply With Quote
  #3  
Old   
Russell Fields
 
Posts: n/a

Default Re: Bug in Query Analyzer - 06-09-2004 , 03:52 PM



This inserts two characters into A: 0x01 and 0x31. 0x31 is, of course, an
ASCII '1'.

Now you know that 0x01 is the character that QA uses to separate columns
into the grid.

So, the grid has two columns defined by the select, but when populating the
columns QA sees three columns of data: NULL, '1', and 'X'. This causes the
final column of data not to have a home.

So, is this a bug? If Microsoft is willing to think so, that is great, but
I would consider this a behavior instead of a bug.

Russell Fields


"Razvan Socol" <rsocol (AT) fx (DOT) ro> wrote

Quote:
Execute this in Query Analyzer:

SELECT CONVERT(varchar(8),0x0131) as A, 'X' as B

You will get the expected results if you choose "Results in text", but
if you choose "Results in grid" you will get nothing in column A and
'1' in column B.

Is there anyone at MS reading this ?
Is there any other place I should report this bug ?

Razvan Socol



Reply With Quote
  #4  
Old   
Razvan Socol
 
Posts: n/a

Default Re: Bug in Query Analyzer - 06-10-2004 , 12:27 AM



I definitely think that it's a bug. I specifically simplified the
query to this form (the situation I encountered was more complex). I
understood all that you explained before I posted, but it's good that
you did explain it, so that other readers understand.

Razvan

"Russell Fields" <RussellFields (AT) NoMailPlease (DOT) Com> wrote:
Quote:
This inserts two characters into A: 0x01 and 0x31. 0x31 is, of course, an
ASCII '1'.

Now you know that 0x01 is the character that QA uses to separate columns
into the grid.

So, the grid has two columns defined by the select, but when populating the
columns QA sees three columns of data: NULL, '1', and 'X'. This causes the
final column of data not to have a home.

So, is this a bug? If Microsoft is willing to think so, that is great, but
I would consider this a behavior instead of a bug.

Russell Fields

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.