Question

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

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top