Skip to main content

Posts

Showing posts with the label database

Steps to Restore an AX Database

In support we ask customers for backups of their databases to investigate issues that do not occur in the demo data.  We usually also request a copy of their application files so the code files match the database.  Below are the steps I take to get the database backup and application files in a working state in my environment.  If you need more than the AX client and AOS to work with the customer's database, for example if you need to test batch servers, EP or SSRS with the customer's files, have a look at this article as it covers some of those more fringe scenarios: http://blogs.msdn.com/b/emeadaxsupport/archive/2010/02/17/reformatted-checking-database-entries-after-restoring-a-microsoft-dynamics-2009-sql-database-to-another-domain-or-environment.aspx Pre-requisites In my existing environment I have a running instance of AX 2009 that is on sp1.  If the customer is on AX 2009 I assume the customer is on sp1 since most are.  The AOS, SQL server and AX ...

Ax Database Configuration Checklist part 1

Welcome to the Dynamics Ax Performance Team's blog. We're putting together a team introduction and hope to have it posted within the next week or so. The first entries will discuss SQL Server 2005 configuration and Best Practices for Dynamics Ax, but we'll be covering a much wider range of topics over the coming months, such as Dynamics AOS configuration, X++ profiling, and leveraging new features of SQL Server 2008. My name is David Reinhold and I specialize in SQL Server database and BI performance. I spent nine years in Microsoft Consulting Services (MCS) practice before joining the Ax Performance Team in December, 2007. Here is the Part 1 of the Database Configuration Checklist, covering configuration of: Operating System performance settings, SQL Server 2005/2008 Service configuration, and SQL Server 2005/2008 Instance configuration (updated to include special considerations for Windows Server 2008). The format of the Checklist includes instructions on How to che...

Connect External Data Base in Dynamics Ax 2009

This is the example to connect the External Database to Ax void ODBCConnection() { LoginProperty LP = new LoginProperty(); OdbcConnection myConnection; TableName TableName; Statement myStatement; ResultSet myResult; #define.Constring(“DSN=DSNNAME;UID=USERID;PWD=PASSWORD“) try { LP.setOther(#Constring); myConnection = new OdbcConnection(LP); } catch { info(“Check username/password.”); return; } myStatement = myConnection.createStatement(); new SqlStatementExecutePermission(“SELECT * from TableNamewhere bImportflag = 0″).assert(); myResult = myStatement.executeQuery(“SELECT * from TableNamewhere bImportflag = 0″); CodeAccessPermission::revertAssert(); while (myResult.next()) { TableName.nMember = Member; TableName.tMemberName = MembName; TableName.tMemberAddress = Address; TableName.tRescountry = Country; TableName.tRes...