How big can a user agent string get?

前端 未结 11 2144
清酒与你
清酒与你 2020-11-28 20:36

If you were going to store a user agent in a database, how large would you accomdate for?

I found this technet article which recommends keeping UA under 200. It does

11条回答
  •  春和景丽
    2020-11-28 21:22

    Since it's for database purposes and there is no practical limit i'd go for a UserAgents Table with UserAgentId as Int and UserAgentString as NVarChar(MAX) and use a foreign key on the original table.

提交回复
热议问题