Reply Interested Question

º

ºa¤Ö@¤½¥q

Problem fixed
^.^

Using ADODB.Command and call stored procedure

It can pass unicode data

You cannot call the stored procedure by using following method

set rs = server.createobject("ADODB.Recordset")
rs.execute "stored_procedure 'param1', 'param2'", connection

This method is sql collation dependency, and cannot stored other coding
for example: if you want said simplify chinese in database, which collation
is Taiwan, it is failed although you set the field as N'' type
^.^
 
B

Bob Barrows [MVP]

ºa¤Ö@¤½¥q said:
Problem fixed
^.^

Using ADODB.Command and call stored procedure

It can pass unicode data

You cannot call the stored procedure by using following method

set rs = server.createobject("ADODB.Recordset")
rs.execute "stored_procedure 'param1', 'param2'", connection

A recordset does not have an Execute method. Perhaps you intended to use
"Open" instead ... ?
This method is sql collation dependency, and cannot stored other
coding for example: if you want said simplify chinese in database,
which collation is Taiwan, it is failed although you set the field as
N'' type ^.^

I have no strong objections to using the command object, but perhaps you
should try:

set rs = server.createobject("ADODB.Recordset")
rs.open "stored_procedure N'param1', N'param2'", connection

Or:

set rs = server.createobject("ADODB.Recordset")
connection.stored_procedure param1,param2, rs

Bob Barrows
 
º

ºa¤Ö@¤½¥q

Yes, using Open
hehe
typing error~~ sorry

Of course, you can using addnew method to pass unicode

^.^
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,148
Messages
2,570,838
Members
47,385
Latest member
Joneswilliam01

Latest Threads

Top