Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Table

Status
Not open for further replies.

harrysdad

Programmer
Joined
May 30, 2002
Messages
53
Location
GB
I'm wondering if you can issue a SQL CREATE TABLE command from an asp? Any ideas?

Regards,

Tony
 
Yes with a normal CREATE TABLE statement

Code:
strSQL = "CREATE TABLE MyTabel " &_
         "( field1 int, field 2 varchar (50) )"
conn.execute strSQL

But: your ASP page is probably running under user IUSR_<servername>, and this user probably does nog have rights to create tables . . .




hth,
Foxbox
ttmug.gif
 
Does that mean I would have to include a username & password in the page to give me that privilege, or would that not work?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top