Menu

#15 Bug in "Edit SQL Server Login" when Default Language is NULL

open
nobody
None
5
2003-05-28
2003-05-28
No

Here is How to reproduce the bug:

-Connect to an MSDE installed by .NET SDK
do it this way:
https://sourceforge.net/forum/message.php?
msg_id=2035292

-Select Securyty/Logins

-In "Sql Server Logins" dialog select the username "sa"
that have default language to null

-> error in logins_edit.aspx.vb: NullReferenceException

reason: language can be null
solution:
edit logins_edit.aspx.vb and change
DefLanguage.Items.FindByValue
(Login.DefaultLanguage).Selected = true

to

If Not DefLanguage.Items.FindByValue
(Login.DefaultLanguage) is Nothing Then _
DefLanguage.Items.FindByValue
(Login.DefaultLanguage).Selected = true

HTH (luKa)

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.