i'm new in SQL Server and i don't know what happened. i need to create a database,how i can do it?
i have problems
Why the > is show me?
i'm new in SQL Server and i don't know what happened. i need to create a database,how i can do it?
i have problems
Why the > is show me?
You need to add GO as the batch separator. Nothing will get executed untill you add it e.g.
> CREATE DATABASE TESTDB
> GO
The MS docs are here: https://learn.microsoft.com/en-us/sql/linux/quickstart-install-connect-ubuntu?view=sql-server-linux-2017
sqlcmd -S localhost -U SA -P yourpassword
CREATE DATABASE database
GO
USE database
GO