Warning from SQL Server stops NAV running a view based table

drecksgekritzel
Member Posts: 37
Hello everyone,
we are currently updating our customer from NAV 4.0 SP2 to NAV 2009 SP1.
The old DB runs on SQL 2000 and the new one on SQL 2008.
In our DB we have a table, which uses a view to show data from another database in NAV.
In the old DB everything works fine, but now we get a warning from the sql server when we run the table.
Unfortunately i only got the warning in german but i try to translate it:
8153,"01003",[Microsoft][ODBC SQL Server Driver][SQL Server]Warning: A NULL-Value will be deleted by an aggregate- or SET-action.
Can please someone tell me how i can set this warning off or how i can avoid it?
The sql statement in the table view is a very easy one like
select * from table xy.
Thanks in advance for your answers!
Regards Alex
we are currently updating our customer from NAV 4.0 SP2 to NAV 2009 SP1.
The old DB runs on SQL 2000 and the new one on SQL 2008.
In our DB we have a table, which uses a view to show data from another database in NAV.
In the old DB everything works fine, but now we get a warning from the sql server when we run the table.
Unfortunately i only got the warning in german but i try to translate it:
8153,"01003",[Microsoft][ODBC SQL Server Driver][SQL Server]Warning: A NULL-Value will be deleted by an aggregate- or SET-action.
Can please someone tell me how i can set this warning off or how i can avoid it?
The sql statement in the table view is a very easy one like
select * from table xy.
Thanks in advance for your answers!
Regards Alex
0
Comments
-
Don't use SELECT *. Specify each column to be returned and check for null values. Supply a blank (non null) value for any columns that return nulls.There are no bugs - only undocumented features.0
-
Hello,
i have already tried to add the ISNULL command before each column like ISNULL(Column1,0).
But i replaced every NULL with 0.
Could this be a problem too?
Is it not possible to turn this warnings completely off?
I already tried SET ANSI_WARNINGS OFF but the warning still exists.
Regards Alex0
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