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

  • SEARCH
  • Home
  • 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 8953175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:02:50+00:00 2026-06-15T14:02:50+00:00

I have a code in the stored procedure and it needs to join on

  • 0

I have a code in the stored procedure and it needs to join on a comma-deli string column. I tried but it is failing to recognized by sql server. Please let me know the right approach for it. Here is the code from the sproc:

INSERT INTO CPE_EXT_Downloaded (FileName, LocalServerID, WaitingACK, CreationDate, FileSize, MD5, ErrorMsgTime, LocationID, OfferID)  
    SELECT 
       cip.FileName, LS.LocalServerID, cip.WaitingACK, cip.CreationDate, 
       cip.FileSize, cip.MD5, cip.ErrorMsgTime, ILV.LocationID, cip.OfferID   
    FROM 
       @WorkSet ws       
    INNER JOIN 
       CPE_IncentiveDLBuffer_Pending cip WITH (NOLOCK) ON cip.POID = ws.POID
    INNER JOIN 
       CPE_IncentiveLocationsView AS ILV WITH (NOLOCK) ON ILV.IncentiveID = cip.OfferID 
    INNER JOIN 
       LocalServers AS LS WITH (NOLOCK) ON LS.LocationID = ILV.LocationID  
    CROSS APPLY on 
       dbo.split(cip.LocationGroups, ',') AS ST ON st.items = ILV.LocationID
    WHERE
       LS.MustIPL = 0 
  • 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-06-15T14:02:52+00:00Added an answer on June 15, 2026 at 2:02 pm

    Have you considered doing a regular join instead?

            FROM @WorkSet ws       
            INNER JOIN CPE_IncentiveDLBuffer_Pending cip WITH (NOLOCK)
            on cip.POID = ws.POID
            inner join  CPE_IncentiveLocationsView as ILV WITH (NOLOCK)
            on ILV.IncentiveID= cip.OfferID and
               ','+cip.LocationGroups+',' like '%,'+ILV.LocationId+',%'
            Inner Join LocalServers as LS with (NoLock) on LS.LocationID=ILV.LocationID  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a T-SQL stored procedure join which I need to convert to a
I have the following code within a stored procedure. WHERE WPP.ACCEPTED = 1 AND
I have ADO.Net code as below, that calls a stored procedure. Within the stored
I have a stored procedure that uses this select statement: SELECT dbo.VendorProgram.id, dbo.VendorProgram.CODE, dbo.Programs.ProgramName
I have a stored procedure in SQL Server that returns some data via a
I'm writing a stored procedure that needs to have a lot of conditioning in
I have a stored procedure that needs to set a save point so that
I have a stored procedure in mysql thats to perform a task that needs
I have a stored procedure which takes as its parameter a varchar which needs
I have a stored procedure which has more than 2000 lines of code .I

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.