I want to create a stored procedure on SQL Server.
My code is:
CREATE PROCEDURE [dbo].[Pcreate]
@name NVARCHAR(50),
@namefood NVARCHAR(50),
@restaurantname NVARCHAR(50),
@pricefood FLOAT,
@address NVARCHAR(50)
AS
BEGIN
CREATE TABLE [dbo].[@name]
(
[Id] INT NOT NULL PRIMARY KEY IDENTITY,
[@namefood] NVARCHAR(50) NOT NULL,
[@restaurantname] NVARCHAR(50) NOT NULL,
[@pricefood] FLOAT NOT NULL,
[@address] NVARCHAR(50) NOT NULL
)
END
In C# code:
db.Pcreate(name.Text, restaurantbox.SelectedItem.ToString(), getEdit1(), float.Parse(getEdit2()), adrresstxt.Text);
but the code creates the table with @name like in this screenshot:

@. I doubt that is your intent. What are you actually trying to do here? Also, address has 2 d's and 1 r. ;)