隨筆-8  評論-20  文章-4  trackbacks-0
          --啟用Ad Hoc Distributed Queries:
          --
          exec sp_configure 'show advanced options',1
          --
          reconfigure
          --
          exec sp_configure 'Ad Hoc Distributed Queries',1
          --
          reconfigure
          --
          使用完成后,關閉Ad Hoc Distributed Queries:
          --
          exec sp_configure 'Ad Hoc Distributed Queries',0
          --
          reconfigure
          --
          exec sp_configure 'show advanced options',0
          --
          reconfigure

          SELECT * into ddd
          FROM OpenDataSource'Microsoft.Jet.OLEDB.4.0',
            
          'Data Source="c:\test.xls";User ID=Admin;Password=;Extended properties=Excel 5.0')[Sheet1$]
          posted on 2009-12-14 15:26 ju 閱讀(230) 評論(0)  編輯  收藏 所屬分類: 數據庫
          主站蜘蛛池模板: 科技| 扬中市| 大田县| 墨竹工卡县| 龙井市| 伊春市| 寿光市| 焉耆| 墨竹工卡县| 渑池县| 崇文区| 新竹县| 攀枝花市| 新乡市| 闻喜县| 改则县| 舞阳县| 文成县| 台北县| 定陶县| 房产| 舟曲县| 新和县| 宣恩县| 颍上县| 台南县| 农安县| 冷水江市| 临泽县| 罗田县| 班戈县| 吕梁市| 义马市| 会理县| 陕西省| 遵义市| 龙州县| 年辖:市辖区| 宝坻区| 田东县| 都安|