WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Database Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Database Discussion Forum This is the place to find help resolving those nagging questions you have about implementing and using all kinds of databases. Need help writing a query? Need an opinion on Oracle? Post here!

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-27-2004, 06:34 AM
arunrakwal arunrakwal is offline
WebProWorld New Member
 

Join Date: Jul 2004
Location: India
Posts: 3
arunrakwal RepRank 0
Default SQL Server - adding new column at specified position

Adding a new column in existing table at specified position in SQL Server. In the middle of existing column set.
Reply With Quote
  #2 (permalink)  
Old 07-27-2004, 07:02 AM
M0rtym0use M0rtym0use is offline
WebProWorld Member
 

Join Date: May 2004
Location: UK
Posts: 83
M0rtym0use RepRank 0
Default

arunrakwal,
i am guessing you are actually asking a question here!
use the design view in enterprise manager to input the column where you require it.

MM
__________________
M0rtyM0use

Simply Rugby
Reply With Quote
  #3 (permalink)  
Old 07-28-2004, 02:45 AM
arunrakwal arunrakwal is offline
WebProWorld New Member
 

Join Date: Jul 2004
Location: India
Posts: 3
arunrakwal RepRank 0
Default

THanks for reply,

Yes i am asking a question only.

I need to do this thru Script only.

And the new column is required in between the existing column set and not at the last position.
Reply With Quote
  #4 (permalink)  
Old 07-28-2004, 05:35 AM
M0rtym0use M0rtym0use is offline
WebProWorld Member
 

Join Date: May 2004
Location: UK
Posts: 83
M0rtym0use RepRank 0
Default

arunrakwal,
if you are going to be inserting columns using a script then i assume you are going to be querying the db also by script which menas it does not matter what order column names are in.



MM
__________________
M0rtyM0use

Simply Rugby
Reply With Quote
  #5 (permalink)  
Old 08-05-2004, 03:55 PM
swstyles's Avatar
swstyles swstyles is offline
WebProWorld Pro
 

Join Date: Aug 2003
Location: Phoenix, AZ
Posts: 167
swstyles RepRank 0
Default

Enterprise manager is a GUI for sql scripting. Every command Enterprise Manager execute is a sql script execution. There is a command to do that but I don't konw what it is. Try asking your question at sqljunkies.com

http://www.sqljunkies.com

sqlmag.com was the best resource but they charge now for access. It's hard to find good tips these days.

hope this post was helpful.
__________________
Daniel M: South West Styles/STEELid
daniel@steelid.com
http://www.steelid.com
http://www.thephototool.com
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Database Discussion Forum
Tags: adding, column, position, server, specified, sql



Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On



Search Engine Friendly URLs by vBSEO 3.0.0