SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseSQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old September 25th, 2000, 03:45 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
ASP Stored PRocedure

<i><b>Originally posted by : Amit (a_lodha@hotmail.com)</b></i><br />If I try to excute a storedprocedure using execute method of command object and then populate a recordset with it the resultant recordset becomes a forward only recordset. Is there any way that I can use the execute method of command object to run the stored procedure and still make the recordset scrollable.<br />Thanks<br /><br />

Reply With Quote
  #2  
Old September 26th, 2000, 01:26 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Savio Noronha (savion@mailcity.com)</b></i><br /><br />Hi Amit,<br />I even faced this problem when i was using the ADO 1.5. Now i am using the ADO 2.0 which comes with VB6.0<br />Of you can create a Recordset using command object.<br />Here is the sameple code for it<br /><br />g_cmdtestdata.CommandText = "EXEC testdb.dbo.SP_test " <br />g_cmdtestdata.ActiveConnection = g_conn<br />g_cmdtestdata.Open g_cmdBasedata, ,dOpenDynamic, adLockReadOnly<br /><br />Also instead of using the command above you can directly use the "EXEC SP_test" as the first para in the open. Incase you want to use parameters pass them with single quotes<br /><br />------------<br />Amit at 9/25/2000 12:45:01 AM<br /><br />If I try to excute a storedprocedure using execute method of command object and then populate a recordset with it the resultant recordset becomes a forward only recordset. Is there any way that I can use the execute method of command object to run the stored procedure and still make the recordset scrollable.<br />Thanks<br /><br />

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > ASP Stored PRocedure


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT