ArticlesReader.com Menu
Newest Articles
Most Viewed Articles
ArticlesReader.com RSS
Submit Article
Login
Signup
Search the articles

Articles Main Categories
Advice
Animals
Automobiles
Business
Career
Communications
Computer Programming
Computers
Entertainment
Environment
Family
Fashion
Finance
Food
Health & Medical
Home & Garden
Humor
Internet Business
Internet Marketing
Legal
Leisure & Recreation
Marketing
Other
Politics
Reference & Education
Religion
Self Improvement
Sports
Technology & Science
Travel
Writing
Subscribe
Receive alert message from us when new articles submitted to our site for free.

Enter your name

Enter your email

Syndicate

















Related Products
Home::Software

Navision Attain C/ODBC Crystal Report – Customization Example

Author : Boris Makushkin

Microsoft Business Solutions Navision is main ERP application for European, Brazilian markets plus it serves vertical segments of the USA market, such as light manufacturing, POS, CRM. As our experience indicates – Navision implementation requires more customization and tuning in comparison to another mid-market ERP solution from MBS: Microsoft Great Plains. Our goal is to popularize Microsoft Business Solutions products and enlighten IT people to do customize Navision in-house.

Today, the main topic of this article is working with native C/SIDE Navision Attain database via C/ODBC interface, in particular – Linked Server creation in Microsoft SQL Server 2000 environment and then Sales report design in Crystal Reports ver. 10. Let’s begin:

1. We will use Navision Attain 3.6 with Navision Database Server, Navision ApplicationServer and Navision Client. These component are installed on Windows XP Professional. To enable C/ODBC interface you need to install this component from Navision Attain CD.

2. Let’s create ODBC DSN for connection to Navision database: Start -> Control Panel -> Administrative Tools -> Data Sources (ODBC), then switch to System DSN and click Add. We will use C/ODBC 32-bit driver. Give Data Source Name Navision, Connection – leave it Local. As the database (Database button) select \Program Files\Navision Attain\Client\database.fdb (this is demo DB). Then press Company button – in our case we use CRONUS demo database. Important conditions to provide proper connection with C/SIDE database are correct options for C/ODBC. Click Options button and look at the options available – we will pay attention to Identifiers screen – this is where you setup identifiers to be transferred to client application. We will use these types: “a-z,A-Z,0-9,_” to make MS SQL Server 2000 work correct with C/ODBC source. We are now done with ODBC DSN. Lets setup Linked Server

3. Open SQL Server Enterprise Manager. Open object browser on the left side, select Security and Linked Servers. With right click select New Linked Server in the context menu. In the emerging dialog window, in the menu Provider Name select Microsoft OLE DB Provider for ODBC Drivers. Let’s name our Linked Server as NAVISION. In the Data Source string type in ODBC DSN name – NAVISION in our case. Linked Server is ready. Select tables list and we now see Navision Attain tables.
4. Now we need to create small procedure for Sales data extraction. Here is the text of the procedure:
CREATE PROCEDURE NavisionSalesReport AS

DBCC TRACEON(8765)

SELECT * FROM OPENQUERY(NAVISION, 'SELECT * FROM Sales_Line sls, Customer cust WHERE sls.Sell_to_Customer_No_ = cust.No_')

RETURN

GO

To clarify its text: TRACEON(8765) directive allows working with the data results of variable length returned by C/ODBC driver. If we don’t use this directive – we can’t pull the results from Navision tables – we will get errors, like this:

OLE DB error trace [Non-interface error: Unexpected data length returned for the column: ProviderName='MSDASQL', TableName='[MSDASQL]', ColumnName='Ship_to_Filter', ExpectedLength='250', ReturnedLength='1'].
Server: Msg 7347, Level 16, State 1, Line 1
OLE DB provider 'MSDASQL' returned an unexpected data length for the fixed-length column '[MSDASQL].Ship_to_Filter'. The expected data length is 250, while the returned data length is 1.

OPENQUERY statement opens linked server and transfers its SQL command, and in its turn returns the result set. To test the procedure type in this command in SQL Server Query Analyzer: EXEC NavisionSalesReport
5. Now – launch Crystal Reports, use standard Wizard, create new OLE DB (ADO) connection with our MS SQL 2000 Server and select NavisionSalesReport procedure in the list. As the report fields we can use Description, Quantity, Line_Amount and Discount_Amount fields. You can group by name Name – this is customer name. Our report is now ready!
Happy customizing, implementing and modifying! If you want us to do the job - give us a call 1-866-528-0577 or 1-630-961-5918! help@albaspectrum.com

Boris Makushkin is Lead Software Developer in Alba Spectrum Technologies – USA nationwide Microsoft CRM, Microsoft Great Plains customization company, serving Chicago, Boston, San Francisco, San Diego, Los Angeles, Houston, Dallas, Atlanta, Miami, Montreal, Toronto, Vancouver, Moscow, Europe and internationally (http://www.albaspectrum.com), he is Microsoft CRM SDK, Navision, C#, VB.Net, SQL, Oracle, Unix developer.

Spam emails More free articles

Related articles


  1. Scrap Booking Online: Word Perfect or Corel Graphics Suite?
  2. Great Plains Dexterity Customization Options – Overview For Developers
  3. Microsoft Great Plains Security Setup - Overview For Consultant
  4. Microsoft Great Plains Implementation: Collection Management – Overview For Consultant
  5. Best Spyware Removers
  6. Monitoring Software Can be Used for Spying as Well
  7. Beware of Spyware
  8. Microsoft CRM Integration & Customization: SharePoint Document Gateway
  9. Adware, What Is It?
  10. Microsoft CRM Modification – Overview for IT Specialist
  11. Reporting Tools for Microsoft Great Plains – Overview For Developers
  12. Microsoft Great Plains Upgrade – Things to Consider and FAQ
  13. Great Plains Dexterity History and Programming Overview
  14. Microsoft Great Plains on Ctree or Pervasive SQL – What to Do – Tips for IT Manager
  15. Microsoft Business Solutions VAR/Partner Selection – Overview for IT Director/Manager/Controller
  16. Great Plains Accounting Migration to Microsoft Great Plains - Overview for IT Specialist
  17. Microsoft Great Plains Data Conversion – Overview For Developer
  18. Great Plains Dynamics/eEnterprise Upgrade – Things to Consider and FAQ
  19. Crystal Reports - Geterogeneus databases: SQL Server, Oracle, Unidata, Btrieve – Tips For Developer
  20. Great Plains Dexterity Programming – Overview For Developer
  21. Great Plains Custom Development: Dexterity, VBA, SQL, Crystal, eConnect – Overview For Programmer
  22. How To Create A Data Capture Procedure Checklist For Your Small Business CRM Software
  23. Chinese Input - Step by Step Instruction on How to Input Chinese Characters in English Windows XP
  24. Microsoft Great Plains - Payroll & HR Inexpensive Solution? Not Any More
  25. 20 Extra Hours Per Week: What Would You Do?
More related feeds
navision attain c/odbc crystal report - customization example
today, the main topic of this article is working with native c/side navision attain database via c/odbc interface, in particular - linked server creation in microsoft sql server 2000 environment and then sales report design in crystal ...

computer: Navision Attain Database access via C/ODBC in ASP.NET ...
In our case we will use Navision Attain 3.6 with Navision Database Server, Navision Application Server and Navision Client. These components are installed on Windows XP. You also need to install C/ODBC component form Navision Attain CD. ...

Angeln Urlaub: Microsoft Navision Database Selection CSIDE or MS ...
Do you organisation on Crystal Reports? - you crapper ever deploy C/ODBC to enable your C/SIDE database for Crystal Report, but MS SQL Server has much pleasant features, as SQL Views and Stored Procedures, which attain SQL Server ...

navision attain c/odbc crystal report - customization example
navision attain c/odbc crystal report - customization example. microsoft business solutions navision is main erp application for european, brazilian markets plus it serves vertical segments of the usa market, such as light manufacturing ...

computer: Microsoft Great Plains on Ctree or Pervasive SQL - What ...
Navision Attain Database access via C/ODBC in ASP.... Navision Attain C/ODBC Crystal Report - Customizat... Unwanted Files Β· Dig Out That Worm Β· What is Spyware? Are You Being Watched? Inherent Dangers Of File Sharing Via The Internet. ...

computer: Microsoft CRM Integration with Microsoft Retail ...
Microsoft CRM is currently integrated with Microsoft Great Plains and will be integrated with Microsoft Navision in the close future, RMS integration is not planned to our knowledge, so you should seek third party solutions or create ...

computer: Five Band Resistor Color Code-What Does The Last Band Of ...
For example in order to get the value of 22.6kohm, with four colors band resistor you will not be able to find it. The most you can get is 22k (red,red,orange and gold). If with the five color band you will be able to calculate it (red, ...

computer: Oracle Development: JDeveloper 10G - Java, J2EE, EJB ...
Microsoft Great Plains Multicurrency - Overview Fo... Oracle Development: JDeveloper 10G - Java, J2EE, E... Navision Attain Database access via C/ODBC in ASP.... Navision Attain C/ODBC Crystal Report - Customizat. ...

computer: Routing, Routed, and Non-Routable Protocols
The routing protocol also specifies how routers in a network share information with each other and report changes. The routing protocol enables a network to make dynamic adjustments to its conditions, so routing decisions do not have to ...

 


 

© 2007 articlesreader.com - All Rights Reserved