473,406 Members | 2,549 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

stored procedur

i wrote this stored procedur in sql server 2000, and i used this procedure vb6. i got error .
error is:Run_time error '-247217904)80040e10)':
procedure 'spInsert_CSQRelation ' expect parameter
'@wid',which was not supplied.

CREATE procedure spInsert_CSQRelation
@wid integer,
@phno integer ,
@whname varchar(200)
as
declare @idAffected int
begin
insert into warehouse

(wid,phno,whname)
values

(@wid,@phno,@whname)

Set NoCount On
Select @idAffected As 'idAffected'

return
end
exec spInsert_CSQRelation @wid,@phno,@whname
GO
Jan 25 '08 #1
2 969
DrBunchman
979 Expert 512MB
It may be that you are calling the stored procedure with a null value - try putting a watch on all your parameter variables in debug or adding a message box right before you call the procedure which will show you their values.

If this doesn't help then please print the code which calls the stored procedure.

Dr B
Jan 25 '08 #2
ck9663
2,878 Expert 2GB
i wrote this stored procedur in sql server 2000, and i used this procedure vb6. i got error .
error is:Run_time error '-247217904)80040e10)':
procedure 'spInsert_CSQRelation ' expect parameter
'@wid',which was not supplied.

CREATE procedure spInsert_CSQRelation
@wid integer,
@phno integer ,
@whname varchar(200)
as
declare @idAffected int
begin
insert into warehouse

(wid,phno,whname)
values

(@wid,@phno,@whname)

Set NoCount On
Select @idAffected As 'idAffected'

return
end
exec spInsert_CSQRelation @wid,@phno,@whname
GO

if your procedure call is included in your create stored proc,and your @wid is a variable outside your stored proc, what is it's value? how did you call it in vb?

-- ck
Jan 25 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Konrad Karall | last post by:
Hi everybody! I have to evaluate MySQL 5.0 for a new DB-project. Does anyone has a idea how to get a Rowset from a stored procedure on a MySQL-server 5.0 I have tried CREATE PROCEDURE...
0
by: diska | last post by:
Hi. I have some problem with stored procedure SQL using Stored Procedure Builder 7.1 issue with IBM BD2. When i call a stored procedure in command line or when i try to use it in a COBOL...
6
by: harborboy76 | last post by:
Hi, I am trying to insert a large number of rows into a table inside a SPL. But every time, I run the SPL, the table is locked because of the INSERT. When I tried to issue a COMMIT, right after...
5
by: Rhino | last post by:
This question relates to DB2 Version 6 on OS/390. Can a (COBOL) stored procedure on this platform do file I/O, i.e. write to a sequential file? I am trying to debug a stored procedure. As far...
5
by: Tim Marshall | last post by:
I was following the thread "Re: Access Treeview - Is it Safe Yet?" with interest and on reading the post describing Lauren Quantrell's SmartTree, I've run into something I don't understand: Stored...
2
by: Dino L. | last post by:
How can I run stored procedure (MSSQL) ?
2
by: jed | last post by:
I have created this example in sqlexpress ALTER PROCEDURE . @annualtax FLOAT AS BEGIN SELECT begin1,end1,deductedamount,pecentageextra FROM tax
2
by: shravyas | last post by:
what is stored procedure? what is the use of stored procedure? syntax's for stored procedure? how it will use in vb 6.0? for add,modify,delete the records in vb6.0 how stored procedure used?
0
by: mirandacascade | last post by:
Questions toward the bottom of the post. Situation is this: 1) Access 97 2) SQL Server 2000 3) The Access app: a) sets up pass-thru query b) .SQL property of querydef is a string, the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.