How to allow null values in a table

zaurb
Member Posts: 26
Hi!
How can I allow null values in Navision 3.7 tables. I'm writing a VB .NET application which needs to insert some parameters into a table whilst some parameters are not required. I can set "Allow null values" directly on SQL Server, but I wonder how to do that in Navision because I need to export this temp table to fob file.
Thanks!
Zaur
How can I allow null values in Navision 3.7 tables. I'm writing a VB .NET application which needs to insert some parameters into a table whilst some parameters are not required. I can set "Allow null values" directly on SQL Server, but I wonder how to do that in Navision because I need to export this temp table to fob file.
Thanks!
Zaur
Zaur Bahramov
0
Comments
-
OK. found it. It was a NotBlank property of the field set to <No>. When I've set it to No it accepted null values.
A question now is <No> is not supposed to be a default No? I mean wasn't the field supposed to accept null values by default.Zaur Bahramov0 -
The problem is I still can't insert null from T-SQL since the Allow Nulls in SQL Server table designer is still set to no. I can leave blanks from Navision and it works but, when I insert data through t-sql statement I get the same error:Cannot insert the value NULL into column 'Col2', table 'ME_Test.dbo.TestTable$Production Cycle'; column does not allow nulls. INSERT fails.Zaur Bahramov0
-
NAV does not allow null values. Even if you put null values into a column that you force to accept nulls on SQL Server directly, you will get error messages inside NAV when the app tries to ready from that table.
Null is not the same as blank. You can have blank values in NAV, but it will not accept nulls. Modify your T-SQL script to use blanks instead of nulls and you should be fine.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