string Strsql = string.Format(@"select ee.DOCUMENTNO,ee.APPLICANTNAME,ee.COMPANY,ee.REQUESTTIME,ee.REQ_TITLE, ee.INCIDENT, (datediff(d,getdate(),STARTTIME)) STARTTIME,cc.STEPLABEL ,isNull((select distinct USERNAME from ORG_USER where LOGINNAME = subs…