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
Author
Message
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, July 23, 2014 10:49 PM
Points: 90, Visits: 388
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.

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


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 3:09 PM
Points: 40,172, Visits: 36,560
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


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 5:14 PM
Points: 7,125, Visits: 12,719
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