Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
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
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Wednesday, March 05, 2014 1:39 AM
Points: 90, Visits: 384
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: Today @ 3:30 PM
Points: 41,531, Visits: 34,448
LEFT/RIGHT OUTER JOIN is the newer join method, the older *= has been deprecated since 2005.

Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
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: Wednesday, April 16, 2014 9:25 AM
Points: 7,070, Visits: 12,523
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

Believe you can and you're halfway there. --Theodore Roosevelt

Everything Should Be Made as Simple as Possible, But Not Simpler --Albert Einstein

The significant problems we face cannot be solved at the same level of thinking we were at when we created them. --Albert Einstein

1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples. --Giordy
Post #1433357
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse