For a project i need to copy a table from a template, but when executing the SQL code the response is Syntax error in CREATE TABLE statement.
OleDbConnection conn = new OleDbConnection();
conn.ConnectionString = ConfigurationManager.ConnectionStrings["LoginDataB"].ToString();
OleDbCommand cmd = new OleDbCommand();
cmd.Connection = conn;
cmd.CommandText = "CREATE TABLE 'TEST' AS SELECT * INTO 'TEST' FROM
buttonstemplate";
This is the code i have used. Yet when I use an online SQL editor like W3schools It works just fine. I am using MS Access 2016 and programming in ASP.net
I am just starting to learn to code so I hope someone could help me out.
