r/DatabaseHelp • u/marcus13345 • Sep 17 '15
On uploading CSV data to SQL
After searching around on the subject, i found everyone uses the local filesystem and does a bulk insert. As much as i would like to jump on that bandwagon, at my work we don't have access to the local filesystem; only the database. Am i missing something that allows uploads into the filesystem via SQL? or does everyone else also have an FTP set up?
2
Upvotes
View all comments
Show parent comment
1
u/marcus13345 Sep 17 '15
unfortunately that wouldn't be an option as im a subcontractor and have no idea where the DB will be deployed. my boss has told me to just refernce one connection string for the database so that it can be changed at will. it likely in the end wont be on the same network. i did let him know about the problem today though, hopefully he gets back to me with either an ftp/smb solution or the okay to just do row by row injection... my hope was that there was a way to pass a large blob into a stored procedure and parse through it database side, inserting row by row then.