سؤال

I've got this script that is working properly and the output is correct when I execute the stored procedure. But its not working when I use it through codesmith, when I perform generate output the stored procedure will return an integer not a result.

Here is the part that is causing the problem:

SELECT *
INTO #UsersConversations
FROM Conversations c 
WHERE c.pid IN
    (SELECT DISTINCT ConvID FROM ConversationUsers WHERE UserID = @UserId)

I'm using SQL Server 2008, CodeSmith v4

هل كانت مفيدة؟

المحلول

I work for CodeSmith Tools. The following detailed thread will describe the issue you are running into and how to resolve it.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top