microsoft / microsoft/sql-server-samples
No Syntax error on Views Creation with incorrect SQL
Open
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 11.2k
- Forks
- 9.1k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 14
Description
Doesn't give syntax error, the script runs fine, and creates the view without the Column1 because the comma (,) is missing at the end.
This script:
CREATE VIEW [dbo].[SomeView] AS
SELECT
[Column1]
[Column2],
[Column3]
FROM
[dbo].[SomeTable]
OR
ALTER VIEW [dbo].[SomeView] AS
SELECT
[Column1]
[Column2],
[Column3]
FROM
[dbo].[SomeTable]
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No repository file, test, or entry point is mentioned. Reproduce the CREATE VIEW and ALTER VIEW statements in SQL Server, then inspect the resulting view definition to confirm how the missing comma is handled; done would require a validated fix or a clear project-level explanation of the behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- sql
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100