TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
sivapratap Kurapati
NA
95
38.6k
Regarding SQLException
Apr 18 2014 1:51 AM
Hi all,
I have a procedure in database which takes 11 inputs and returns a record.through my asp.net code i am passing the 11 parameters say like
cmd.paramets.add(new sqlParameter ("@jobId",sqldatatype.int));
cmd.parametes.addwithvalue("@jobId",jobId);simarly for 10 more parameters.
connection.open();
dataadapterObject=new sqldataadapter(cmd);
dataadapterobject.fill(dataset);//but here it is catching an exception and saying"Stored Procedure has too many arguments specified"
//SQLException is getting caught.
i am passing the same parameters as speified in stored proc.Can u please help me with the problem.i have checked the connectionString in web.config.everything is fine.
Regards,
Sivapratap.
Reply
Answers (
3
)
Date Conversion
delete in sql