Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

how to call a stored procedure in an insert command
hi,
i had a small doubt , i have a table xxx with two columns (a int,b int
) and i have inserted 5 rows my query is to add the two colums using a
stored procedure and the result has to be displayed in an separate
column --this has to be done only stored procedures ---i know how to
solve the problem using computed columns concept

like  this

create table yyy(a int ,b int ,total as a+b)

insert into yyy values (12,13)
select * from yyy

i need the answer using stored procedures---is it possible

pls help me
satish


Report this thread to moderator Post Follow-up to this message
Old Post
satish
02-25-06 02:44 PM


Re: how to call a stored procedure in an insert command
create proc get_your_calc
as
begin
select a, b, total = a + b
from yyy

end


--
Tony Rogerson
SQL Server MVP
http://sqlserverfaq.com - free video tutorials


"satish" <satishkumar.gourabathina@gmail.com> wrote in message
news:1140593950.858980.60120@g44g2000cwa.googlegroups.com...
> hi,
> i had a small doubt , i have a table xxx with two columns (a int,b int
> ) and i have inserted 5 rows my query is to add the two colums using a
> stored procedure and the result has to be displayed in an separate
> column --this has to be done only stored procedures ---i know how to
> solve the problem using computed columns concept
>
> like  this
>
> create table yyy(a int ,b int ,total as a+b)
>
> insert into yyy values (12,13)
> select * from yyy
>
> i need the answer using stored procedures---is it possible
>
> pls help me
> satish
>



Report this thread to moderator Post Follow-up to this message
Old Post
Tony Rogerson
02-25-06 02:44 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

Microsoft SQL Server forum archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 05:04 AM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006