Skip to main content
Filter by
Sorted by
Tagged with
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
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
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
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
0 votes
1 answer
214 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
1 answer
248 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
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
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
0 votes
1 answer
211 views

I have seen the statement that if you are storing images in a column in a SQL Server database, you should use varbinary instead of nvarchar. Which makes 100% sense to store binary data as varbinary ...
Dancin Dave's user avatar
0 votes
1 answer
119 views

I have ten thousand records in the postObj object and need to insert into a SQL Server database. The object structure : { postObj : [ { start_coordinates": { &...
Jenny Hui's user avatar
-4 votes
1 answer
751 views

I have the query: Select Location, date, total_cases, total_deaths, (total_deaths / total_cases) * 100 as DeathPercentage From PortfolioProject.dbo.CovidDeaths$ Order By 1, ...
JC234's user avatar
  • 1
0 votes
0 answers
166 views

I have to use an old charset WE8ISO8859P1 (it a working environment, not sure why but I cannot change this) so I had to change my variable to NVARCHAR2. Only problem when I try to filter based on the ...
LiefLayer's user avatar
  • 1,073
-3 votes
1 answer
601 views

I am trying to divide 2 columns which are defined as nvarchar, but SSMS throws an error saying you can not use / operator on nvarchar. select location, date, total_cases, total_deaths, (...
Jayesha Miglani's user avatar
0 votes
0 answers
177 views

I'm trying to convert nvarchar separated with a comma to int, but I have a problem. I tried to use PARSENAME(REPLACE()), and it works fine but takes a long time to execute the code. I have a lot of ...
Rand's user avatar
  • 35
2 votes
0 answers
199 views

I am using CData Sync to convert my table in SQL Server to MariaDB. The data type I have for some of my columns (including my primary key) is nvarchar(255) and when I try to convert it using CData ...
stackoverflowme's user avatar
3 votes
1 answer
298 views

When an NVARCHAR attribute in a SQL Server database contains an emoji, string functions and operators behave in different ways (default database collation is SQL_Latin1_General_CP1_CI_AS). Behavior of ...
AHiggins's user avatar
  • 7,235
-2 votes
1 answer
1k views

I am loading data from a CSV file to a staging table (using BULK INSERT) where all column types are NVARCHAR(100). This works well. The idea is then to insert that data into the productive table and ...
jayjay's user avatar
  • 13
0 votes
1 answer
689 views

I am not so familiar with using convert in SQL so thats why i am stuck with the following situation: The column has a nvarchar(max) and i would like to convert it into decimal (18,2). But there are ...
Regazzi's user avatar
  • 115
0 votes
0 answers
331 views

Question regarding "IN" versus "INNER JOIN" and VARCHAR versus NVARCHAR Examples lay it out... This query returns the CORRECT results (11 count): Uses nvarchar(10) data columns for ...
beyonder422's user avatar
0 votes
1 answer
213 views

I have a table in the SQL server database and it has a field with the type nvarchar. It stores the values in the format as shown below: ROW 1 - ["value1", "value2", "...
Happy Coder's user avatar
  • 4,802
0 votes
1 answer
559 views

I'm trying to get a week number from "EndDate" column (nvarchar data type). Convert function works fine below. SELECT EndDate, CONVERT(DATE,EndDate,113) as "Date", Output from ...
lampardek's user avatar
0 votes
1 answer
1k views

I have a table with thousands of rows. One of the columns does not read the values correctly. Some letters cannot be recognised and thus changed to some symbols like in the attached screenshot. I ...
Farkhod Giyasov's user avatar
1 vote
1 answer
2k views

For whatever reason, a query is being built as a string and passed off to be executed by another stored procedure. The query is massive. Over a thousand lines, and we've run into an issue that ...
Will's user avatar
  • 3,615
0 votes
0 answers
115 views

A table has a nvarchar(12) column that stores MSISDNs (numbers only of a phone number). The size of the table is 9 Gb. After changing the type of the column to decimal(12,0), the size of the table ...
FireShock's user avatar
  • 1,122
1 vote
1 answer
1k views

I'm trying to remove/replace certain unicode symbol characters from text in SQL Server 2019. The server/DB I'm working with has collation Latin1_General_CI_AS. I can't change the collation of the ...
Geo's user avatar
  • 13

1
2 3 4 5
10