Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Other SQL Server Topics (2005)
 left outer join returns nothing in sql server 2005

Author  Topic 

psnooc
Starting Member

1 Post

Posted - 2009-04-22 : 15:36:37
This worked fine in sql server 2000.
It should return one row and does in sql query analyzer

Select Company.* , submitdate From Company Left Outer Join NewCompany On Company.Identifier = NewCompany.CompanyIdent WHERE Company.Identifier = 326

This is called from a IIS web server on win2003, or XP, or win2008.
All behave the same way.
Correctly when connected to a sql server 2000 version,
no rows returned (incorrectly) when connected to a sql server 2005 version.
Help!

nr
SQLTeam MVY

12543 Posts

Posted - 2009-04-22 : 15:52:07
Use the profiler to see what is being executed.
Also check the connection settings that are set when the connection is made.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -