Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 231111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:54:21+00:00 2026-05-11T19:54:21+00:00

Is there a way to further restrict the lookup performed by a database lookup

  • 0

Is there a way to further restrict the lookup performed by a database lookup functoid to include another column?

I have a table containing four columns.

Id (identity not important for this)
MapId int
Ident1 varchar
Ident2 varchar

I’m trying to get Ident2 for a match on Ident1 but wish it to only lookup where MapId = 1.

The functoid only allows the four inputs any ideas?

UPDATE

It appears there is a technique if you are interested in searching across columns that are string data types. For those interested I found this out here…

Google Books: BizTalk 2006 Recipes

Seeing as I wish to restrict on a numberic column this doesn’t work for me. If anyone has any ideas I’d appreciate it. Otherwwise I may need to think about my MapId column becoming a string.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T19:54:21+00:00Added an answer on May 11, 2026 at 7:54 pm

    I changed the MapId to MapCode of type char(3) and used the technique described in the book I linked to in the update to the original question.

    The only issue I faced was that my column collations where not in line so I was getting an error from the SQL when they where concatenated in the statement generated by the map.

    exec sp_executesql N'SELECT * FROM IdentMap WHERE MapCode+Ident1= @P1',N'@P1 nvarchar(17)',N'<MapCode><Ident2>'
    

    Sniffed this using the SQL Profiler

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way I can get VS2008 to provide further detail on how
Is there way to copy a file into Plone with WebDAV and have Plone
Is there way to set @include mixin(); to variable? I tried this @mixin bg-gradient($fallback,
Is there any way in Notepad++ (or even with another tool) to change the
is there any way, to restrict hibernate not to create connection of its own(what
I have two very large enterprise tables in an Oracle 10g database. One table
I'm assuming this isn't possible but before digging further is there a way to
Is there a way to constrain one type parameter to be derived from another?
Is there a way to further constrain the context of an existing type class?
Is there any way to resubmit an open graph action for further permissions after

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.