Click here to Skip to main content
15,914,323 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How i will split a line in .net Pin
Colin Angus Mackay17-Jun-09 14:20
Colin Angus Mackay17-Jun-09 14:20 
AnswerRe: How i will split a line in .net Pin
Abhijit Jana17-Jun-09 2:00
professionalAbhijit Jana17-Jun-09 2:00 
QuestionDataTable Column Naming Pin
munklefish17-Jun-09 1:45
munklefish17-Jun-09 1:45 
AnswerRe: DataTable Column Naming Pin
Baran M17-Jun-09 2:14
Baran M17-Jun-09 2:14 
GeneralRe: DataTable Column Naming Pin
munklefish17-Jun-09 2:21
munklefish17-Jun-09 2:21 
GeneralRe: DataTable Column Naming Pin
Baran M17-Jun-09 2:25
Baran M17-Jun-09 2:25 
GeneralRe: DataTable Column Naming Pin
munklefish17-Jun-09 3:05
munklefish17-Jun-09 3:05 
AnswerRe: DataTable Column Naming Pin
Vimalsoft(Pty) Ltd17-Jun-09 2:24
professionalVimalsoft(Pty) Ltd17-Jun-09 2:24 
Good Afternoon

Step 1


--Example Table 
create table MYT
(
Column1 varchar(30) null, 
Column2 varchar(30) null,
Column3 varchar(30) null
)


i made some inserts in the tables like this

insert into MYT
values('mike','26 June','me@yahoo.com')


and i had this
--Assign Variables 
DECLARE @Col1 varchar(15)
set @Col1 = (select top 1Column1 from MYT)
--rename the Column 
exec sp_rename 'myT.Column1',@Col1 
go
--Assign Variables 
DECLARE @COL2 varchar(15)
set @Col2 = (select top 1 Column2 from MYT)
--rename the Column
exec sp_rename 'myT.Column2',@Col2
go
--Assign Variables
DECLARE @Col3 varchar(15)
set @Col3 = (select top 1 Column3 from MYT)
--rename the Column
exec sp_rename 'myT.Column3',@Col3


and the Tale looked like this

name	date	     email
=================================
name	date	    email
mike	26 June	    me@yahoo.com


as you can see the Columns are still in the table , Delete the first row.

hope it Helps

Vuyiswa Maseko

Vuyiswa Maseko,

Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/

GeneralRe: DataTable Column Naming Pin
munklefish17-Jun-09 2:31
munklefish17-Jun-09 2:31 
AnswerRe: DataTable Column Naming Pin
himanshu256117-Jun-09 2:37
himanshu256117-Jun-09 2:37 
GeneralRe: DataTable Column Naming Pin
munklefish17-Jun-09 2:40
munklefish17-Jun-09 2:40 
GeneralRe: DataTable Column Naming Pin
himanshu256117-Jun-09 2:56
himanshu256117-Jun-09 2:56 
QuestionHow to find performance of indivdual method in asp.net page Pin
sankraja17-Jun-09 1:36
sankraja17-Jun-09 1:36 
AnswerRe: How to find performance of indivdual method in asp.net page Pin
Not Active17-Jun-09 2:02
mentorNot Active17-Jun-09 2:02 
AnswerRe: How to find performance of indivdual method in asp.net page Pin
amol32117-Jun-09 2:19
amol32117-Jun-09 2:19 
Question[Message Deleted] Pin
LucBite17-Jun-09 1:27
LucBite17-Jun-09 1:27 
AnswerRe: here's my work flow scenario, Collin Pin
Vasudevan Deepak Kumar17-Jun-09 1:30
Vasudevan Deepak Kumar17-Jun-09 1:30 
AnswerRe: here's my work flow scenario, Collin Pin
Colin Angus Mackay17-Jun-09 14:23
Colin Angus Mackay17-Jun-09 14:23 
QuestionEdit and Save MS Word from IE Browser to Database Pin
sankraja17-Jun-09 1:14
sankraja17-Jun-09 1:14 
Questionhyperlink is not clickable. [modified] Pin
RajpootRohan17-Jun-09 1:14
professionalRajpootRohan17-Jun-09 1:14 
Questiondropdownlist validation problem when autopostback=true [modified] Pin
ademsandeepreddy17-Jun-09 0:14
ademsandeepreddy17-Jun-09 0:14 
AnswerRe: dropdownlist validation problem when autopostback=true Pin
Baran M17-Jun-09 0:58
Baran M17-Jun-09 0:58 
AnswerRe: dropdownlist validation problem when autopostback=true Pin
pbp_5717-Jun-09 1:42
pbp_5717-Jun-09 1:42 
Questionmd5 decryption Pin
Kissy1617-Jun-09 0:06
Kissy1617-Jun-09 0:06 
AnswerRe: md5 decryption Pin
Aman Bhullar17-Jun-09 0:28
Aman Bhullar17-Jun-09 0:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.