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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP & SQL Server uniqueidentifier connundrum

Status
Not open for further replies.

ChainsawJoe

Programmer
Joined
Dec 5, 2000
Messages
154
Location
GB
hey all - I have a recordset already returned from a VB obj which I cannot change, but need to limit the records to a specific set of IDs. For this I'm using rs.filter - seems to work perfectly if I use

rs.filter = "username like 'a%'

but if I use

rs.filter = "ID in (select blahblah as ID from blah)"

where ID and blahblah are UniqueIdentifiers, then I get Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.

I know the SQL specified in the filter works, since it's fine thru SQL Query Analyser.

I believe the problem to be in how uniqueidentifiers are used thru ASP. Something's not clicking here - any clues?
 
My guess would be that the problem is going to get records from table blah. <insert witticism here>
codestorm
 
found out what it was - ASP filter doesn't support &quot;in&quot; or subqueries . . . lovely . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top