asp classic - How Many Bytes Sent From SQL Server To Client -
we troubleshooting ancient application written in classic asp accesses sql server 2005 database. intranet application only.
the asp page set paginate through 200,000+ records, 10/20 or 30 records @ time. we're planning move app more current language, etc. in mean time, we've been asked determine how many bytes have been transfered client.
the sql query such:
db_server = "<server name>" db_name = "<database name>" db_username = "<user name>" db_userpassword = "<password>" connectstr = "driver={sql server};server=" & db_server & ";database=" & db_name & ";uid=" & db_username & ";pwd=" & db_userpassword objcn .cursorlocation = aduseclient .connectiontimeout = 15 .commandtimeout = 30 .connectionstring = connectstr .open end objrs .activeconnection = objcn .cursorlocation = aduseclient .cursortype = adopenforwardonly .locktype = adlockreadonly .source = sql .pagesize = intpagesize .open set .activeconnection = nothing 'disconnect recordset end
the asp goes on page through return data , we'd want know how many bytes received @ client. we're thinking taking pagesize , multiplying data field lengths being returned cursor returns 1 "page" @ time. simple? missing significant overhead in calculation?
if client , server on different machines, fire wireshark monitor true bandwidth.
Comments
Post a Comment