Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

insnwd.sql is not a working code ( Jan 2022)

オープン
#1,091 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
sql
領域
databases

調査の方向性

insnwd.sql を開き、報告されたエラー、特に構文エラーと Northwind データベースおよびオブジェクトの競合を確認しながら、SQL Server Management Studio で実行してください。失敗を再現し、一覧に記載されたエラーなしで実行できるようにするために必要なスクリプトの変更を特定してください。

索引モデルが issue の本文から書いたものです。

説明

Any time I attempt to download or even copy and paste the code in to SSMS I end up with an error.
Below is the error message I receive. I am new to this and do not know how to fix this and it appears that I would have to do so because of frequent syntax errors. What do I do now?

Error Message:
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near '.'.
Msg 3702, Level 16, State 4, Line 13
Cannot drop database "Northwind" because it is currently in use.
Msg 1801, Level 16, State 3, Line 15
Database 'Northwind' already exists. Choose a different database name.
Msg 3726, Level 16, State 1, Line 113
Could not drop object 'dbo.Customers' because it is referenced by a FOREIGN KEY constraint.
Msg 2714, Level 16, State 6, Line 175
There is already an object named 'Customers' in the database.
Msg 1913, Level 16, State 1, Line 193
The operation failed because an index or statistics with name 'City' already exists on table 'dbo.Customers'.
Msg 1913, Level 16, State 1, Line 195
The operation failed because an index or statistics with name 'CompanyName' already exists on table 'dbo.Customers'.
Msg 1913, Level 16, State 1, Line 197
The operation failed because an index or statistics with name 'PostalCode' already exists on table 'dbo.Customers'.
Msg 1913, Level 16, State 1, Line 199
The operation failed because an index or statistics with name 'Region' already exists on table 'dbo.Customers'.

主要言語
PowerShell
スター
11.2k
フォーク
9.1k
平均マージ
2日 7時間
マージ済み PR(30日)
14

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/sql-server-samples のほかの issue

microsoft/sql-server-samples の issue をすべて見る

似ている issue

Databases の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。