SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseSQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old August 26th, 2001, 12:46 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
changing table structure with SQL code in ASP page

Originally posted by : aztec (aztec@wanadoo.be)I have an ASP page that executes the SQL-code i put in a textarea-field. My question:What SQL-code do i use to add, remove, change a collumn from an existing table. Let's say i wanted to add a collumn with the name "title" of type nvarchar with a length of 500 to a table called "books"If anyone could help me on this i would be verry, verry gratefull

Reply With Quote
  #2  
Old August 28th, 2001, 06:34 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Originally posted by : Richard (richard@trinet.co.uk)Look up ALTER TABLE in BOL:ALTER TABLE books ADD title nvarchar(500) NULLTo change a column, you would need to play with temporary tables. Try using SQL EM to alter a table, and look at the script for the operation.------------aztec at 8/26/2001 10:46:20 AMI have an ASP page that executes the SQL-code i put in a textarea-field. My question:What SQL-code do i use to add, remove, change a collumn from an existing table. Let's say i wanted to add a collumn with the name "title" of type nvarchar with a length of 500 to a table called "books"If anyone could help me on this i would be verry, verry gratefull

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > changing table structure with SQL code in ASP page


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT