I have an asp.net app and am calling stored procedures. My app worked great until I had to use linked servers. I did some research and learned that yes performance is impacted and specially on inserts. i read about openquery but can't figure out how to use openquery with my current sql statement - please help.
Code:
select @current_licence = f.folderrsn
from amandaosg.amanda_dev.dbo.folderpeople fp join amandaosg.amanda_dev.dbo.folder f
on fp.folderrsn = f.folderrsn
where fp.peoplersn = @ArgRegistrationPeopleRSN
and f.foldertype = @FolderType and f.subcode = @subcode and statuscode = 2 and folderyear = convert(numeric,substring( convert (char(4),datepart(yy,@now)),3,4) )