troubleshooting Question

Using Excel to update values in a SQL Server 2005 table

Avatar of nanohurtz
nanohurtz asked on
Visual Basic ClassicMicrosoft SQL Server 2005VB Script
2 Comments1 Solution2116 ViewsLast Modified:
I have a  table (dbo.tblPoint) that contain 2 columns (PiPointID and ServerName) that are populated with incorrect values. I have a spread sheet that contain the correct values for the 2221 records. Is there a VB snippet that can do the following.

1. Open up the spreadsheet (PIML.HCEROUND.08152007.DUPFIX.xls)
2. Read the 2 columns of values in the tab labeled "PIML SWAP04"
3. Make the correlation between the values in the TagName column from the spreadsheet with that of the column called "TagName" in the SQL database.
4. Update the PiPointID and ServerName column where the TagName Values are equal.

Version of SQL: 2005

Any help is greatly appreciated
ASKER CERTIFIED SOLUTION
raja_ind82

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 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 2 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