Viewing 10 posts - 1 through 10 (of 10 total)
Jack Corbett (10/22/2014)
katland226 (10/22/2014)
October 22, 2014 at 10:29 am
Well, I just realized that the message is indeed printing... But instead of printing the message in the results tab, it instead prints in the messages tab.
Okay, so it's working,...
October 22, 2014 at 10:11 am
And I am using Microsoft SQL Server Management Studio. I am looking for the results to appear in the output window, where they always do.
October 22, 2014 at 10:06 am
It still returns the same thing... that is, nothing.
October 22, 2014 at 10:05 am
The @city needs to stay as a parameter entered manually into the procedure. It's part of the instructions I was given.
Also, right here is where I'm trying to test the...
October 22, 2014 at 9:59 am
CREATE PROC KRCityContacts
@city varchar(20) = NULL
AS
DECLARE @rowcount int
IF @city IS NOT NULL
BEGIN
SELECT CompanyName
FROM Customer
WHERE CompanyName IS NOT NULL
AND City = @city
UNION
SELECT CompanyName
FROM Supplier
WHERE City = @city
SET @rowcount = @@ROWCOUNT
IF @rowcount...
October 22, 2014 at 9:48 am
This is how I executed the procedure:
EXEC KRCityContacts 'Asheville'
But I only want to show the results, not the actual row count - I just want to test it as a...
October 22, 2014 at 9:38 am
Evil Kraig F (10/9/2014)
October 9, 2014 at 4:49 pm
It seemed that the main issue was actually the State variable. Apparently, it had been confused for an integer; after using CONVERT that one, I stopped receiving the error.
October 7, 2014 at 5:19 pm
Thank you for your help, both of you. But while I think I understand what you're getting at, I guess I was kind of foggy on how to fix it:
CREATE...
October 7, 2014 at 4:40 pm
Viewing 10 posts - 1 through 10 (of 10 total)