troubleshooting Question

I need a sql script or c# code to update a column in a table

Avatar of rthriller
rthrillerFlag for France asked on
.NET ProgrammingMicrosoft SQL Server 2005
3 Comments1 Solution211 ViewsLast Modified:
Hello

I am using a program that stores pathes to some data on a column called pathes in a table called storage.

This program was storing it's data in c: and all the rows contain something like "c:\program files\thesoftware\storage\data\body####.bin" where #### is a number.

Now my c: is getting full, so I moved the data to "e:\thesoftware\storage\data\body####.bin"

how can I change all the rows in the table to let it point to the files in "e:" instead of "c:\program files"

i.e.   "c:\program files\thesoftware\storage\data\body1548.bin" ==> "e:\thesoftware\storage\data\body1548.bin"

I need an sql script or some c# code.

Thank you
ASKER CERTIFIED SOLUTION
Aneesh
Database Consultant
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros