Skip to main content

Modify Navision / Business Central Table Fields Data using SQL Database

Hi Readers,

In this article we will see how we can directly modify some fields data of Nav / Business Central Tables directly from SQL Server Database.

Step-(1) Run SSMS (SQL Server Management Studio) as Administrator and connect it with desired Server Name.
Step-(2) Now select the required Database then Right click on Tables >> Filter >> Filter Settings >> and filterout the table using name. For example: Customer. 
Step-(3) Select the desired table & Right click on it, then choose Edit Top 200 Rows. Data pane designer window will Open as shown below:

Step-(4) Now the above screen shows only top 200 Rows, If we want to show all records just Right click on any field of the data designer pane then select Pane >> SQL this will open the query window.
Step-(5) Now to show all records just remove Top (200) from Query and Right click on it then click on Execute SQL.

Step-(6) This Data Designer window will show all the records available in the table, you can also filterout the particular record by adding condition in query window like:

WHERE        (No_ = '10000') OR
                         (No_ = '20000')
Above mentioned query will show records whose Customer No. is 10000 or 20000 with Editable mode. And you can modify/edit any value just like i have updated Name by Kunal Blog for Customer 20000..


I hope this will helps you!!!
Thanks!! Stay connected for more articles :)

Comments

Popular posts from this blog

Flow Custom field to G/L Entry and other Posted tables : From Purchase Order to Posted Purchase invoice

Hi Readers, In this blog we will see how we can transfer data from " Purchase Header" to "Purchase Invoice Header" & "G/L Entry" table in Business Central. In this example, will create "Remarks" field on Purchase Header table and after posting, flow it to Purchase Invoice Header & G/L Entry tables: Firsly, create required fields ("Remarks") in below mentioned tables by creating table extensions: Purchase Header (38) Purch. Inv. Header (122) Gen. Journal Line (81)  G/L Entry (17) For the Purch. Inv. Header table, you can just create copy the field from purchase header and paste it in  Purch. Inv. Header  table. If the field ID No. is same for that field for both the tables then you don't have to code i.e, it automatically transfer that field data from Purch. Header to Purch. Inv. Header . Step-(1)   tableextension   50104  "Purchase Header Ext"  extends  "Purchase Header" {      fields   ...

Calculate Date : Using Date Formula and CalcDate Function in Navision/BC

 Hi Everyone, In this article we will see how we can Calculate Date by adding and subtracting No. of Days / Months based on CalcDate and DateFormula datatype. Here, I define three variables required for: (1) " No of Days " -  To define No. of Days / Months as required. You can also use these units denoted as: <Unit> = D | WD | W | M | Q | Y (D=day, WD=weekday, W=week, M=month, Q=quarter, Y=year). (2) " From Date " and " To Date "  Date type Variables to store calculated date in it. page   50103  "Date from Date Formula" {     PageType = Card;     ApplicationArea = All;     UsageCategory = Administration;     SourceTable =  Integer ;      layout     {          area( Content )         {    ...

The Txt2Al Conversion Tool: How to Export Dynamics NAV objects (.txt) and converting to AL

Hi folks, In this article, I will show you how you can use Txt2Al conversion tool that is the part of NAV 2018 and Dynamics 365 Business Central On-Premise. Using this Txt2Al conversion tool you can take existing Dynamics NAV objects that have been exported in .txt format and convert them into the new .al format and use these .al format file directly using Visual Studio Code to develop/build extensions for Dynamics 365 Business Central. Converting the NAV objects consists of following 2 steps: 1. Exporting the objects from C/SIDE [Either from Development Environment or using PowerShell Command] 2. Converting the objects to the new syntax. You can find Txt2Al tool in following location if you installed Dynamics 365 Business Central On-Premise on your machine: C:\Program Files (x86)\Microsoft Dynamics 365 Business Central\140\RoleTailored Client \Txt2Al.exe Steps to use the Txt2Al conversion tool:  Reference Step 1:  Compile your Dynamics NAV DB Step 2: ...