Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 .NET Inside SQL Server (2005)
 Column names display in stored procedure

Author  Topic 

sql4us
Starting Member

24 Posts

Posted - 2013-03-13 : 15:32:11
My table:

City Population Age Total_pop

A 40 15yr 57
B 32 24yr 97
C 54 65yr 84
D 35 44yr 39
E 20 70yr 47

I want to pull the columns and show as pop-up/display message like


City: A
15yr_Population : 40
Total_pop: 57

City: B
24yr_Population: 32
Total_Pop: 97

Any syntax for column "Population" to show based on "Age" column in sql stored procedure?

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2013-03-13 : 15:46:56
that should be done in the front end if possible


Too old to Rock'n'Roll too young to die.
Go to Top of Page

jackv
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2013-03-14 : 09:59:12
one returning data to front end recordset , iterate through the recordset , interacting with front end display objects

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page

sql4us
Starting Member

24 Posts

Posted - 2013-03-14 : 13:16:36

Thanks webfred and Jack. I did coded in the front end and it works :)
Thank you both :)


quote:
Originally posted by jackv

one returning data to front end recordset , iterate through the recordset , interacting with front end display objects

Jack Vamvas
--------------------
http://www.sqlserver-dba.com

Go to Top of Page

jackv
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2013-03-15 : 05:24:20
Your welcome

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page
   

- Advertisement -