首页 > Windows开发 > 详细

The return types for the following stored procedures could not be detected

时间:2015-07-31 12:03:13      阅读:366      评论:0      收藏:0      [点我收藏+]

1、使用dbml映射数据库,添加存储过程到dbml文件时报错。

技术分享

2、原因:存储过程中使用了临时表

3、解决方案

3.1 通过自定义表值变量实现

Ex:

DECLARE @TempTable TABLE

(

AttributeID INT,

Value NVARCHAR(200)

)

INSERT INTO @TempTable Select * from Attribute

OR

--Execute SP and insert results into @TempTable

INSERT INTO @TempTable Exec GetAttribute @Id

You can do all operation which you was doing with #Temp table like Join, Insert, Select etc.

The return types for the following stored procedures could not be detected

原文:http://www.cnblogs.com/xiaochun126/p/4691529.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!