hi,
i have the following SP
When I run
I get no results, yet the following SQL returns 1,000's!
What's the difference?
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
MIME::Lite TLS Email Encryption - Perl v0.02 beta
i have the following SP
Code:
CREATE PROCEDURE spPPP_Prospects
@@ContType nvarchar
AS
SELECT Contacts.CompanyName, Contacts.firstname,Contacts.Lastname, Contacts.ContactID
FROM Contacts
WHERE (Contacts.ContactTypeID = 'Prospect - ' + @@ContType) AND Contacts.CompanyName > ''
ORDER BY Contacts.CompanyName
GO
When I run
Code:
EXEC spPPP_Prospects 'AR'
Code:
SELECT CompanyName, FirstName, LastName, ContactID
FROM Contacts
WHERE (ContactTypeID = 'Prospect - AR') AND (CompanyName > '')
ORDER BY CompanyName
What's the difference?
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
MIME::Lite TLS Email Encryption - Perl v0.02 beta