Base64 SQL 默认值,错误验证
Base64 SQL Default Value, Error Validating
我正在尝试插入一个 base64 图像代码作为我的其中一个列的默认值。我试过用单引号封装我的 base64 但在 SSMS 中它没有将它显示为字符串并且在尝试保存 table.
时出现错误
-Error validating the default for column 'mycol'
-Error modyfing column properties, Unclosed quotation mark after the character string : then shows the entire base64 code.
我也尝试了以下方法:(N'(base64here)')
但同样会引发相同的错误。
我在记事本中为我的字符串中的任何其他单引号做了一个 search/replace 但有 none.
不确定这里有什么问题?可能是字符串对于 varchar(MAX) 字段来说太长了吗?它有 223210 个字符长。我使用的是 SSMS gui 而不是 TSQL 来输入默认值。
(N'(data:image/jpeg;base64,/9j/4QA2RXhpZgAASUkqAAgAAAABAJiCAgARAAAAGgAAAAAAAABTZWFuIFBhdm9uZSAyMDE5AAAAAP/sABFEdWNreQABAAQAAAA8AAD/4QTcaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzE0NSA3OS4xNjM0OTksIDIwMTgvMDgvMTMtMTY6NDA6MjIgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcFJpZ2h0cz0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3JpZ2h0cy8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1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1RrWtWvzPJdi58hZtcuC4mB+ruMH3TE60+a7zwl3zM1r5ErMSRO8C2+WjPKOI2OnwFSsqjfzeP8Owsk8OlOnWYSLB3TGRppcRsnGQXmlQMZo1BvreM3OnzIFWyp2EIp9pu9u/1Jl7JNteyyQYWDmRLPmjFj15+WdOroRMtv8sieouxVVJ43PCufuE3Fxr3c+tvkiyVcKdOwvO6dlwtw7a23HwSkUuXjRybXEzPaZsZenLGs0h9cpXTa4VXIOisM4J0phVJr4Pr6YBNYHKceTFgnVM/GbJgdTi5mPcxyHQx0MjH4ZojxQnx4HhUceymXV/DmimuRqocnJ2bc9tzRlJOMe2Zs+4WYi62JBt+JLWlg5qfUPbTYrGepYc119Mn3Mvrj1HRsnNhdV23BhOPEXXc+5tokZGikyyiSQYyaeBxpBHrWRTpKix9TV1W1\=)')
上面的 base64 字符串被截断了,因为顺便说一句,Whosebug 有字符限制。
我能够使用 TSQL 添加它
ALTER TABLE MYTBL
ADD CONSTRAINT MYCOL
DEFAULT 'base64here' FOR MYCOL;
我正在尝试插入一个 base64 图像代码作为我的其中一个列的默认值。我试过用单引号封装我的 base64 但在 SSMS 中它没有将它显示为字符串并且在尝试保存 table.
时出现错误-Error validating the default for column 'mycol'
-Error modyfing column properties, Unclosed quotation mark after the character string : then shows the entire base64 code.
我也尝试了以下方法:(N'(base64here)')
但同样会引发相同的错误。
我在记事本中为我的字符串中的任何其他单引号做了一个 search/replace 但有 none.
不确定这里有什么问题?可能是字符串对于 varchar(MAX) 字段来说太长了吗?它有 223210 个字符长。我使用的是 SSMS gui 而不是 TSQL 来输入默认值。
(N'(data:image/jpeg;base64,/9j/4QA2RXhpZgAASUkqAAgAAAABAJiCAgARAAAAGgAAAAAAAABTZWFuIFBhdm9uZSAyMDE5AAAAAP/sABFEdWNreQABAAQAAAA8AAD/4QTcaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlI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iY4BSJ0FAC1JjQoKD76Q6CgKCSQoCkNCgKQ6C1FBIcWoskhwG1IlUUGPhwNIaY6JGIsTceVKhKoR40ACgQYoGHagAxQAdqRIBFMQYFIA7UDDtQAdqADApAHagYq1IKB2oAMCgYdqQUDtQMO1ABgUAKtQALUhh2oAFqADAoGHakAYFAB2oGGBSAO1AAtQALUAC1AAtQAdqQwWoAFqADtQALUgDtQMFqADtQALUgD00DBpoAO1AAtQALUAS/p7k5uJkZU8UTR9ecE459RXLxFJyIB7Jsd2ZD+ID2V5PdTk5xeTaeqPCM4vGnVLP/U9Hs44SWcapp84tYPu4nVoY0jeQxm8OQ5mXyDMAf0j9NRJsqt83HcEaPD2siLImcifPcBlx4kGuZ40PxyInn6VJHuqVCcEs2YBNj2radsnxMJfne6t/kmaPOyAZo8OPKDt1pSfUNcSMAvxt7BVbhTBF9W3jgl7xrBwodu3Fs/qxbx3jjxou8dxZ9htOzC3CCFVsrSKCFSGMk35msN1RrWtWvzPJdi58hZtcuC4mB+ruMH3TE60+a7zwl3zM1r5ErMSRO8C2+WjPKOI2OnwFSsqjfzeP8Owsk8OlOnWYSLB3TGRppcRsnGQXmlQMZo1BvreM3OnzIFWyp2EIp9pu9u/1Jl7JNteyyQYWDmRLPmjFj15+WdOroRMtv8sieouxVVJ43PCufuE3Fxr3c+tvkiyVcKdOwvO6dlwtw7a23HwSkUuXjRybXEzPaZsZenLGs0h9cpXTa4VXIOisM4J0phVJr4Pr6YBNYHKceTFgnVM/GbJgdTi5mPcxyHQx0MjH4ZojxQnx4HhUceymXV/DmimuRqocnJ2bc9tzRlJOMe2Zs+4WYi62JBt+JLWlg5qfUPbTYrGepYc119Mn3Mvrj1HRsnNhdV23BhOPEXXc+5tokZGikyyiSQYyaeBxpBHrWRTpKix9TV1W1\=)')
上面的 base64 字符串被截断了,因为顺便说一句,Whosebug 有字符限制。
我能够使用 TSQL 添加它
ALTER TABLE MYTBL
ADD CONSTRAINT MYCOL
DEFAULT 'base64here' FOR MYCOL;