We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ErikEJ/SqlServer.Rules'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
SML034.md•654 B
# SQL Server Rule: SML034
| | |
|----|----|
| Assembly | TSQLSmellSCA |
| Namespace | TSQLSmellSCA |
| Class | TSQLSmellSCA34 |
## Rule Information
| | |
|----|----|
| Id | SML034 |
| Friendly Name | Expression used with TOP should be wrapped in parenthises |
| Category | CodeSmells |
| Ignorable | false |
| Applicable Types | Model |
## Description
Expression used with TOP should be wrapped in parenthises
### Examples
```sql
CREATE PROCEDURE [dbo].[SelectTopNoParen]
AS
set nocount on;
Select top 100 Col1 from dbo.TestTableSSDT;
RETURN 0
-- SML034, SRD0014
```
<sub><sup>Generated by a tool</sup></sub>