Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SET ANSI_DEFAULTS ON in Report Script

Status
Not open for further replies.

dolodolo

Technical User
May 27, 2003
86
US
Hi,

How can I set ANSI_DEFAULTs to ON in a report script in SQL Server. Here is the select statement:

SELECT
t.sfirstname,
t.slastname,
ts.status,
pm.susercode,
pm.susertype,
pr.scode

FROM pmuserex pm
INNER JOIN [jqnnbla_sandbox_2k5].jqnnbla_sandbox_2k5.dbo.tenant t on t.hmyperson = pm.hobjpointer
LEFT OUTER JOIN [jqnnbla_sandbox_2k5].jqnnbla_sandbox_2k5.dbo.property pr on pm.hproperty = pr.hmy
LEFT OUTER JOIN [jqnnbla_sandbox_2k5].jqnnbla_sandbox_2k5.dbo.tenstatus ts on ts.istatus = t.istatus

Thanks,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top