How to prevent database conversion by accident

ta5
Member Posts: 1,164
Hi
I think this topic has been discussed before, but I cant find the thread...
As a NSC, we have a lot of customer databases around. Because we want to prevent database conversion by accident, we have an icon for every customer db. Worked fine for years!
The problem is with Links to Nav, for example "nav://...". Such a link seems to start the latest installed client. Then it happens, an old db version is opened with a new client and converted very fast...
Is it possible to prevent this, meaning developers still should have development access to the db's?
Thanks in advance
Thomas
I think this topic has been discussed before, but I cant find the thread...
As a NSC, we have a lot of customer databases around. Because we want to prevent database conversion by accident, we have an icon for every customer db. Worked fine for years!
The problem is with Links to Nav, for example "nav://...". Such a link seems to start the latest installed client. Then it happens, an old db version is opened with a new client and converted very fast...
Is it possible to prevent this, meaning developers still should have development access to the db's?
Thanks in advance
Thomas
0
Answers
-
I do remember this discussion as well. I think it was this one http://www.mibuso.com/forum/viewtopic.php?f=23&t=34277. But your goal is a little bit different. I mean this link issue."Money is likewise the greatest chance and the greatest scourge of mankind."0
-
einsTeIn.NET wrote:I do remember this discussion as well. I think it was this one http://www.mibuso.com/forum/viewtopic.php?f=23&t=34277. But your goal is a little bit different. I mean this link issue.
Thanks. I like this: "Phrases like "Next time I'll cut up your hands" doesn't work accident still happens, not often but it happens."
As mentioned at the beginning of this thread, having an icon or something else is not a problem, it has been working for years. The "new" problem is dealing with links.
Any comments are welcome. Thank you in advance.
Thomas0 -
Thomas,
Are your databases SQL databases?
If so you can use the "dbo.sp_$ndo$loginproc" for this, we do it here locally.
We compare the build number of the client application with the database build number.
If those 2 are not equal, the user is denied access to the database with that client.
Hope this helps,
WillyFostering a homeless, abused child is the hardest yet most rewarding thing I have ever done.0 -
ta5 wrote:accident still happens
How I would approach this is to take away this access from everyone except the ones that you know need it. Then if someone wants access they have to ask for it, and you can have the "I will cut off your hands"-conversation0 -
This one usually does the job too.
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[$ndo$abort_upgrade]')) DROP TRIGGER [dbo].[$ndo$abort_upgrade] GO CREATE TRIGGER dbo.[$ndo$abort_upgrade] ON dbo.[$ndo$dbproperty] AFTER UPDATE AS BEGIN SET NOCOUNT ON; if update(databaseversionno) RAISERROR ('Contact the system administrator, ID Ten Tee Error', 11, 1) END GO
Robert de Bath
TVision Technology Ltd0 -
Thanks for your reply. Is there a hint for native db too?
Thomas0 -
Nope, for native you're back at "fingers meet hammer" and "sorry everyone the database will be offline today because Thomas has upgraded it again".
Though, frankly, we don't use that SQL code either. We use a directory of links to the databases, pick the one you want and click. No problems, well except for Windows Vista of course.Robert de Bath
TVision Technology Ltd0 -
rdebath wrote:Nope, for native you're back at "fingers meet hammer" and "sorry everyone the database will be offline today because Thomas has upgraded it again".
Though, frankly, we don't use that SQL code either. We use a directory of links to the databases, pick the one you want and click. No problems, well except for Windows Vista of course.
Thanks a lot!
Btw 1: It was not me, upgrading the database by accident
Btw 2: We also use a directory of links, but the accident happened by clicking a mail containing a link to navision (see initial post).0 -
ta5 wrote:rdebath wrote:Nope, for native you're back at "fingers meet hammer" and "sorry everyone the database will be offline today because Thomas has upgraded it again".
Though, frankly, we don't use that SQL code either. We use a directory of links to the databases, pick the one you want and click. No problems, well except for Windows Vista of course.
Thanks a lot!
Btw 1: It was not me, upgrading the database by accident
Btw 2: We also use a directory of links, but the accident happened by clicking a mail containing a link to navision (see initial post).
Btw: navision:// links DONT WORK in an NSC environment, they NEVER start the right client. That's what I always say anyway. I expect a simple regedit or deleting the finhlink.exe program will kill them dead.Robert de Bath
TVision Technology Ltd0 -
8)
Btw: Deleting finhlink.exe works excellent! Thanks
Thomas0 -
DenSter wrote:Clicking two message boxes is not an accident, it is carelessness....
There are situations where NAV does a silent upgrade of the db, such as applying hotfixes and SPs:bug:
Regards
Dan Lindström
NCSD Navision 2.00 since 1999 (Navision Certified Solution Developer)
MBSP Developer for Microsoft Dynamics NAV 20090 -
Also when openening a 4.03 DB with a 5.00 Client via Server.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