pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

      <i id='Fd3w7'><tr id='Fd3w7'><dt id='Fd3w7'><q id='Fd3w7'><span id='Fd3w7'><b id='Fd3w7'><form id='Fd3w7'><ins id='Fd3w7'></ins><ul id='Fd3w7'></ul><sub id='Fd3w7'></sub></form><legend id='Fd3w7'></legend><bdo id='Fd3w7'><pre id='Fd3w7'><center id='Fd3w7'></center></pre></bdo></b><th id='Fd3w7'></th></span></q></dt></tr></i><div class="xkbkxjk" id='Fd3w7'><tfoot id='Fd3w7'></tfoot><dl id='Fd3w7'><fieldset id='Fd3w7'></fieldset></dl></div>
      <tfoot id='Fd3w7'></tfoot>
    1. <legend id='Fd3w7'><style id='Fd3w7'><dir id='Fd3w7'><q id='Fd3w7'></q></dir></style></legend>
        • <bdo id='Fd3w7'></bdo><ul id='Fd3w7'></ul>

        <small id='Fd3w7'></small><noframes id='Fd3w7'>

        為什么在 sql server 2005 中使用 xml 時(shí)必須將 ARITH

        Why do I have to SET ARITHABORT ON when using xml in sql server 2005?(為什么在 sql server 2005 中使用 xml 時(shí)必須將 ARITHABORT 設(shè)置為 ON?)
      1. <small id='0mtie'></small><noframes id='0mtie'>

            <bdo id='0mtie'></bdo><ul id='0mtie'></ul>

            <legend id='0mtie'><style id='0mtie'><dir id='0mtie'><q id='0mtie'></q></dir></style></legend>
              <tfoot id='0mtie'></tfoot>

                <tbody id='0mtie'></tbody>
                • <i id='0mtie'><tr id='0mtie'><dt id='0mtie'><q id='0mtie'><span id='0mtie'><b id='0mtie'><form id='0mtie'><ins id='0mtie'></ins><ul id='0mtie'></ul><sub id='0mtie'></sub></form><legend id='0mtie'></legend><bdo id='0mtie'><pre id='0mtie'><center id='0mtie'></center></pre></bdo></b><th id='0mtie'></th></span></q></dt></tr></i><div class="cruaosn" id='0mtie'><tfoot id='0mtie'></tfoot><dl id='0mtie'><fieldset id='0mtie'></fieldset></dl></div>
                • 本文介紹了為什么在 sql server 2005 中使用 xml 時(shí)必須將 ARITHABORT 設(shè)置為 ON?的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  限時(shí)送ChatGPT賬號(hào)..

                  為什么在 sql server 2005 中使用 xml 時(shí)必須將 ARITHABORT 設(shè)置為 ON?我試著研究為什么我必須設(shè)置這個(gè),但找不到告訴我原因的答案.只是它需要設(shè)置.

                  Why do I have to SET ARITHABORT ON when using xml in sql server 2005? I tried researching why I have to set this but couldn't find an answer that told me why. Only that it needs to be set.

                  這是我取出 SET ARITHABORT ON 行時(shí)得到的具體錯(cuò)誤信息:

                  Here is the specific error message I get when I take out the SET ARITHABORT ON line:

                  參數(shù)錯(cuò)誤:無法解析插入列表 - 插入失敗因?yàn)橐韵?SET 選項(xiàng)的設(shè)置不正確:'ARITHABORT'.驗(yàn)證 SET 選項(xiàng)是否正確用于索引計(jì)算列和/或查詢通知上的視圖和/或索引和/或 xml 數(shù)據(jù)類型方法.

                  PARAMETER ERROR: INSERT LIST COULD NOT BE PARSED - INSERT failed because the following SET options have incorrect settings: 'ARITHABORT'. Verify that SET options are correct for use with indexed views and/or indexes on computed columns and/or query notifications and/or xml data type methods.

                  我的存儲(chǔ)過程在一種環(huán)境中使用 odbc 從 asp.net 調(diào)用運(yùn)行良好.然后當(dāng)我將它移到另一個(gè)時(shí),我不得不在存儲(chǔ)過程的開頭添加 SET ARITHABORT ON.我在下面包含了存儲(chǔ)過程的相關(guān)部分.以及調(diào)用它的代碼.

                  My stored procedure worked fine called from asp.net using odbc in one environment. Then when I moved it to another, I had to add SET ARITHABORT ON in the beginning of the stored procedure. I include the relevant sections of the stored procedure below. And the code that is calling it.

                  CREATE PROCEDURE [dbo].[myproc]
                     @ruserid             varchar(8),
                     @folder_list         xml,
                     @insert_list         xml
                  AS
                  
                  SET NOCOUNT ON
                  SET ARITHABORT ON
                  
                  DECLARE @rindex integer
                  DECLARE @errormsg nvarchar(4000)
                  DECLARE @folder_cnt integer
                  DECLARE @insert_cnt integer
                  
                  
                  SET @rindex = -1
                  
                  -- temp table to hold inserts
                  CREATE TABLE #insert_list (rowidx integer IDENTITY(1,1), insertdesc varchar(96) COLLATE database_default, insertfolder integer)
                  
                  -- temp table to hold folders
                  CREATE TABLE #folder_list (rowidx integer IDENTITY(1,1), folderdesc varchar(144) COLLATE database_default, insertfolder integer)
                  
                  -- insert inserts to make sure data is compatible in type
                  BEGIN TRY
                     INSERT INTO #insert_list (insertdesc, insertfolder)
                     SELECT insert_list.listitem.value('@insertdesc', 'varchar(96)'), insert_list.listitem.value('@insertfolder', 'integer')
                     FROM @insert_list.nodes('/Root/Insert') AS insert_list(listitem)
                  END TRY
                  BEGIN CATCH
                     SET @errormsg = N'PARAMETER ERROR: INSERT LIST COULD NOT BE PARSED - ' + ERROR_MESSAGE()
                     RAISERROR(@errormsg, 16, 1)
                     RETURN
                  END CATCH
                  
                  -- insert folders to make sure data is compatible in type
                  BEGIN TRY
                     INSERT INTO #folder_list (insertfolder, folderdesc)
                     SELECT folder_list.listitem.value('@insertfolder', 'integer'), folder_list.listitem.value('@folderdesc', 'varchar(144)')
                     FROM @folder_list.nodes('/Root/Folder') AS folder_list(listitem)
                  END TRY
                  BEGIN CATCH
                     SET @errormsg = N'PARAMETER ERROR: FOLDER LIST COULD NOT BE PARSED - ' + ERROR_MESSAGE()
                     RAISERROR(@errormsg, 16, 1)
                     RETURN
                  END CATCH
                  
                  -- insert rows
                  BEGIN TRANSACTION
                  
                  BEGIN TRY
                  
                  INSERT INTO my_folder_request (ruserid)
                  VALUES ( @ruserid )
                  
                  SET @rindex = SCOPE_IDENTITY()
                  
                  INSERT INTO my_insert_request (rindex, insertdesc, insertfolder)
                  SELECT @rindex, #insert_list.insertdesc, #insert_list.insertfolder
                  FROM #insert_list
                  ORDER BY #insert_list.rowidx
                  
                  INSERT INTO my_folder_desc (rindex, insertfolder, folderdesc)
                  SELECT @rindex, #folder_list.insertfolder, #folder_list.folderdesc
                  FROM #folder_list
                  ORDER BY #folder_list.rowidx
                  
                  END TRY
                  BEGIN CATCH
                     IF @@TRANCOUNT > 0
                        ROLLBACK TRANSACTION
                     SET @errormsg = N'DATA INSERTION FAILED WITH MESSAGE - ' + ERROR_MESSAGE()
                     RAISERROR(@errormsg, 16, 1)
                     RETURN
                  END CATCH
                  
                  IF @@TRANCOUNT > 0
                     COMMIT TRANSACTION
                  
                  -- return result
                  SELECT @rindex AS rindex
                  
                  DROP TABLE #insert_list
                  DROP TABLE #folder_list
                  
                  GO           
                  

                  調(diào)用代碼

                    ' build odbc command for inserting creation request
                    intRequestIndex = 0
                    cmdAddRequest = New System.Data.Odbc.OdbcCommand
                    cmdAddRequest.CommandType = CommandType.StoredProcedure
                    cmdAddRequest.CommandTimeout = 60
                    cmdAddRequest.CommandText = "{CALL myproc ( ?, ?, ?)}"
                  
                    ' add parameters to odbc command
                    cmdAddRequest.Parameters.Add("@ruserid", OdbcType.VarChar, 8).Value = SafeODBCParamString(m_strUID)
                    cmdAddRequest.Parameters.Add("@folder_list", OdbcType.NText).Value = System.Text.Encoding.Unicode.GetString(strmFolderList.ToArray())
                    cmdAddRequest.Parameters.Add("@insert_list", OdbcType.NText).Value = System.Text.Encoding.Unicode.GetString(strmInsertList.ToArray())
                  
                    ' run odbc command returning info about results
                    cmdAddRequest.Connection = Me.ODBCConnection()
                    Try
                       rdrRequestData = cmdAddRequest.ExecuteReader(CommandBehavior.CloseConnection) 
                  

                  推薦答案

                  我認(rèn)為網(wǎng)上書籍中的這句話暗示了它:當(dāng)您在計(jì)算列或索引上創(chuàng)建或更改索引時(shí),SET ARITHABORT 必須為 ON意見."所以節(jié)點(diǎn)方法必須在內(nèi)部創(chuàng)建索引視圖或其他東西.但這只是一個(gè)有根據(jù)的猜測(cè).

                  I'm thinking this statement from books online kind of hints at it: "SET ARITHABORT must be ON when you are creating or changing indexes on computed columns or indexed views." So the nodes method must be creating an indexed view internally or something. But this is just an educated guess.

                  這篇關(guān)于為什么在 sql server 2005 中使用 xml 時(shí)必須將 ARITHABORT 設(shè)置為 ON?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Can I figure out a list of databases and the space used by SQL Server instances without writing SQL queries?(我可以在不編寫 SQL 查詢的情況下找出數(shù)據(jù)庫(kù)列表和 SQL Server 實(shí)例使用的空間嗎?) - IT屋-程序員軟件開發(fā)
                  How to create a login to a SQL Server instance?(如何創(chuàng)建對(duì) SQL Server 實(shí)例的登錄?)
                  How to know the version and edition of SQL Server through registry search(如何通過注冊(cè)表搜索知道SQL Server的版本和版本)
                  Why do I get a quot;data type conversion errorquot; with ExecuteNonQuery()?(為什么會(huì)出現(xiàn)“數(shù)據(jù)類型轉(zhuǎn)換錯(cuò)誤?使用 ExecuteNonQuery()?)
                  How to show an image from a DataGridView to a PictureBox?(如何將 DataGridView 中的圖像顯示到 PictureBox?)
                  WinForms application design - moving documents from SQL Server to file storage(WinForms 應(yīng)用程序設(shè)計(jì)——將文檔從 SQL Server 移動(dòng)到文件存儲(chǔ))
                  <legend id='ViLl6'><style id='ViLl6'><dir id='ViLl6'><q id='ViLl6'></q></dir></style></legend><tfoot id='ViLl6'></tfoot>

                      <bdo id='ViLl6'></bdo><ul id='ViLl6'></ul>

                        • <i id='ViLl6'><tr id='ViLl6'><dt id='ViLl6'><q id='ViLl6'><span id='ViLl6'><b id='ViLl6'><form id='ViLl6'><ins id='ViLl6'></ins><ul id='ViLl6'></ul><sub id='ViLl6'></sub></form><legend id='ViLl6'></legend><bdo id='ViLl6'><pre id='ViLl6'><center id='ViLl6'></center></pre></bdo></b><th id='ViLl6'></th></span></q></dt></tr></i><div class="prxljoy" id='ViLl6'><tfoot id='ViLl6'></tfoot><dl id='ViLl6'><fieldset id='ViLl6'></fieldset></dl></div>
                        • <small id='ViLl6'></small><noframes id='ViLl6'>

                            <tbody id='ViLl6'></tbody>
                            主站蜘蛛池模板: 上海瑶恒实业有限公司|消防泵泵|离心泵|官网 | 上海刑事律师|刑事辩护律师|专业刑事犯罪辩护律师免费咨询-[尤辰荣]金牌上海刑事律师团队 | 细沙回收机-尾矿干排脱水筛设备-泥石分离机-建筑垃圾分拣机厂家-青州冠诚重工机械有限公司 | 胶水,胶粘剂,AB胶,环氧胶,UV胶水,高温胶,快干胶,密封胶,结构胶,电子胶,厌氧胶,高温胶水,电子胶水-东莞聚力-聚厉胶粘 | 布袋除尘器-单机除尘器-脉冲除尘器-泊头市兴天环保设备有限公司 布袋除尘器|除尘器设备|除尘布袋|除尘设备_诺和环保设备 | 深圳美安可自动化设备有限公司,喷码机,定制喷码机,二维码喷码机,深圳喷码机,纸箱喷码机,东莞喷码机 UV喷码机,日期喷码机,鸡蛋喷码机,管芯喷码机,管内壁喷码机,喷码机厂家 | 合肥网络推广_合肥SEO网站优化-安徽沃龙First | 彭世修脚_修脚加盟_彭世修脚加盟_彭世足疗加盟_足疗加盟连锁_彭世修脚技术培训_彭世足疗 | PCB设计,PCB抄板,电路板打样,PCBA加工-深圳市宏力捷电子有限公司 | 破碎机锤头_合金耐磨锤头_郑州宇耐机械工程技术有限公司 | LED投光灯-工矿灯-led路灯头-工业灯具 - 山东普瑞斯照明科技有限公司 | 健身器材-健身器材厂家专卖-上海七诚健身器材有限公司 | 河南空气能热水器-洛阳空气能采暖-洛阳太阳能热水工程-洛阳润达高科空气能商行 | 微水泥_硅藻泥_艺术涂料_艺术漆_艺术漆加盟-青岛泥之韵环保壁材 武汉EPS线条_EPS装饰线条_EPS构件_湖北博欧EPS线条厂家 | YAGEO国巨电容|贴片电阻|电容价格|三星代理商-深圳市巨优电子有限公司 | 细砂提取机,隔膜板框泥浆污泥压滤机,螺旋洗砂机设备,轮式洗砂机械,机制砂,圆锥颚式反击式破碎机,振动筛,滚筒筛,喂料机- 上海重睿环保设备有限公司 | 全温度恒温培养摇床-大容量-立式-远红外二氧化碳培养箱|南荣百科 | 塑料脸盆批发,塑料盆生产厂家,临沂塑料广告盆,临沂家用塑料盆-临沂市永顺塑业 | 防水套管厂家_刚性防水套管_柔性防水套管_不锈钢防水套管-郑州中泰管道 | 快干水泥|桥梁伸缩缝止水胶|伸缩缝装置生产厂家-广东广航交通科技有限公司 | 专业甜品培训学校_广东糖水培训_奶茶培训_特色小吃培训_广州烘趣甜品培训机构 | 黑田精工电磁阀-CAMMOZI气缸-ROSS电磁-上海茂硕机械设备有限公司 | 冷水机,风冷冷水机,水冷冷水机,螺杆冷水机专业制造商-上海祝松机械有限公司 | 刘秘书_你身边专业的工作范文写作小秘书 | 消防设施操作员考试报名时间,报名入口,报考条件 | 冷油器-冷油器换管改造-连云港灵动列管式冷油器生产厂家 | 东莞画册设计_logo/vi设计_品牌包装设计 - 华略品牌设计公司 | 3d打印服务,3d打印汽车,三维扫描,硅胶复模,手板,快速模具,深圳市精速三维打印科技有限公司 | U拓留学雅思一站式服务中心_留学申请_雅思托福培训 | 大行程影像测量仪-探针型影像测量仪-增强型影像测量仪|首丰百科 大通天成企业资质代办_承装修试电力设施许可证_增值电信业务经营许可证_无人机运营合格证_广播电视节目制作许可证 | 扒渣机,铁水扒渣机,钢水扒渣机,铁水捞渣机,钢水捞渣机-烟台盛利达工程技术有限公司 | 网优资讯-为循环资源、大宗商品、工业服务提供资讯与行情分析的数据服务平台 | 玻纤土工格栅_钢塑格栅_PP焊接_单双向塑料土工格栅_复合防裂布厂家_山东大庚工程材料科技有限公司 | led全彩屏-室内|学校|展厅|p3|户外|会议室|圆柱|p2.5LED显示屏-LED显示屏价格-LED互动地砖屏_蕙宇屏科技 | 电脑知识|软件|系统|数据库|服务器|编程开发|网络运营|知识问答|技术教程文章 - 好吧啦网 | 超声波破碎仪-均质乳化机(供应杭州,上海,北京,广州,深圳,成都等地)-上海沪析实业有限公司 | 佛山商标注册_商标注册代理|专利注册申请_商标注册公司_鸿邦知识产权 | 电子厂招聘_工厂招聘_普工招聘_小时工招聘信息平台-众立方招工网 | 双齿辊破碎机-大型狼牙破碎机视频-对辊破碎机价格/型号图片-金联机械设备生产厂家 | 润东方环保空调,冷风机,厂房车间降温设备-20年深圳环保空调生产厂家 | 外贸资讯网 - 洞悉全球贸易,把握市场先机 |