For example, my sql command returns this
01234567
So how would I be able to insert text so it would return this at the end of the statement. So if I return multiple values, then TEXT would only appear at the end.
01234567TEXT
I cant seem to find too much online for assistance but I know this is possible. My current sql command is as follows:
SqlCommand command = new SqlCommand("SELECT PID = RIGHT(REPLICATE('0',8) + CAST(PID AS VARCHAR(8)),8) FROM dbo.MDRMASTER WHERE PARENTPID = @PARENTPID",con);
Any help or a point to the right direction would be awesome. Thank you so much
UPDATE I misworded the question in the beginning. I ment to say at the end of the last statement. Thanks Siva for clearing that up. I did thumbs up everyone though. Thanks everyone for your help.
If I understand correctly, you need the text at the end of the result. Then you need to perform a
UNION.Code: