아래 그림과 같이 사용자 지정 SQL 문에 ORDER BY 절을 사용하여 SQL Server 또는 Azure SQL 데이터베이스와 통신하는 동안 다음과 같은 오류가 표시됩니다.
Error Code: 2F0F5E42(오류 코드: 2F0F5E42)
[Microsoft][ODBC Driver 17 for SQL Server][SQL Server]The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions, unless TOP, OFFSET or FOR XML is also specified.(ORDER BY 절은 뷰, 인라인 함수, 파생 테이블, 하위 쿼리 및 일반 테이블 식에서 유효하려면 TOP, OFFSET 또는 FOR XML 또한 지정되어야 합니다.)
SQL 예시:
SELECT
[Address].[AddressID]
FROM
[SalesLT].[Address]
ORDER BY
[Address].[AddressID]
이는 Microsoft SQL의 제한 사항입니다.
001496791

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.