Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Store Procedure

Status
Not open for further replies.

beti

Programmer
Oct 6, 2002
26
US
Dear friends,

I'm a newer to PowerBuilder 7. I have some questions reqarding MS SQL Server store procedure.

1. How to I call a store Procedure(SqL server) from a datawindow.
2. if I need to reture a set of records from database..how do I do it? I am a Java programmer, I know we can use resultset and arraylist to store the records....but how about Pbscript?

if anyone can give me advice! Thanks
 
1) Create your stored proc. Connect to the db in Powerbuilder. Create new datawindow using the wizard and choose 'stored procedure' as your datasource.

2) Once you have done #1 above, you have your record set when your call the retrieve method on the datawindow.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top