【问题标题】:Insert txt into SQL Server将 txt 插入 SQL Server
【发布时间】:2016-03-02 19:05:01
【问题描述】:

我想在 SQL Server 2014 中添加一个 txt 文件以进行分析。 下面是来自 MixPanel 的一行 txt 文件。

{"event":"Search","properties":{"time":1445126437,"distinct_id":"S182248485740","$browser":"Chrome","$browser_version":46,"$city":"Hartlepool","$current_url":"https://flat-club.com/","$initial_referrer":"https://www.google.co.uk/","$initial_referring_domain":"www.google.co.uk","$lib_version":"2.7.1","$os":"Windows","$referrer":"https://www.google.co.uk/","$referring_domain":"www.google.co.uk","$region":"Hartlepool","$screen_height":768,"$screen_width":1366,"$search_engine":"google","ABtesting":"B","Check in date":"(21-10-2015)","Check out date":"(24-10-2015)","LoggedIn":false,"Search Location":"London, United Kingdom","Source":"homepage","Type of Stay":"Holiday","mp_country_code":"GB","mp_lib":"web"}}

我必须在 SQL Server 导入向导中进行哪些选项才能插入它们?我可以手动替换{等,但我有一个无法打开的 txt 2GB。

【问题讨论】:

    标签: sql-server tsql import


    【解决方案1】:

    我用上述软件找到了一个解决方案。这些行是 Json 格式的。我会尝试将它们插入 SQL 服务器。

    http://zappysys.com/onlinehelp/ssis-powerpack/index.htm#page=json-source.htm

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-03-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-10-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多