You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have noticed that trying to pass a XML string of over 2000 characters to a stored procedure as a parameter results in SQL returning "[Microsoft][SQL Server Native Client 11.0]Invalid precision value".
I suppose it's being truncated, but I can't find a way to stop this happening?
I'm just using:
procManager.callproc('SEL_GetDataByXml', parameters, function (err, result) {
Any advice?
Thanks!
Dave
The text was updated successfully, but these errors were encountered:
I have noticed that trying to pass a XML string of over 2000 characters to a stored procedure as a parameter results in SQL returning "[Microsoft][SQL Server Native Client 11.0]Invalid precision value".
I suppose it's being truncated, but I can't find a way to stop this happening?
I'm just using:
procManager.callproc('SEL_GetDataByXml', parameters, function (err, result) {
Any advice?
Thanks!
Dave
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
function largeText() {
console.log("largeText");
var len = 2200;
var s = "A".repeat(len);
sql.open(connStr, function (err, conn) {
conn.query("declare @s NVARCHAR(MAX) = ?; select @s as s", [sql.WLongVarChar(s)], function (err, res) {
//conn.query("declare @s NVARCHAR(MAX) = ?; select @s as s", [s], function (err, res) {
assert.ifError(err);
var ss = res[0].s;
assert(ss.length == len);
});
});
}
Hey there,
I have noticed that trying to pass a XML string of over 2000 characters to a stored procedure as a parameter results in SQL returning "[Microsoft][SQL Server Native Client 11.0]Invalid precision value".
I suppose it's being truncated, but I can't find a way to stop this happening?
I'm just using:
procManager.callproc('SEL_GetDataByXml', parameters, function (err, result) {
Any advice?
Thanks!
Dave
The text was updated successfully, but these errors were encountered: