ecnarongi
01-29-2003, 10:56 PM
if I do something like this it creates the table
SQLmkTbl = "CREATE TABLE CompanyInfo (First_Name VARCHAR(20), Last_Name VARCHAR(30), Company VARCHAR(60) )"
this will create a table called "CompanyInfo", but if I write this
SQLmkTbl = "CREATE TABLE '"& sname &"' (First_Name VARCHAR(20), Last_Name VARCHAR(30), Company VARCHAR(60) )"
where sname is an ASP variable I get nothing, no error, no table, no nothing. I've tested the variable with a response.write statement and it worked great but not in the SQL statement. All help is appreciated, thanks.
SQLmkTbl = "CREATE TABLE CompanyInfo (First_Name VARCHAR(20), Last_Name VARCHAR(30), Company VARCHAR(60) )"
this will create a table called "CompanyInfo", but if I write this
SQLmkTbl = "CREATE TABLE '"& sname &"' (First_Name VARCHAR(20), Last_Name VARCHAR(30), Company VARCHAR(60) )"
where sname is an ASP variable I get nothing, no error, no table, no nothing. I've tested the variable with a response.write statement and it worked great but not in the SQL statement. All help is appreciated, thanks.