simplest way to do a recurring text file upload to sql server

前端 未结 3 1303
灰色年华
灰色年华 2021-01-24 01:17

i have a TAB DELIMITTED log file where new data in this log file needs to be dumped into a sql server 2008 database. i am wondering what is the best way to automate this? is the

3条回答
  •  走了就别回头了
    2021-01-24 01:31

    I would use SSIS (if available) and automate through that: http://msdn.microsoft.com/en-us/library/dd440761%28v=sql.100%29.aspx

    Failing that, you could do a joined process of [scripting language of choice] + SSIS to have something watching the correct folder for the specific file and then have that kick off the SSIS package.

    If SSIS is not available at all, then you're stuck with parsing out the file in code, and turning that into insert/update statements or calls to a stored proc that will do the same.

提交回复
热议问题