简体   繁体   中英

Stored Procedure Returns no columns Issue

I have looked all over the internet, and have not been able to find a fix for my issue. I have a SPROC that I am trying to create an Entity Object for to use in my project, and I am getting this error, when I attempt to add an import function.

The Selected stored procedure or function returns no columns

Here is the SPROC SQL

ALTER Procedure [dbo].[RHS_LocationFullTextSearch]
@SearchText varchar(100)
as
Begin
 SET FMTONLY OFF
select relo.SearchID, relo.SearchText, relo.SearchType, relo.SourceTable,  relo.SourceTableRecordID
from RELOHomeSearch.dbo.RHS_LocationSearch relo (nolock)
where contains (SearchText, @SearchText)
End

The

Here is a screen of the error 错误信息

Here is a screen of the table object that the SPROC returns results of 表

Any help would be greatly appreciated. Thanks

I was able to fix this by taking out the where clause. For some reason the utility didn't like it. Not sure why though.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM