How to select records from SQL as it doing Navision?

elite001
Member Posts: 12
Hello everyone.. my stupid question in the subject)
How to select records from SQL (for example via ADO) as it doing Navision? And to show only some records what fits on DBGrid...
thank you))
How to select records from SQL (for example via ADO) as it doing Navision? And to show only some records what fits on DBGrid...

0
Answers
-
Hey elite001 ,
If you need to select Records based on SQL Query then obviously you need to write your code in SQL as a Stored Procedure which you can call from NAV with certain Parameters. Even if you dont want to call from NAV you can do your processing form SQL Query only and it will get reflected in NAV provided it must be a NAV Tables. Let me know if i understood something wrong.
Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/0 -
RockWithNAV wrote: »Hey elite001 ,
If you need to select Records based on SQL Query then obviously you need to write your code in SQL as a Stored Procedure which you can call from NAV with certain Parameters. Even if you dont want to call from NAV you can do your processing form SQL Query only and it will get reflected in NAV provided it must be a NAV Tables. Let me know if i understood something wrong.
thank you for answer, but it is not that i need)) real example - i have sql table that contains about 100k+ records. On form (.net project in visual studio) placed dbgrid, so, how i can select only some records that can fits in dbgrid? if i select all records from table - program dont opens until all records not loading..sorry for my english.. and stupid questions
0 -
Hey Elite,
You have 100k+ Records. you want to fetch some filtered records which can get completely fit in the grid which you have taken in Visual Studio. Now as this is a SQL Table you need to write a query either in SQL or in Visual Studio to get the filtered records. Condition for filtering you need to decide as which record you need to Filter.
Theres no any Involvement of NAV code here.Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/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