troubleshooting Question

How to import file information from a file system into a sql server table

Avatar of jjliu4492
jjliu4492 asked on
Microsoft SQL Server 2008
9 Comments2 Solutions249 ViewsLast Modified:
I have files of type jpg, tif, and txt located on my computer, and I want to be able to import data from those files into two tables in sql server. Depending on the file type, I want to import to either one or the other table. How would I go about writing a script to do this? Also, how can I store the path of the file into the database as well?

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

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