Skip to content
Advertisement

Tag: sql-server-2014

Why collation doesn’t work with for xml path in subquery?

I usually use collate SQL_Latin1_General_CP1251_CI_AS to remove accents (diacritics) like this. escrzyaie-escrzyaie Unfortunately, after one of the search queries stopped working, I found out that collation is ignored when used in combination with for xml path in subquery. ěščřžýáíé-ěščřžýáíé It is possible to work around this by using collation for each part separately, but I wonder why it doesn’t work

While loop SQL Server

Help me please. I need to write two functions, one that calculates the factorial and another that calculates the sums of euler. To make the euler sums I need to use the function that calculates the factory. I already have the function of factorial but when doing the sums the result I get “NULL” Note: it needs to be done

Advertisement