How to find out who is connected to database?

Polar
Member Posts: 32
Navision Attain 3.60 on SQL 2000.
Sometime I need to restart server where SQL is installed.
How to find out users connected by Navision Client to call them and say something like
"don't worry, be happy" server.RESET
May be somewhere in Navision is a tool to send messages to active users
like in Axapta?
Sometime I need to restart server where SQL is installed.
How to find out users connected by Navision Client to call them and say something like
"don't worry, be happy" server.RESET

May be somewhere in Navision is a tool to send messages to active users
like in Axapta?
keep it simple
0
Comments
-
I presume you already know about the menu path 'File, Database, Information', Sessions tab, and the drill down on 'Current Sessions'.
If calling the users one at a time is insufficient, you could create a report (or other process) based on the 'Session' virtual table no. 2000000009.
In some version (? 3.70 SQL ?) you can forcefully disconnect a user by deleting their entry in the Session table! -- Very rude, but sometimes necessary!
Coming in v4.0 -- same session kill feature for the Navision db server, along with an 'Idle Time' field in the Session table.0 -
There's nothing like this right now.
Just for your information, in 4.0 for SQL there is a method of doing something similar. You can create a stored procedure that is executed when every user logs in. It can display an informational message ('server shuting down for maintenance at 18:00') or can deny login altogether - for all users or particular users.Dean McCrae - Senior Software Developer, NAV Server & Tools
This posting is provided "AS IS" with no warranties, and confers no rights.0 -
Hello, fb
I thought in file->database->information I'd see userid of users connected
but there are about a hundred sessions where userid is the same - SA
One session was marked as "my session", but userid was SA , Application
MS SQLEM , not Navision Attain Client , database MASTER. I connect to SQL using my own login, not SA, and database not MASTER.
may be something is wrong in russian localisation or database authentication?
Has anyone an idea?keep it simple0
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