select *from OPENROWSET('SQLNCLI', 'server=abc.xxx.x.xx;Uid=xyz;Pwd=#####; database=[db]; Persist Security Info=False', 'select * from AlahlidbN.dbo.mstudent') as GetContractFromERP where GetContractFromERP.IsSent=0
select *from OPENROWSET('SQLNCLI', 'server=abc.xxx.x.xx;Uid=xyz;Pwd=#####; database=[db]; Persist Security Info=False', 'select * from AlahlidbN.dbo.mstudent') as GetContractFromERP where GetContractFromERP.IsSent=0 Exec ('call mobileapp.sp_GetStudentContractFromERP('''''+GetContractFromERP.stdID+''',"GetContractFromERP.type","GetContractFromERP.text","GetContractFromERP.Msg","GetContractFromERP.show","GetContractFromERP.StdOne")') at LINKED
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)