Server List doesn't refresh anymore

Maximus
Member Posts: 105
Hi there,
we have two SQL servers: Live and Test. When I switch between these servers using the Open Database dialog the list of available databases that pops up when you press the LookUp button in the Database Name field doesn't refresh but always shows the available databases on the server you currently connected to. I can log in when I type the name manually.
So I have to type in the Server Name manualy. Is it possible to change this?
And I also have to type in the Database Name manually. This is a new problem. What can cause this?
Thanks in advance.
Regards Max
we have two SQL servers: Live and Test. When I switch between these servers using the Open Database dialog the list of available databases that pops up when you press the LookUp button in the Database Name field doesn't refresh but always shows the available databases on the server you currently connected to. I can log in when I type the name manually.
So I have to type in the Server Name manualy. Is it possible to change this?
And I also have to type in the Database Name manually. This is a new problem. What can cause this?
Thanks in advance.
Regards Max
0
Comments
-
Funny you should mention this as I had to debug this very same issue recently. In my scenario the problem occurs if you have a form open which uses the "database" table - my form was using this to display the current database name on the form. In this scenario I get the same problem as you. As soon as you close the form containing the "database" table then the database list in the "file, database, open" works again. This to me is an issue with the NAV client and we have raised a support issue with Microsoft - waiting to hear from them.0
-
Hi,
tnx you triggered me.
I recently added this code to Codeunit 1:
CompanyOpen()
IF GUIALLOWED THEN
LogInStart;
ShowDBName; //My line off code
Function:
ShowDBName()
LRecDatabase.RESET;
LRecDatabase.SETRANGE("My Database",TRUE);
LRecDatabase.FINDFIRST;
IF (STRPOS(LRecDatabase."Database Name",'ACC') > 0) OR
(STRPOS(LRecDatabase."Database Name",'TEST') > 0 ) THEN
MESSAGE('!!! ' + LRecDatabase."Database Name" + ' !!!');
I removed the code and my problem is solved. Apparently the usage of the Database Table Record Variable causes the problem. I tried using a RESET and a CLEAR. But this doesn't solve my problem.
I removed the code from C1.
Regards Max0 -
Hi Max,
You may be able to do a little workaround for your scenario - try moving the function into a separate codeunit (one which isn't single instance like CU1) and it may work. Worth a try anyway.
Regards
Kishor0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions