How to run arbitrary SQLite query from Visual Studio?

I cannot believe this is the first time this has happened. I have a script that looks like this:

drop table if exists Recipients

drop table if exists Messages

create table Recipients (
    Id INTEGER not null,
   Name TEXT,
   Email TEXT,
   primary key (Id)
)

create table Messages (
    Id INTEGER not null,
   Subject TEXT,
   Contents TEXT,
   SentOn DATETIME,
   primary key (Id)
)

and I just want to start it using an SQLite connection in my server explorer, but the only way I can find SQL execution is against silly query builders.

I do not need anything visually. I just need a panel on which I can click "Run" and it will run the script.

+3
source share
3 answers
sqlite3 filename.db < input.sql
+2
source

SQLite, SQL Express node " " " ". !, .

, , . , , "" , "SQL".

+2

Source: https://habr.com/ru/post/1728878/


All Articles