【发布时间】:2014-01-02 14:00:44
【问题描述】:
使用 ASP.NET 4.51 和 VS 2013 尝试使用存储过程填充数据表时出现以下错误。
System.AccessViolationException: Attempted to read or write protected memory
我已经追踪到以下错误:
Using myDT As New DAL.mbr_MediaComments.usrsp_mbr_MediaComments_CommentorsDataTable
Using myTA As New DAL.mbr_MediaCommentsTableAdapters.usrsp_mbr_MediaComments_CommentorsTableAdapter
myTA.Fill(myDT, toMbrID, mediaID) <------System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
这是我的存储过程定义:
CREATE PROCEDURE [dbo].[usrsp_mbr_MediaComments_Commentors]
-- Add the parameters for the stored procedure here
@mbrID int = 0,
@mediaID bigint = 0
AS
BEGIN
//my query code
END
【问题讨论】:
标签: sql-server vb.net stored-procedures ado.net