Excel problem with trailing spaces

G

Guest

According to ANSI92 string comparison, 'abc'='abc '. I have an Excel pivot
table which calls a MS SQL stored procedure. In the results, a column field
containing 'abc' and 'abc ' reveals 'abc'<>'abc ', and totals data in two
separate columns. If I call the same procedure and produce a data table, the
automatic data filter reflects 'abc'='abc ' and returns all rows. Query
results in Enterprise Manager and Query Analyzer also show 'abc'='abc ' in
grouping statements. This pivot table (mis)behaviour has only started
recently, and I see no user interface to affect a change, nor can I pinpoint
what caused the change.
Thanks in advance
FStumpp
 
A

arno

Hi Fred,
calls a MS SQL stored procedure.

IMHO:
Why do you not solve the problem here? Use trim or rtrim to create data
without trailing spaces. Then you do not have to worry about all the
following applications if they correctly apply standards or not.

regards

arno
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top