SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 .NET Inside SQL Server (2005)
 Column names display in stored procedure
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sql4us
Starting Member

24 Posts

Posted - 03/13/2013 :  15:32:11  Show Profile  Reply with Quote
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
Flowing Fount of Yak Knowledge

Germany
8765 Posts

Posted - 03/13/2013 :  15:46:56  Show Profile  Visit webfred's Homepage  Reply with Quote
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
Flowing Fount of Yak Knowledge

United Kingdom
2062 Posts

Posted - 03/14/2013 :  09:59:12  Show Profile  Visit jackv's Homepage  Reply with Quote
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 - 03/14/2013 :  13:16:36  Show Profile  Reply with Quote

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
Flowing Fount of Yak Knowledge

United Kingdom
2062 Posts

Posted - 03/15/2013 :  05:24:20  Show Profile  Visit jackv's Homepage  Reply with Quote
Your welcome

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000