久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

      <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="qwawimqqmiuu" 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 時必須將 ARITH

        Why do I have to SET ARITHABORT ON when using xml in sql server 2005?(為什么在 sql server 2005 中使用 xml 時必須將 ARITHABORT 設置為 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="qwawimqqmiuu" id='0mtie'><tfoot id='0mtie'></tfoot><dl id='0mtie'><fieldset id='0mtie'></fieldset></dl></div>
                • 本文介紹了為什么在 sql server 2005 中使用 xml 時必須將 ARITHABORT 設置為 ON?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

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

                  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 行時得到的具體錯誤信息:

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

                  參數錯誤:無法解析插入列表 - 插入失敗因為以下 SET 選項的設置不正確:'ARITHABORT'.驗證 SET 選項是否正確用于索引計算列和/或查詢通知上的視圖和/或索引和/或 xml 數據類型方法.

                  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.

                  我的存儲過程在一種環境中使用 odbc 從 asp.net 調用運行良好.然后當我將它移到另一個時,我不得不在存儲過程的開頭添加 SET ARITHABORT ON.我在下面包含了存儲過程的相關部分.以及調用它的代碼.

                  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           
                  

                  調用代碼

                    ' 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) 
                  

                  推薦答案

                  我認為網上書籍中的這句話暗示了它:當您在計算列或索引上創建或更改索引時,SET ARITHABORT 必須為 ON意見."所以節點方法必須在內部創建索引視圖或其他東西.但這只是一個有根據的猜測.

                  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.

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

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

                  相關文檔推薦

                  Can I figure out a list of databases and the space used by SQL Server instances without writing SQL queries?(我可以在不編寫 SQL 查詢的情況下找出數據庫列表和 SQL Server 實例使用的空間嗎?) - IT屋-程序員軟件開發
                  How to create a login to a SQL Server instance?(如何創建對 SQL Server 實例的登錄?)
                  How to know the version and edition of SQL Server through registry search(如何通過注冊表搜索知道SQL Server的版本和版本)
                  Why do I get a quot;data type conversion errorquot; with ExecuteNonQuery()?(為什么會出現“數據類型轉換錯誤?使用 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 應用程序設計——將文檔從 SQL Server 移動到文件存儲)
                  <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="qwawimqqmiuu" 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>
                            主站蜘蛛池模板: 日韩av黄色| 黄色免费观看 | 蜜桃在线一区二区三区 | 羞羞视频网站免费观看 | 欧美日韩午夜精品 | 欧美黄色网 | 久久精品国产免费 | 国产精品污www一区二区三区 | 国产精品美女久久久 | 欧美日韩综合一区 | 国产一级一级 | 国产免费一二三区 | 亚洲最大的成人网 | 久久久久国 | 国产真实乱对白精彩久久小说 | 中文字幕在线网 | 国产一区二区三区四区在线观看 | 久久久国产视频 | 青青草一区二区三区 | 欧美亚洲视频在线观看 | 久久久免费电影 | 精品一区二区在线观看 | 亚洲日本视频 | 中文字幕在线免费观看 | 中文字幕av亚洲精品一部二部 | 国产精品一区二区三区在线播放 | 日韩av第一页 | 国产综合久久 | 久久影音先锋 | 国产东北一级毛片 | 美女天天操| 欧美精品一区二区在线观看 | 在线午夜电影 | 欧美一级二级在线观看 | 免费看一区二区三区 | 国产精品一区二区三区久久久 | 欧美一区二区三区在线观看 | 999国产视频| 在线免费小视频 | 97色免费视频 | 日韩一区三区 |