CREATE DATABASE [NAV40_Test] ON PRIMARY ( NAME = N'NAV40_Test_Data', FILENAME = N'E:\Company\MSSQL\Data\NAV40_Test_Data.mdf' , SIZE = 100MB , MAXSIZE = UNLIMITED, FILEGROWTH = 10%), FILEGROUP [Data Filegroup 1] DEFAULT ( NAME = N'NAV40_Test_1_Data', FILENAME = N'E:\Company\MSSQL\Data\NAV40_Test_1_Data.ndf' , SIZE = 50GB , MAXSIZE = UNLIMITED, FILEGROWTH = 10%) LOG ON ( NAME = N'NAV40_Test_Log', FILENAME = N'd:\Company\MSSQL\Data\NAV40_Test_Log.ldf' , [color=#FF0000]SIZE = 100MB[/color], MAXSIZE = 2048GB , [color=#FF0000]FILEGROWTH = 10GB [/color]) GO ALTER DATABASE [NAV40_Test] SET COMPATIBILITY_LEVEL = 100 GO IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled')) begin EXEC [NAV40_Test].[dbo].[sp_fulltext_database] @action = 'enable' end GO ALTER DATABASE [NAV40_Test] SET ANSI_NULL_DEFAULT OFF GO ALTER DATABASE [NAV40_Test] SET ANSI_NULLS OFF GO ALTER DATABASE [NAV40_Test] SET ANSI_PADDING OFF GO ALTER DATABASE [NAV40_Test] SET ANSI_WARNINGS OFF GO ALTER DATABASE [NAV40_Test] SET ARITHABORT OFF GO ALTER DATABASE [NAV40_Test] SET AUTO_CLOSE OFF GO ALTER DATABASE [NAV40_Test] SET AUTO_CREATE_STATISTICS ON GO ALTER DATABASE [NAV40_Test] SET AUTO_SHRINK OFF GO ALTER DATABASE [NAV40_Test] SET AUTO_UPDATE_STATISTICS ON GO ALTER DATABASE [NAV40_Test] SET CURSOR_CLOSE_ON_COMMIT OFF GO ALTER DATABASE [NAV40_Test] SET CURSOR_DEFAULT GLOBAL GO ALTER DATABASE [NAV40_Test] SET CONCAT_NULL_YIELDS_NULL OFF GO ALTER DATABASE [NAV40_Test] SET NUMERIC_ROUNDABORT OFF GO ALTER DATABASE [NAV40_Test] SET QUOTED_IDENTIFIER OFF GO ALTER DATABASE [NAV40_Test] SET RECURSIVE_TRIGGERS OFF GO ALTER DATABASE [NAV40_Test] SET ENABLE_BROKER GO ALTER DATABASE [NAV40_Test] SET AUTO_UPDATE_STATISTICS_ASYNC OFF GO ALTER DATABASE [NAV40_Test] SET DATE_CORRELATION_OPTIMIZATION OFF GO ALTER DATABASE [NAV40_Test] SET TRUSTWORTHY OFF GO ALTER DATABASE [NAV40_Test] SET ALLOW_SNAPSHOT_ISOLATION OFF GO ALTER DATABASE [NAV40_Test] SET PARAMETERIZATION SIMPLE GO ALTER DATABASE [NAV40_Test] SET READ_COMMITTED_SNAPSHOT OFF GO ALTER DATABASE [NAV40_Test] SET HONOR_BROKER_PRIORITY OFF GO ALTER DATABASE [NAV40_Test] SET READ_WRITE GO ALTER DATABASE [NAV40_Test] SET RECOVERY FULL GO ALTER DATABASE [NAV40_Test] SET MULTI_USER GO ALTER DATABASE [NAV40_Test] SET PAGE_VERIFY CHECKSUM GO ALTER DATABASE [NAV40_Test] SET DB_CHAINING OFF GO
Comments
One suggestion, run the client on the sql server on same machine and restore the database. Also have the fbk available. Put them on drive where the OS is.
Also I suggest to get the 2009 Sp1 which will be released in 3 weeks. They have added some performance features for sql 2008
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
No to local run of FINSQL.exe on 64 bit sql box. see attached error message. (image)
.
By the way Client box is also sunning at 3% CPU utilisation.
How much memory is sql server consuming?
where are the backup files located on the box where the client is running?
have you looked at query profiler and see anything that is taking long?
Also your log file is too small it should be set to 50 gig.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I believe you are suppose to run on sql 2008 with 4.0 sp3 with latest hotfix, or 5.0 with latest hotfixes, or 5.0 sp1, or 2009 executables.
I don't think 4.0 sp2 is supported on sql 2008.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
os c: 0
logs d: 0.001
data e: 0
How much memory is sql server consuming?
16 gb
where are the backup files located on the box where the client is running?
local on nav client machine
have you looked at query profiler and see anything that is taking long?
nothing unusual just a bucket load of inserts and selects
Also your log file is too small it should be set to 50 gig.
yes I agree my initial log is small but my growth factor is 10gb chunks
YES. Although its not supported it does complete the process. Last test took 100 hours. This time still running!!!!!! All I want to do is a restore the DB and then start the upgrade process for NAV 2009.
I believe you are suppose to run on sql 2008 with 4.0 sp3 with latest hotfix, or 5.0 with latest hotfixes, or 5.0 sp1, or 2009 executables.
I have 4.0 sp3 not sure if latest hotfix.
Will try tomorrow. Will I have to convert database?
Cheers
Charles
](*,) ](*,) ](*,)
IMO 50gig is not enough, you need more than the size of the backup. I would set it to 100Gig.
NEVER use autogrow on the LOG file. That will have a major performance hit.
Why don't you restore direct into a NAV 2009 database? Sp2 is a garbage product and should NEVER be used on SQL. Worst case go to 4.00SP3 with CU8. Newer if possible.
You wont need to convert the database, since this is done during the restore process. you just import the old Navision backup into the new database.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I thought the original db was 50 gig, and yes, the size of the created db should be the same as the original db.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n