Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#1,091 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
sql
Ambito
databases

Direzione di ricerca

Apri insnwd.sql ed eseguilo in SQL Server Management Studio mentre esamini gli errori segnalati, in particolare l’errore di sintassi e i conflitti relativi al database Northwind e agli oggetti. Riproduci il malfunzionamento e individua le modifiche necessarie allo script affinché venga eseguito senza gli errori elencati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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'.

Lingua principale
PowerShell
Stelle
11.2k
Fork
9.1k
Merge medio
2g 7h
PR unite (30g)
14

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/sql-server-samples

Tutte le issue di microsoft/sql-server-samples

Issue simili

Altre issue su Databases

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.