Pregunta

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

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top