SQL Error while Opening the DB

st0328
Member Posts: 97
Hi all,
when we are trying to open the DB.
An SQL error is coming while opening the DB .
NAV Veriosn : R2
DB : SQL
OS : WIN SERVER R2
Microsoft Dynamics NAV Classic
The following SQL Server error or errors occurred:
924,"42000",[Microsoft][ODBC SQL Server Driver][SQL Server]Database 'Live_04-03-13' is already open and can only have one user at a time.
SQL:
SELECT COUNT(*), SP.[program_name] FROM [master].[dbo].[sysprocesses] AS SP WHERE SP.[ecid] = 0 AND SP.[context_info] = 0x01 AND SP.[last_batch] >= CONVERT(DATETIME, '2000-01-01 00:00:00', 120) AND SP.[program_name] IN ('Microsoft Dynamics NAV Classic client','C/ODBC','C/FRONT','Application Server for Microsoft Dynamics NAV Classic','VIP Application Server for Microsoft Dynamics NAV Classic','Microsoft Dynamics NAV RTC') GROUP BY SP.[program_name]
OK
Please Suggest me in this
when we are trying to open the DB.
An SQL error is coming while opening the DB .
NAV Veriosn : R2
DB : SQL
OS : WIN SERVER R2
Microsoft Dynamics NAV Classic
The following SQL Server error or errors occurred:
924,"42000",[Microsoft][ODBC SQL Server Driver][SQL Server]Database 'Live_04-03-13' is already open and can only have one user at a time.
SQL:
SELECT COUNT(*), SP.[program_name] FROM [master].[dbo].[sysprocesses] AS SP WHERE SP.[ecid] = 0 AND SP.[context_info] = 0x01 AND SP.[last_batch] >= CONVERT(DATETIME, '2000-01-01 00:00:00', 120) AND SP.[program_name] IN ('Microsoft Dynamics NAV Classic client','C/ODBC','C/FRONT','Application Server for Microsoft Dynamics NAV Classic','VIP Application Server for Microsoft Dynamics NAV Classic','Microsoft Dynamics NAV RTC') GROUP BY SP.[program_name]
OK
Please Suggest me in this
0
Answers
-
Your database is probably in single user mode.
https://www.google.nl/#hl=nl&safe=off&s ... 39&bih=6210 -
Hi,
Just check the property in SQL.
Open SQL Server.
Right click the database and select properties.
Click on Options form Left hand panel.
Drill down to end of the page and check last property value (Restrict Access).
If the value is SINGLE_USER change it to MULTI_USER and try again.
Let me know if any issues.
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page0 -
Hi,
thanks for Quick reply and suggestions..
In the same server we have another DB which is of Single User Mode. But,the DB we are trying to open is not in Single User Mode.
After this error, we tried to change the that DB to Multi User Mode which was in Single User Mode . But, it is not allowing to change. And we are getting the same Error.
Please suggest0 -
The database is in use by a process. Hence the single user is used.
To change the property the database must be unused.
Usually what helps is restarting SQL Server and make sure SQL agent is not running.
If you're quick enough you should be able to change the property.0 -
thanks for Suggestions Mark Brummel & postsaurav
we found the user and ask him to close the DB and Deleted all the users of the DB which was in Single user Mode and Changed to Multi User Mode
Now it is opening..
Resolved.0
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