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

<legend id='WA8PQ'><style id='WA8PQ'><dir id='WA8PQ'><q id='WA8PQ'></q></dir></style></legend><tfoot id='WA8PQ'></tfoot>

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

<i id='WA8PQ'><tr id='WA8PQ'><dt id='WA8PQ'><q id='WA8PQ'><span id='WA8PQ'><b id='WA8PQ'><form id='WA8PQ'><ins id='WA8PQ'></ins><ul id='WA8PQ'></ul><sub id='WA8PQ'></sub></form><legend id='WA8PQ'></legend><bdo id='WA8PQ'><pre id='WA8PQ'><center id='WA8PQ'></center></pre></bdo></b><th id='WA8PQ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='WA8PQ'><tfoot id='WA8PQ'></tfoot><dl id='WA8PQ'><fieldset id='WA8PQ'></fieldset></dl></div>
    <bdo id='WA8PQ'></bdo><ul id='WA8PQ'></ul>

      1. SQL Server 錯誤 1934 發(fā)生在 INSERT 到帶有計算列 PH

        SQL Server error 1934 occurs on INSERT to table with computed column PHP/PDO(SQL Server 錯誤 1934 發(fā)生在 INSERT 到帶有計算列 PHP/PDO 的表)
        <legend id='X75T8'><style id='X75T8'><dir id='X75T8'><q id='X75T8'></q></dir></style></legend>
          • <bdo id='X75T8'></bdo><ul id='X75T8'></ul>
                <tbody id='X75T8'></tbody>

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

              <i id='X75T8'><tr id='X75T8'><dt id='X75T8'><q id='X75T8'><span id='X75T8'><b id='X75T8'><form id='X75T8'><ins id='X75T8'></ins><ul id='X75T8'></ul><sub id='X75T8'></sub></form><legend id='X75T8'></legend><bdo id='X75T8'><pre id='X75T8'><center id='X75T8'></center></pre></bdo></b><th id='X75T8'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='X75T8'><tfoot id='X75T8'></tfoot><dl id='X75T8'><fieldset id='X75T8'></fieldset></dl></div>

                <tfoot id='X75T8'></tfoot>

                  本文介紹了SQL Server 錯誤 1934 發(fā)生在 INSERT 到帶有計算列 PHP/PDO 的表的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  在 SQL Server 2005 中向表中添加計算列后,我在 INSERT 上收到以下消息,僅通過 PHP(使用 PDO)它在 SQL Server Management Studio 中工作正常.

                  After adding a computed column to a table in SQL Server 2005 I am getting the following message on INSERT, only via PHP (using PDO) it's working fine in SQL Server Managment Studio.

                  為了確保一切正確,我使用 SQL Server Profiler 設(shè)置了跟蹤并將 INSERT 語句復(fù)制/粘貼到 SQL Server Management Studio.它在 SSMS 中運行良好,但在 PHP 中繼續(xù)失敗.

                  To ensure I had everything correct I setup a trace with SQL Server Profiler and copy/pasted the INSERT statement into SQL Server Managment Studio. It ran just fine in SSMS, but continues to fail in PHP.

                  添加聯(lián)系人時出錯:SQLSTATE[HY000]:一般錯誤:1934 一般 SQL服務(wù)器錯誤:檢查來自 SQL Server [1934] 的消息(嚴(yán)重性 16)[(空)]

                  Error adding contact: SQLSTATE[HY000]: General error: 1934 General SQL Server error: Check messages from the SQL Server [1934] (severity 16) [(null)]

                  推薦答案

                  原來問題與 SET 參數(shù)有關(guān).我使用了從 這里.確定在 SQL Server Management Studio(插入工作的地方)中設(shè)置了哪些選項.然后在我的插入語句之前將每個放在 exec 中導(dǎo)致事情再次工作.我不需要保留所有選項,所以下面我展示了使其工作所需的選項.

                  Turns out the problem had to do with the SET parameters. I used the code below obtained from Here. To determine which options were set in SQL Server Management Studio (where the insert worked). Then placing each of those in an exec prior to my insert statement caused things to work again. I didn't need to keep all the options, so below I show the ones which were required to get it working.

                  DECLARE @options INT
                  SELECT @options = @@OPTIONS
                  
                  PRINT @options
                  IF ( (1 & @options) = 1 ) PRINT 'DISABLE_DEF_CNST_CHK' 
                  IF ( (2 & @options) = 2 ) PRINT 'IMPLICIT_TRANSACTIONS' 
                  IF ( (4 & @options) = 4 ) PRINT 'CURSOR_CLOSE_ON_COMMIT' 
                  IF ( (8 & @options) = 8 ) PRINT 'ANSI_WARNINGS' 
                  IF ( (16 & @options) = 16 ) PRINT 'ANSI_PADDING' 
                  IF ( (32 & @options) = 32 ) PRINT 'ANSI_NULLS' 
                  IF ( (64 & @options) = 64 ) PRINT 'ARITHABORT' 
                  IF ( (128 & @options) = 128 ) PRINT 'ARITHIGNORE'
                  IF ( (256 & @options) = 256 ) PRINT 'QUOTED_IDENTIFIER' 
                  IF ( (512 & @options) = 512 ) PRINT 'NOCOUNT' 
                  IF ( (1024 & @options) = 1024 ) PRINT 'ANSI_NULL_DFLT_ON' 
                  IF ( (2048 & @options) = 2048 ) PRINT 'ANSI_NULL_DFLT_OFF' 
                  IF ( (4096 & @options) = 4096 ) PRINT 'CONCAT_NULL_YIELDS_NULL' 
                  IF ( (8192 & @options) = 8192 ) PRINT 'NUMERIC_ROUNDABORT' 
                  IF ( (16384 & @options) = 16384 ) PRINT 'XACT_ABORT'
                  

                  以下是我最終需要的選項:

                  Here are the options I ended up needing:

                  $dbPDO->exec("SET ANSI_WARNINGS ON");                                                                               
                  $dbPDO->exec("SET ANSI_PADDING ON");
                  $dbPDO->exec("SET ANSI_NULLS ON");
                  $dbPDO->exec("SET QUOTED_IDENTIFIER ON");
                  $dbPDO->exec("SET CONCAT_NULL_YIELDS_NULL ON");
                  

                  更新:似乎 FK 約束導(dǎo)致了以下錯誤.以上也修復(fù)了這個錯誤.

                  Update: It seems FK constraints resulted in the following error. The above fixed this error as well.

                  SQLSTATE[HY000]:一般錯誤:8624 一般 SQL Server 錯誤:檢查來自 SQL Server 的消息 [8624](嚴(yán)重性 16)[(null)]

                  SQLSTATE[HY000]: General error: 8624 General SQL Server error: Check messages from the SQL Server [8624] (severity 16) [(null)]

                  這篇關(guān)于SQL Server 錯誤 1934 發(fā)生在 INSERT 到帶有計算列 PHP/PDO 的表的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  MySQLi prepared statement amp; foreach loop(MySQLi準(zhǔn)備好的語句amp;foreach 循環(huán))
                  Is mysqli_insert_id() gets record from whole server or from same user?(mysqli_insert_id() 是從整個服務(wù)器還是從同一用戶獲取記錄?)
                  PHP MySQLi doesn#39;t recognize login info(PHP MySQLi 無法識別登錄信息)
                  mysqli_select_db() expects exactly 2 parameters(mysqli_select_db() 需要 2 個參數(shù))
                  Php mysql pdo query: fill up variable with query result(Php mysql pdo 查詢:用查詢結(jié)果填充變量)
                  MySQLI 28000/1045 Access denied for user #39;root#39;@#39;localhost#39;(MySQLI 28000/1045 用戶“root@“l(fā)ocalhost的訪問被拒絕)

                  <legend id='w5iye'><style id='w5iye'><dir id='w5iye'><q id='w5iye'></q></dir></style></legend>

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

                          <tbody id='w5iye'></tbody>
                      • <tfoot id='w5iye'></tfoot>

                            <bdo id='w5iye'></bdo><ul id='w5iye'></ul>
                            <i id='w5iye'><tr id='w5iye'><dt id='w5iye'><q id='w5iye'><span id='w5iye'><b id='w5iye'><form id='w5iye'><ins id='w5iye'></ins><ul id='w5iye'></ul><sub id='w5iye'></sub></form><legend id='w5iye'></legend><bdo id='w5iye'><pre id='w5iye'><center id='w5iye'></center></pre></bdo></b><th id='w5iye'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='w5iye'><tfoot id='w5iye'></tfoot><dl id='w5iye'><fieldset id='w5iye'></fieldset></dl></div>
                          • 主站蜘蛛池模板: 一级欧美 | 久久精品久久精品 | 亚洲h视频| 波多野结衣一区二区三区在线观看 | 欧美日韩国产一区二区三区 | 免费 视频 1级| 日韩精品在线播放 | 欧美日韩综合 | 一区二区三区高清 | 国产中文字幕网 | 三级免费网 | 狠狠色综合欧美激情 | 精品精品 | 九九热视频这里只有精品 | a国产视频| 男女性毛片 | 亚洲精品免费视频 | www.夜夜骑 | 成人影院在线观看 | 国产不卡在线 | 伊人中文字幕 | 黑人精品xxx一区一二区 | 色综合久 | 亚洲国产精品99久久久久久久久 | 永久精品 | 国产精品久久久久久久岛一牛影视 | 日韩免费视频 | 麻豆精品国产91久久久久久 | 中文字幕av第一页 | 午夜伦理影院 | 欧美在线观看一区 | 久久精品综合 | 九九99九九精彩46 | 欧美久久久 | 97久久国产| 综合久久综合久久 | 黄色大片视频 | 国产精品福利网 | 一区二区视频 | 全免费a级毛片免费看视频免费下 | 国产精品区一区二区三区 |