Language datatype in sql

  • HI There,

    i have a requirement of storing the language preference of the user in the database.

    does any body know which datatype can be used so that it could be easily mapped to .net appliacation. suggestions are highly appreciated.

    Regrads

    Dee

  • Context is not clear. See whether following helps

    If you just want to store only the language name then can't you just use the varchar datatype and store the culture name (In .net u can use System.Threading.Thread.CurrentThread.CurrentUICulture.Name)

    "en-US"

    "en-GB"

    This can then be used to set back to the current culture using following line

    System.Threading.Thread.CurrentThread.CurrentUICulture = New Globalization.CultureInfo("en-GB")

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply