USE [sample]
GO
/****** Object: Table [dbo].[selvi] Script Date: 09/18/2012 12:37:29 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[selvi](
[name] [varchar](50) NULL,
[age] [int] NULL,
[address] [varchar](50) NULL,
[department] [varchar](50) NULL,
[course] [varchar](50) NULL,
[landmark] [varchar](50) NULL,
[moble] [varchar](50) NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
i need to add before the age field as father name
i need to add before the age field as father name


nallyaRank #8,588 · 219 reputationPosted Sep 17, 2012, 11:39 PM EDT
http://www.codeproject.com/Questions/399359/insert-a-column-between-columns-in-SQL-Server
for alter and create statement refer This
http://www.techonthenet.com/sql/tables/alter_table.php
Shivanand ArurRank #920 · 2.3K reputationPosted Sep 17, 2012, 11:28 PM EDT
1. In the Object Explorer, Select your database... then select your table and right click on the table.
2. Select Design from the available list (After Right Clicking your table)
3. In the Design mode, to the extreme left of the columns... Right Click on the line and Click on "Insert Column"
selvi subramanianRank #2,007 · 723 reputationPosted Sep 17, 2012, 11:29 PM EDT
Shivanand ArurRank #920 · 2.3K reputationPosted Sep 17, 2012, 11:41 PM EDT
Shivanand ArurRank #920 · 2.3K reputationPosted Sep 18, 2012, 12:00 AM EDT
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=58912
selvi subramanianRank #2,007 · 723 reputationPosted Sep 18, 2012, 12:05 AM EDT
it throws error in sqlserver as Msg 102, Level 15, State 1, Line 1