Quantcast
Channel: String Query TSQL .
Browsing latest articles
Browse All 2 View Live

String Query TSQL .

Hello Suraj,In a function (UDF) you can't execute stored procedures (SP). For your case it is also not nessecary, you can solve it with a simple select:USE [AdventureWorks]GO CREATEFUNCTION...

View Article



String Query TSQL .

declare @tsql nvarchar(4000)declare @cnt intset @tsql = 'select @cnt=count(1) from employee'exec sp_executesql    @query=@tsql, @params = '@cnt int output' , @cnt = @cnt outputselect @cntI want to...

View Article
Browsing latest articles
Browse All 2 View Live


Latest Images