araz_pashazadeh
پنج شنبه 31 تیر 1389, 18:36 عصر
من نمی دونم چرا این کد در داخل sp اجرا نمیشه خطا می ده ولی وقتی کامپایل می کنم خطا نداره:متفکر:
اینم کد sp
ALTER PROCEDURE [dbo].[InserNews](
@Date nvarchar(16),
@Title nvarchar(32),
@LittleDiscrept nvarchar(64),
@MoreDiscrept ntext,
@Pic nvarchar(32)
)
as
INSERT INTO News
(Date,Title,LittleDiscrept,MoreDiscrept,Pic)
VALUES
(@Date,@Title,@LittleDiscrept,@MoreDiscrept,@Pic)
IF @@ERROR=0
ROLLBACK TRANSACTION
ELSE
COMMIT TRANSACTION
اینم کد sp
ALTER PROCEDURE [dbo].[InserNews](
@Date nvarchar(16),
@Title nvarchar(32),
@LittleDiscrept nvarchar(64),
@MoreDiscrept ntext,
@Pic nvarchar(32)
)
as
INSERT INTO News
(Date,Title,LittleDiscrept,MoreDiscrept,Pic)
VALUES
(@Date,@Title,@LittleDiscrept,@MoreDiscrept,@Pic)
IF @@ERROR=0
ROLLBACK TRANSACTION
ELSE
COMMIT TRANSACTION