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
 Development Tools
 Other Development Tools
 run stored procedure from a html button

Author  Topic 

clinton_eg
Yak Posting Veteran

60 Posts

Posted - 2010-11-03 : 16:26:10
Team

I am using SQL 2005, i have created a stored procedure (Lets name it as sp_updateTab) which will update a particula table based on data from another.

i know how to execute the SP using SQL Query, however im curious to know how to execute an SQL Stored Procedure by the click of a HTML button.

Please could anyone help me with this query.
Thanks

Ewan Gilby

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2010-11-21 : 17:44:48
no you cant.

You need a server technology, such as class asp or asp.net and put the logic in the code behind.
Go to Top of Page

clinton_eg
Yak Posting Veteran

60 Posts

Posted - 2010-12-09 : 09:59:57
Thanks for your reply,
I have MS visual studio installed on my system which helps me in creating .aspx pages.
im fairly new to this.
Do you have any articles that i could refer to on what code i could use to get this done?

Ewan Gilby
Go to Top of Page

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2010-12-09 : 10:37:59
http://www.vbdotnetheaven.com/UploadFile/dclark/StoredProceduresinVBdotNET04082005072716AM/StoredProceduresinVBdotNET.aspx

http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.aspx
Go to Top of Page

clinton_eg
Yak Posting Veteran

60 Posts

Posted - 2010-12-10 : 00:13:14
Thanks for your help..

Ewan Gilby
Go to Top of Page

clinton_eg
Yak Posting Veteran

60 Posts

Posted - 2011-02-23 : 06:24:30
I would also suggest having a look at this KB atricle from Microsoft.
http://support.microsoft.com/kb/306574

Ewan Gilby
Go to Top of Page
   

- Advertisement -