Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

what is alternative for *= in sqlserver 2012 Expand / Collapse
Posted Wednesday, March 20, 2013 1:53 AM


Group: General Forum Members
Last Login: Tuesday, February 23, 2016 11:21 PM
Points: 100, Visits: 505
Recently we have migrated our projects to SQLSERVER 2012 , some of the queries has *= [syntax in where condition]now we need to convert this syntax to SQLSERVER 2012 compatible. Can anyone has any idea to resolve the problem.

Because *= will not support in SQLSERVER 2012.

Post #1433043
Posted Wednesday, March 20, 2013 1:59 AM



Group: General Forum Members
Last Login: Yesterday @ 3:53 PM
Points: 45,430, Visits: 43,777
LEFT/RIGHT OUTER JOIN is the newer join method, the older *= has been deprecated since 2005.

Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1433048
Posted Wednesday, March 20, 2013 11:18 AM



Group: General Forum Members
Last Login: Thursday, October 6, 2016 8:43 PM
Points: 7,932, Visits: 14,339
In the spirit of full disclosure, you could run databases in 80 compatibility mode on SQL 2008/R2 and still utilize the *= / =* syntax but support for 80 compatibility mode was dropped from SQL 2012 therefore you are forced to rewrite your queries to use the ANSI standard JOIN syntax.

There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Post #1433357
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse