NAV 2013 R2 Case Sensitive

vbtrek
Member Posts: 14
I can't understand why Microsoft are distributing a Case Sensitive version of the CRONUS database with NAV 2013 R2.
As I understand it the only way to create a new database is to start with the cronus database which has all the objects you need then create a new company etc., but, this still leaves you with a case sensitive database.
Is it possible to get a case insensitive cronus database?
As I understand it the only way to create a new database is to start with the cronus database which has all the objects you need then create a new company etc., but, this still leaves you with a case sensitive database.
Is it possible to get a case insensitive cronus database?
Derek Smith
0
Comments
-
-
I have unticked the Case-sensitive option in NAV Developer Environment in File -> Database -> Alter -> Collation tab, but this has not changed the collation of the database (not entirely sure what it has done).
You can't change the collation in SQL Server because you get hundreds of errors like:
The object 'CRONUS UK Ltd_$Job Planning Line$VSIFT$6' is dependent on database collation. The database collation cannot be changed if a schema-bound object depends on it. Remove the dependencies on the database collation and then retry the operation.Derek Smith0 -
Have you started the RTC after the change? Or have you run the Sync powershell command? Do not forget that the schema changes are done when RTC connect or when the sync is started manually. Even the change of collation is working in different way in NAV 2013 and I had some problems in earlier builds with this. There is collation name saved in system (internal) table of the tenant database...0
-
Yep I've run the RTC, but in SQL Server the database remains as "Latin1_General_100_CS_AS" collation.
I'm running GB Dynamics NAV 7.1 (7.1.35473.0)Derek Smith0 -
Try to use newest build. I was solving the problem with support and I needed at least 36035 or something like that. Do not forget that there are critical things fixed in the build before 36344...0
-
Ok, I uninstalled 35473, and installed Update 7 which is 7.1.36703, installed a fresh Cronus database from this install, and the default is still case sensitive.
I ran throught the Developer environment and Altered the database to NOT be case sensitive, then started the RTC, then checked in SQL Server and the database is still set with the Collation of Latin1_General_100_CS_AS.
Much appreciate your help, no idea what I'm doing wrong. We're going to try upgrading a Case Insensitive NAV 6 database to NAV 2013 which I imagine the upgrade won't change the collation, but there must be a way to do this directly in NAV 2013.Derek Smith0 -
I think you will need a SQL script to change all the objects.
When all the SQL Server objects are case sensitive, you can change the default setting for the database, but that does not change the individual objects.
Too bad the long awaited return of the backup and restore company has still not happened.
One more reason for going to Directions or NAV Tech days where you can talk to Microsoft directly.David Machanick
http://mibuso.com/blogs/davidmachanick/0 -
:-) Have you looked into the Update 8? http://blogs.msdn.com/b/nav/archive/201 ... eased.aspx
Import/Export-NAVData...0 -
kine wrote::-) Have you looked into the Update 8? http://blogs.msdn.com/b/nav/archive/201 ... eased.aspx
Import/Export-NAVData...
FBK is back! Kind of.
I noticed there's an comment on this update:
Release note The cmdlet help for the syntax of the Export-NAVData and Import-NAVData are not completely correct.
Please refer to below syntax instead:
So solution is given.
Tino Ruijs
Microsoft Dynamics NAV specialist0 -
I finally got round to trying this, and it wasn't easy. In case anyone is interested here are the steps that worked for me:
- Export-NAVData -DatabaseServer "<SQLServer>" -DatabaseName "CRONUS" -FileName "CronusBackup.bak" -AllCompanies -IncludeApplication -IncludeGlobalData -IncludeApplicationData
- Create a new DB In SQL Server Collation I chose was Latin1_General_100_CI_AS
- Import-NAVData -DatabaseServer "<SQLServer>" -DatabaseName "<MyNewDB>" -FileName "CronusBackup.bak" -AllCompanies -IncludeApplication -IncludeGlobalData -IncludeApplicationData
- Execute SQL:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[$ndo$cachesync](
[id] [int] IDENTITY(1,1) NOT NULL,
[Server Instance ID ] [int] NOT NULL,
[modifiedtables] [varbinary](max) NULL,
[timestamp] [timestamp] NOT NULL,
CONSTRAINT [PK$ndo$cachesync] PRIMARY KEY CLUSTERED
(
[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO - Point the NAV service to New DB
- Give NETWORK SERVICE permission to the database
- Start the Service
- New-NAVCompany -ServerInstance "DynamicsNAV71" -CompanyName "<MyNewCompany>"
- Remove-NAVCompany -ServerInstance "DynamicsNAV71" -CompanyName "CRONUS UK Ltd."
- Sync-NAVTenant -ServerInstance "DynamicsNAV71"
This should leave you with a new database that is Case Insensitive, and a new company.Derek Smith0 -
It is a little bit off-topic but could you please check it:
I restored a Database using import-navdata as you described. The '$ndo$cachesync' was also missing.
And one other thing was missing in my new db: The SQL-Server Trigger [$ndo$objecttracking] on the 'Object Metadata'-Table. I could use the database normal but when I changed something in the development environment the RTC showed the change only after server restart.
I copied the create script for this trigger via SQL Management Studio from another database and created it in the new db. And now everything works.
Are you missing this trigger also?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