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 6082767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:19:34+00:00 2026-05-23T11:19:34+00:00

In my SQL Server 2008 DB, I have a table with records sort of

  • 0

In my SQL Server 2008 DB, I have a table with records sort of like this:

ID 1 | Group1 | \ftp\path\group1\file1.txt
ID 2 | Group1 | C:\local\file\path\group1\file1.txt
ID 3 | Group1 | C:\local\file\path\group1\file1.txt
ID 4 | Group1 | C:\local\file\path\group1\file1.txt
ID 5 | Group2 | \ftp\path\group2\file1.txt
ID 6 | Group2 | C:\local\file\path\group2\file1.txt
ID 7 | Group2 | C:\local\file\path\group2\file1.txt

I need to update the table to look like this:

ID 1 | Group1 | \ftp\path\group1\file1.txt
ID 2 | Group1 | \ftp\path\group1\file1.txt
ID 3 | Group1 | \ftp\path\group1\file1.txt
ID 4 | Group1 | \ftp\path\group1\file1.txt
ID 5 | Group2 | \ftp\path\group2\file1.txt
ID 6 | Group2 | \ftp\path\group2\file1.txt
ID 7 | Group2 | \ftp\path\group2\file1.txt

I just don’t know how to start this. It’s easy for me to find the values in the third column, because they match this wildcard: %:\%.

So, I’m trying to replace the value in those fields that match that wildcard with the correct value in a record that does not match that wildcard. Damn, it’s so hard to explain it.

I’m probably doing a poor job of explaining this issue but the right words are eluding me at the moment.

Any ideas? I appreciate the help.

  • 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-23T11:19:35+00:00Added an answer on May 23, 2026 at 11:19 am

    Something like this maybe?

    UPDATE table
    SET table.valueColumn = CT.correctValueColumn
    FROM table as CT
        INNER JOIN table as IT on IT.group = CT.group AND CT.valueColumn LIKE '%:\%'
    WHERE IT.valueColumn NOT LIKE '%:\%'
    

    I don’t have management studio on this machine so I’m not sure it’s syntatically correct.

    Hope this helps some.

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

Sidebar

Related Questions

I have SQL Server 2008 with a table called ProductCategories designed like this: Id
In SQL Server 2008, I have table with records like these, Name ---- John
I have this table in a SQL Server 2008 R2 instance which I have
I have a table in a database on my development(local workstation) SQL Server 2008
I have a SQL Server 2008 R2 database table with 12k address records where
I'm using SQL Server 2008. I have a table with over 3 million records,
I have a table in Sql Server 2008 Express which contains 18 million records.
I am using sql server 2008. I have to insert records in temporary table
I have a table in a SQL Server 2008 database. This table has a
I have about 5000 records in a table in SQL Server 2008 I need

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.