This is a multi-part message in MIME format.
------=_NextPart_000_01BC9DB8.A2EF5B30
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
I have the following Stored procedure:
-------------------------------------------
select something
from sometable
GO
----------------------------------------------
In SQL server Query tool I type the following: GetBbairs '"58245","25698"'
(I put the whole thing in apostrophes to send it as one string)
The query returns no rows however the print statement at the bottom of the
procedure returns:
"58245","25698"
Which is exactly what it should be.
The numbers are valid and they are characters. I don't understand why SQL
the WHERE clause. It seems to be reading it fine on the PRINT statement.
I do not see what I'm doing wrong and would appreciate any help.
Thanks in advance.
--
Tito Burgos
email me.
Bank of Tokyo - Mitsubishi Information Systems Group
------=_NextPart_000_01BC9DB8.A2EF5B30
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<html><head></head><BODY bgcolor=3D"#FFFFFF"><p><font size=3D2 =
color=3D"#000000" face=3D"Arial">I have the following Stored =
procedure:<br>-------------------------------------------<br>CREATE =
In SQL server Query tool I type the following: GetBbairs =
'"58245","25698"' (I put the whole thing in =
apostrophes to send it as one string)<br>The query returns no rows =
however the print statement at the bottom of the procedure =
returns:<br>"58245","25698"<br>Which is exactly what =
it should be. <br>The numbers are valid and they are characters. =
I don't understand why SQL Server is not finding them or how is it =
reading it fine on the PRINT statement.<br><br>I do not see what I'm =
doing wrong and would appreciate any help. <br><br>Thanks in advance. =
<br>-- <br>Tito Burgos<br><font =
color=3D"#000000"> - Please remove .nospam before attempting to =
email me.<br>Bank of Tokyo - Mitsubishi Information Systems Group</p>
</font></font></font></body></html>
------=_NextPart_000_01BC9DB8.A2EF5B30--