Question : How to print from a terminal server to a local network printer

I have a network printer having a IP as 192.168.15.220. From this network i connect a remote computer (terminal server) which a static ip (different location), Now i want to take the print out from the terminal server to my local network printer. Moreover my local network ISP is also a static IP. How to configure

Answer : How to print from a terminal server to a local network printer

instead of union and while just use

year(h.ivh_deliverydate)  between @yearFrom and @yearTo
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
declare @year int, @month int
set @yearFrom = 2009
set @yearTo = 2011
set @month = 06
begin
select 
	h.ivh_revtype1, 
	@month, @year,
	'Line Haul',
	(select sum(i.ivd_charge)) 
from invoicedetail as i inner join invoiceheader as h on i.ivh_hdrnumber = h.ivh_hdrnumber
where month(h.ivh_deliverydate) = 06 and i.cht_itemcode like 'LH%' and
	year(h.ivh_deliverydate) between @yearFrom and @yearTo 
group by h.ivh_revtype1

end
Random Solutions  
 
programming4us programming4us