码迷,mamicode.com
首页 > Windows程序 > 详细

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

时间:2015-07-31 12:04:12      阅读:556      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!