Feb 21, 2004 #1 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
Feb 22, 2004 #2 foxbox Programmer Joined Sep 11, 2000 Messages 1,052 Location NL 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 Upvote 0 Downvote
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
Feb 22, 2004 Thread starter #3 harrysdad Programmer Joined May 30, 2002 Messages 53 Location GB Does that mean I would have to include a username & password in the page to give me that privilege, or would that not work? Upvote 0 Downvote
Does that mean I would have to include a username & password in the page to give me that privilege, or would that not work?
Feb 22, 2004 #4 foxbox Programmer Joined Sep 11, 2000 Messages 1,052 Location NL see this (and other) FAQ: http://www.tek-tips.com/faqs.cfm?spid=333&sfid=3802 hth, Foxbox Upvote 0 Downvote