OldSlowDog
Programmer
I have made some changes to an existing stored procedure. I pressed F5. I thought it should update my sp's content only and should not execute the statements in it. My question is does SQL Server execute the SELECT and stuff in the procedure when I pressed F5 with the ALTER statement?
Thanks.
ALTER PROCEDURE CollectSales
(
@Co int,
@Column int,
@SiteID int,
@BeginDate datetime,
@RtC int output
)
AS
SET NOCOUNT ON
INSERT INTO DailyRecords_tbl
SELECT @Co, @Column, @SiteID,
Convert(char(10), ClosingDate, 101), DailySales
FROM RegionSales
WHERE ClosingDate > @BeginDate
SET @RtC = @@ROWCOUNT
Thanks.
ALTER PROCEDURE CollectSales
(
@Co int,
@Column int,
@SiteID int,
@BeginDate datetime,
@RtC int output
)
AS
SET NOCOUNT ON
INSERT INTO DailyRecords_tbl
SELECT @Co, @Column, @SiteID,
Convert(char(10), ClosingDate, 101), DailySales
FROM RegionSales
WHERE ClosingDate > @BeginDate
SET @RtC = @@ROWCOUNT