The forum will experience an outage sometime between February 10 at 7:00pm EST and February 12 at 11:59 EST for installation of security updates. The actual time and duration of the outage are unknown but attempts will be made to minimize the downtime. We apologize for any inconvenience.

According to the documentation for creating a materialized view, the sort_collation setting must be Internal. I have set it to the ID 51 to get the proper sorting for Umlaute. Now I am wondering if there is a way to set this opion to Internal and still have the sort collation behave like if I had set it to 51?

(SQL Anywhere 12, Version

Regards, Robert

alt text

alt text

asked 04 Mar '15, 10:10

robert's gravatar image

accept rate: 0%

edited 04 Mar '15, 10:10

In my understanding, there's no problem in either setting the sort_collation temporarily to a different setting or to explicitly use SORTKEY(MyColumn, MySortCollation) when you run queries against the mat. view. However, the drawback might be that the mat. view won't be used automatically by the optimizer when you do not refer to it in your queries - that's my understanding of the phrase "for the view to be used by the optimizer" from the v12.0.1 docs which state:

The following database options must have the specified settings when a materialized view is created; otherwise, an error is returned. These database option values are also required for the view to be used by the optimizer:

  • ansinull=On
  • sort_collation=Internal
permanent link

answered 04 Mar '15, 11:52

Volker%20Barth's gravatar image

Volker Barth
accept rate: 32%

I would assume there must be a setting where it is possible to create a mat. view without changing the setting (options) to create the mat. view and then switch back to the sort_collation ID 51 (in my case). But I really don't know.

(04 Mar '15, 12:59) robert
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 04 Mar '15, 10:10

question was seen: 1,066 times

last updated: 04 Mar '15, 12:59