User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MS SQL section within the Web Development category of DaniWeb, a massive community of 427,195 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,161 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS SQL advertiser: Programming Forums
Views: 512 | Replies: 2
Reply
Join Date: Feb 2008
Posts: 1
Reputation: vbobba is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
vbobba vbobba is offline Offline
Newbie Poster

Help Problem with NULL in SQL 2000

  #1  
Feb 20th, 2008
I have below query inside sp.

select groupno,a from table1
where groupno <> 'Test'

It is not returning rows where groupno is null. I did recompile sp with SET ANSI_NULLS off. But it is not working. Any suggestions? Please help

thank you
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2006
Location: Egypt
Posts: 762
Reputation: RamyMahrous is on a distinguished road 
Rep Power: 4
Solved Threads: 59
Featured Poster
RamyMahrous's Avatar
RamyMahrous RamyMahrous is offline Offline
Master Poster

Re: Problem with NULL in SQL 2000

  #2  
Feb 21st, 2008
select groupno,a from table1
where groupno <> 'Test' OR groupno is null
B.Sc Computer Science, Helwan University
Microsoft Student Partner
Personal blog http://ramymahrous.blogspot.com/
Arabic technical blog http://fci-h-ar.blogspot.com/
English technical blog http://fci-h.blogspot.com/
Reply With Quote  
Join Date: Feb 2007
Location: Bangalore,India
Posts: 1,290
Reputation: debasisdas is on a distinguished road 
Rep Power: 4
Solved Threads: 83
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Nearly a Posting Virtuoso

Re: Problem with NULL in SQL 2000

  #3  
Feb 26th, 2008
If yo want to match for two conditions then you have to specify that in the sql query.
Share your Knowledge.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb MS SQL Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the MS SQL Forum

All times are GMT -4. The time now is 10:27 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC