Advertisement

04.15.2008 at 03:58PM PDT, ID: 23325550
[x]
Attachment Details

VB.NET -  Stored Procedure fails, "Procedure or function GetInActive has too many arguments specified".

Asked by wally_davis in Microsoft Visual Basic.Net

Tags: VB.NET 2005, IE 7.0

When I try to run a Stored Procedure (in vb.net) I get the following SqlException was unhandled error, "Procedure or function GetInActive has too many arguments specified".Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
-- VB.NET Code --
Table name is Uptime. Status is the name of the Column to pull data out of -->
Dim rdr As SqlDataReader
        sqlCom.Connection.Open()
        sqlCom.CommandText = "GetInActive"
        rdr = sqlCom.ExecuteReader(CommandBehavior.SingleResult)
        Try
            Do While rdr.Read
                rdr.Item("Status").ToString()
            Loop
        Catch ex As Exception
 
        End Try
 
--- SQL Stored Procedure ---
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
 
-- =============================================
-- Description:	SP to retrieve InActive workstation names
-- =============================================
ALTER PROCEDURE GetInActive
(
	@Status varchar(11) = 'InActive'
)
AS
-- BEGIN
	SELECT Mac From Uptime 
	WHERE Status = @Status
-- END
GO
[+][-]04.15.2008 at 04:13PM PDT, ID: 21363573

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.15.2008 at 04:17PM PDT, ID: 21363588

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.15.2008 at 04:19PM PDT, ID: 21363600

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.15.2008 at 04:30PM PDT, ID: 21363652

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.15.2008 at 04:36PM PDT, ID: 21363681

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.15.2008 at 04:53PM PDT, ID: 21363754

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.15.2008 at 05:10PM PDT, ID: 21363839

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.15.2008 at 05:17PM PDT, ID: 21363862

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.15.2008 at 05:28PM PDT, ID: 21363893

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.15.2008 at 06:08PM PDT, ID: 21364028

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.15.2008 at 06:15PM PDT, ID: 21364054

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.15.2008 at 06:26PM PDT, ID: 21364086

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.15.2008 at 06:39PM PDT, ID: 21364123

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.15.2008 at 06:45PM PDT, ID: 21364151

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual Basic.Net
Tags: VB.NET 2005, IE 7.0
Sign Up Now!
Solution Provided By: ydramu
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628