hi
how to Concatenate dynamic string Query using Cursor in Sql Server.
My Query like this
==================
SELECT column_name FROM information_schema.COLUMNS WHERE table_name LIKE 'TblStudens'
and ordinal_position>=3
this Query output this
========================
column_name
=============
S1
S2
S3
S4
S5
here i need how to concatenate in my Query s1=1 and s2<=3 and s3>=4 and s4=4 and s5=7
how to achieve this using Cursor.
i m using cursor but showing row vise i need concatenate to dynamic string
Mark as Answer if its helpful to you
Kumaraspcode2009@gmail.com