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 April 7th, 2000, 07:14 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
SQL Stored procedure

<i><b>Originally posted by : Tony (webmaster@gratis4free.com)</b></i><br />Hi,<br /> I'd be very grateful if someone could give me a bit of help. I need to get a stored procedure to do a search in a Sql database and then return the recordcount. Can anyone help me please? <br /><br />I thankyou in advance for any help you can give me.

Reply With Quote
  #2  
Old April 10th, 2000, 03:25 PM
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 : Mike B (mikeb811@hotmail.com)</b></i><br />set objCmd = Server.CreateObject("ADODB.Command")<br /><br />'For DSN-Less connection<br />'driv = "Provider=Microsoft.Jet.OLEDB.4.0;"<br />'datasource = "Data Source=your db name goes here;"<br />'conn.Open driv & datasource<br /> <br /> OR <br /><br />'For DSN conenctions<br />DSN_Name="your DNS name goes here"<br />conn.Open DSN_Name<br /><br />strSQL = "SELECT * from courses;"<br />objCmd.CommandText = "name of stored procedure"<br />objCmd.CommandType = adCmdStoredProc<br />objCmd.ActiveConnection = conn<br />set rscnt = objCmd.execute()<br /><br />This leaves query results in recorset rscnt.<br /><br />Hope this helps<br /><br />Mike<br /><br />------------<br />Tony at 4/7/2000 5:14:07 AM<br /><br />Hi,<br /> I'd be very grateful if someone could give me a bit of help. I need to get a stored procedure to do a search in a Sql database and then return the recordcount. Can anyone help me please? <br /><br />I thankyou in advance for any help you can give me.

Reply With Quote
  #3  
Old April 15th, 2000, 03:02 PM
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 : Aj (ajay@aimpro.co.uk)</b></i><br />How can I use this mechanism to write search engine. Remember that in the input box, pleeple can type more than one word?<br /><br /><br /><br />------------<br />Mike B at 4/10/2000 1:25:52 PM<br /><br />set objCmd = Server.CreateObject("ADODB.Command")<br /><br />'For DSN-Less connection<br />'driv = "Provider=Microsoft.Jet.OLEDB.4.0;"<br />'datasource = "Data Source=your db name goes here;"<br />'conn.Open driv & datasource<br /> <br /> OR <br /><br />'For DSN conenctions<br />DSN_Name="your DNS name goes here"<br />conn.Open DSN_Name<br /><br />strSQL = "SELECT * from courses;"<br />objCmd.CommandText = "name of stored procedure"<br />objCmd.CommandType = adCmdStoredProc<br />objCmd.ActiveConnection = conn<br />set rscnt = objCmd.execute()<br /><br />This leaves query results in recorset rscnt.<br /><br />Hope this helps<br /><br />Mike<br /><br />------------<br />Tony at 4/7/2000 5:14:07 AM<br /><br />Hi,<br /> I'd be very grateful if someone could give me a bit of help. I need to get a stored procedure to do a search in a Sql database and then return the recordcount. Can anyone help me please? <br /><br />I thankyou in advance for any help you can give me.

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > SQL 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 1 hosted by Hostway