Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 5th, 2004, 01:59 PM
wooze wooze is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 1 wooze User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Getting Stored Procedure Parameters - error need help

Below is the html code for getting the parameters I need for the Stored Procedure I created.
Getting the error:

Error Type:
ADODB.Command (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/maxi/sue_test/parameter.asp, line 17
line 17 is in red below ... what is wrong with it?



<%@ LANGUAGE = VBScript %>
<!-- #INCLUDE VIRTUAL="../adovbs.inc" -->

<HTML>

<HEAD><TITLE>Stored Proc Example</TITLE></HEAD>

<BODY>

<%

Set Conn = Server.CreateObject("ADODB.Connection")

' The following line must be changed to reflect your data source info

Conn.Open "maxihealth", "maxi", "bank"

set cmd = Server.CreateObject("ADODB.Command")

set cmd.ActiveConnection = Conn

' Specify the name of the stored procedure you wish to call

cmd.CommandText = "changelevel"

cmd.CommandType = adCmdStoredProc

' Query the server for what the parameters are

cmd.Parameters.Refresh

%>

<Table Border=1>

<TR>

<TD><B>PARAMETER NAME</B></TD>

<TD><B>DATA-TYPE</B></TD>

<TD><B>DIRECTION</B></TD>

<TD><B>DATA-SIZE</B></TD>

</TR>

<% For Each param In cmd.Parameters %>

<TR>

<TD><%= param.name %></TD>

<TD><%= param.type %></TD>

<TD><%= param.direction %></TD>

<TD><%= param.size %></TD>

</TR>

<%

Next

Conn.Close

%>

</TABLE>

</BODY>

</HTML>


Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft SQL Server > Getting Stored Procedure Parameters - error need help


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 3 hosted by Hostway
Stay green...Green IT