在我的数据库中,我有表:
ID int
UserName nvarchar(50)
NoiDung ntext
Trangthai nvarchar(50)
GhiChu ntext
NgayThucHien datetime
ThoiHan datetime
要插入的SQL过程:
GO
ALTER PROCEDURE [dbo].[Insert_DBangKe]
@UserName nvarchar(50),
@NoiDung ntext,
@TrangThai nvarchar(50),
@GhiChu ntext,
@Ngay datetime,
@Han datetime
AS
INSERT INTO DBangKe
(
UserName,
NoiDung,
TrangThai,
GhiChu,
NgayThucHien,
ThoiHan
)VALUES
(
@UserName,
@NoiDung,
@TrangThai,
@GhiChu,
@Ngay,
@Han
)
在我的Project Web中,我有APSxGridView显示并允许插入,删除,编辑。