Is there a LookupSet equivalent in SQL Server 2008 ... NOT r2?
NickName:wgpubs Ask DateTime:2012-06-02T06:40:19

Is there a LookupSet equivalent in SQL Server 2008 ... NOT r2?

Just spent the day figuring out how to properly use the LookupSet method only to find out it isn't supported on my production database which is NOT running SQL Server 2008 R2 (it is just running ol' SQL Server 2008).

So, is there a way to re-produce the functionality so it will work with old SQL Server 2008?

Thanks - wg

Copyright Notice:Content Author:「wgpubs」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/10858190/is-there-a-lookupset-equivalent-in-sql-server-2008-not-r2

Answers
Jamie F 2012-06-05T16:50:55

As Gordon Linoff points out in the comments, this can usually be implemented in the SQL query. If the datasource for your target of the LookupSet is similar enough to the the main query, then you can accomplish this with a Common Table Expression or a correlated subquery in SQL.",


More about “Is there a LookupSet equivalent in SQL Server 2008 ... NOT r2?” related questions

Is there a LookupSet equivalent in SQL Server 2008 ... NOT r2?

Just spent the day figuring out how to properly use the LookupSet method only to find out it isn't supported on my production database which is NOT running SQL Server 2008 R2 (it is just running ol...

Show Detail

What is the Oracle stream equivalent in SQL Server 2008 R2?

What is the Oracle stream equivalent in SQL Server 2008 R2? What entities it can stream (sequences, functions, user data types)? Is there something like a "streaming plan" to set/choose?

Show Detail

Converting a SQL Server 2008 R2 database to PostGIS

I have a database in SQL Server 2008 R2 which needs to be converted into a PostGIS one. I have PostGres 9.2 installed with the PostGIS extension. What should be my next step to convert my existing...

Show Detail

SQL Server 2008 R2

I heard on the grapevine that Microsoft will be releasing SQL Server 2008 R2 within a year. Though I initially thought this was a patch for the just released 2008 version, I realised that it’s act...

Show Detail

Differences between SQL Server 2008 R2 and SQL Server 2008 R2 RTM

I wonder if there are differences between the two versions? 10.50.2500 SQL Server 2008 R2 10.50.1600 SQL Server 2008 R2 RTM

Show Detail

Downgrade SQL Server 2008 r2 to SQL Server 2008

I need to upload a .bak file to SQL Server. How can I downgrade the database from SQL Server 2008 R2 to SQL Server 2008 thanks

Show Detail

Attach SQL server 2008 R2 mdf file on SQL server 2008 database

I know that we can't restore sql server 2008 R2 .bak file on sql server 2008. But I was just wondering on whether we can attach SQL server 2008 R2 mdf file on SQL server 2008?

Show Detail

restore SQL 2008 DB R2 to SQL2008 (no r2)

on my developper pc is installed SQL 2008 R2 on the internal server is installed SQL 2008 R2 (some applications are hosted here) on the external 3.rd party hosting company uses SQL 2008 (no r2)....

Show Detail

Migration from SQL Server 2000 to SQL Server 2008 R2

Is it possible to migrate database from SQL Server 2000 Enterprise edition to SQL Server R2 Standard edition? I read some where that you can upgrade SQL Server 2000 Standard Edition to SQL Server...

Show Detail

SQL Server 2008 R2 migration to Azure

Because data can not be replicated directly from SQL Server 2008 R2 to Azure SQL Database I wonder if it is possible to replicate using replication from SQL Server 2008 R2 this way: SQL Server 2008...

Show Detail