pass memo field to sql stored procedure parameter

B

Brett

Using Access 2k, SQL Server 2k, attempting to pass Access
long text (memo) contents as a parameter to a SQL stored
procedure. I can't find a data type to use in the
CreateParameter method. The following works, but limits
the text to the 8000 Varchar limit:

in Access:

..Parameters.Append .CreateParameter("@Note", adVarChar,
adParamInput, 8000, Me.Note)

in SQL Server stored procedure:

@Note varchar(8000) = Null,

What is the data type setting corresponding to the SQL
Text data type? For example,

in Access

..Parameters.Append .CreateParameter("@Note", ???,
adParamInput, , Me.Note)

in SQL Server stored procedure

@Note text = Null,

There is no adText type, and adVarChar or adLongVarChar
without setting a length do not work.

Thanks for the help.
Brett
 

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

Top