Skip to main content
0 votes
1 answer
79 views

I have the following table CREATE TABLE [OMEGACA].[ACC_POL] ( [POLICY_ID] [int] IDENTITY(1,1) NOT NULL, [POLICY_NAME] [nvarchar](200) NOT NULL, [POLICY_DESC] [nvarchar](1000) NULL, [...
altink's user avatar
  • 375
2 votes
4 answers
120 views

Consider the following schema: CREATE TABLE [dbo].[User] ( [Id] BIGINT NOT NULL IDENTITY (1, 1), [NameGiven] NVARCHAR (256) NOT NULL, [...
Raheel Khan's user avatar
  • 14.8k
0 votes
1 answer
112 views

I can't find any resources that discuss this topic. I understand that NVARCHAR is used for non-English languages and takes up extra space, but why do some developers use a mix of the N prefix with the ...
noor al_huda's user avatar
1 vote
1 answer
451 views

I have a web API application that executes updates to a NVARCHAR(MAX) column and immediately after reads the result from the database. This usually works fine, but under high load it often fails with ...
Jørn Wildt's user avatar
  • 4,508
0 votes
2 answers
80 views

I have a SQL Server database that only has a single table with a few columns. There are a few thousand rows currently. The columns are as follows: id (nvarchar(35)) path (nvarchar(255)) body (ntext) ...
bdizz's user avatar
  • 1
0 votes
0 answers
82 views

I using SQL Server 2012 and need to use FOR XML PATH to get a comma-separated string for like projects. The query runs and works but when I try to alter #T2, I get an error String or binary data ...
dave82's user avatar
  • 37
1 vote
1 answer
117 views

I am developing a program that reads text from sql server nvarchar(max) field and needs to write it as UTF-16 text file inside a zip. I cannot load the string contained in the field as it weighs >...
matti157's user avatar
  • 1,288
1 vote
1 answer
158 views

We are testing moving from a local MSSQL db to Azure. We have an old ASP classic site which we need to maintain that creates an ADODB command to store email messages using a MSSQL stored procedure. ...
user1480192's user avatar
0 votes
1 answer
215 views

select datalength(N','), unicode(N',') returns 2 in the first column and 44 in the second. This means that commas take up two bytes, but can be stored using just the number 44. , is in the first 128 ...
J. Mini's user avatar
  • 1,746
0 votes
0 answers
82 views

I'm reading from a data source that returns unicode strings, and the output goes into a data conversion transform where I output a "string [DT_STR]" from it as my database is using varchar ...
Gargoyle's user avatar
  • 10.5k
0 votes
1 answer
254 views

The common misconception that the argument to NVARCHAR(x) is a character count has bitten me many times today. I am asking this question in the interest of exploring the topic further. Consider an ...
J. Mini's user avatar
  • 1,746
0 votes
1 answer
55 views

Below is my stored procedure create or replace PROCEDURE PR_GETECOUNT ( P_YEAR IN NUMBER ,P_RECORDSET OUT NVARCHAR2 ) AS l_r_count varchar2(400); l_v_count varchar2(400); l_e_count varchar2(400); ...
sanjeevRm's user avatar
  • 1,636
1 vote
2 answers
2k views

I'm trying to manually update a SQL Server column of type nvarchar(max) with a huge JSON parsed as text. It's a simple, straightforward query: UPDATE Books SET Story = '' WHERE Id = 23 The problem ...
Filip5991's user avatar
  • 463
0 votes
0 answers
25 views

We have event data in a log table that is a JSON string of NVARCHAR(MAX) datatype. Some of the strings are too large to SELECT out of the table. But, if we CAST it, we can see the entire value. SELECT ...
Michael's user avatar
  • 339
0 votes
0 answers
91 views

I have a very big table(T1) with a Tera byte of data in the Prod environment. There are some columns with nvarchar(max) which are such a miss. The table is created by code-first Ef core. Since it is ...
Mahdi Abyaznezhad's user avatar

15 30 50 per page
1
2 3 4 5
33