problem using stored procedures

I have no problem accessing sql server with the following connection string

SET conn = Server.CreateObject("ADODB.Connection")
conn.open Application("dbConnect"),Application("dbUSER"),Application("dbPW")

But I cannot get the stored procedures working!! Whats wrong with the following please?

cnnStoredProc.Open="Provider=SQLOLEDB.1;Password=" & Application("dbPW") & ";Persist Security Info=True;User ID=xxxxx;Initial Catalog=dbname;Data Source=www.xxx.co.uk"

the code is classic asp.

thanks
michaeldean99Asked:
Who is Participating?
 
PryratesConnect With a Mentor Commented:
at a first glance - nothing in particular
can you execute simple sql statements?
Otherwise your user seams to have limited access or is restricted to execute statements.

For conenction strings have a look here:
http://www.connectionstrings.com/
0
 
jogosConnect With a Mentor Commented:
userid=xxxx and initial calalog=dbname I hope they are not the real ones in your connect string (sorry to ask, but such things happen)

What's the problem? You cannot connect or you can connect but cannot execute procedure
When something fails there will be an errormessage that could guide you to the exact problem.


0
 
michaeldean99Author Commented:
no, they are not the real codes!

I cannot get the classic asp code to process the stored procedure. I get
Wrong number of arguments or invalid property assignment

At the moment I cannot access the online database  so I cannot establish the problem. I was checking that that my code was correct. It seems to be so I will have to wait for the dba to look at the online database.
thanks
0
 
jogosCommented:
And you're getting that message on the call of the stored procedure? Annyway then you don't get it on your connection so that part of your question is gone.

Leaves you with the parameters or their types that don't match the procedure.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.