Dear Friens,
I am writing a SP.But storeing a query in a variable.But at the time
of execution generating error.Exam
=============== ====
Declare @query varchar{500)
Set @query = 'Select * from table'
if exists (exec (@query))
print 'Hi'
=============== =====
But "if exists" line giving error.How do I solve this.Please help me
out.
Reagrds
Arijit Chatterjee
I am writing a SP.But storeing a query in a variable.But at the time
of execution generating error.Exam
=============== ====
Declare @query varchar{500)
Set @query = 'Select * from table'
if exists (exec (@query))
print 'Hi'
=============== =====
But "if exists" line giving error.How do I solve this.Please help me
out.
Reagrds
Arijit Chatterjee
Comment