Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot pass the File Name
Message
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
00421483
Message ID:
00421593
Views:
15
<<<snip>>>
>>Try this
>>
>>SET @sqlcmd = 'SELECT [@NumRecs] = COUNT(email)
>>FROM ' + @TableName
>>WHERE Include = 'Y'
>
>That certainly works Sergey. However, the PRINT @MyNumber line does not print a value. That means that the value (@NumRecs) was not returned to the calling program properly.


I just try it on my SQL Server and it works.
What version of SQL Server are you using?
My is 7.0
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform