Can't import northwind sql file onto DB Browser for SQLite

260 views Asked by At

I seem to get this error message.

[Error importing data: Error in statement #1: near "S":syntax error. Aborting execution and rolling back.] (https://i.stack.imgur.com/IzRvb.png)

I looked into the SQL file. These are the first few lines:

Select * from Shippers /*

MS SQL Server Setup script for SQL Practice Problems Database: Northwind_SPP

*/

Set nocount on

GO /****** Object: Table [dbo].[Categories] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Categories]( ...

Can't seem to find the "Syntax error" especially in line 1.

2

There are 2 answers

0
Mureinik On

The Northwind SQL examples are for , which may have a slightly different syntax than . You won't be able to use them with an RDBMS they were not intended for.

0
MikeT On

Using https://github.com/jpwhite3/northwind-SQLite3 to download.

Started DBeaver.

Created connection to the download and :-

enter image description here