Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 SQL Server Text Fields & ADO Command Objects

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-03-01 : 08:49:23
sqlfreak writes "Ok I have a text type data field in sql server, and want to update it from a stored procedure which is executed by ADO.

Prob 1. - There doesent seem to be a Text type ado parameter type.
Prob 2. - What to i set the sizes to in the proc variable declarations.

Prob 3.
Is it possible?

Help Much appreciated."

robvolk
Most Valuable Yak

15732 Posts

Posted - 2002-03-01 : 08:58:21
The ADO type constants you need are:

adLongVarChar   (201)  --For text
adLongVarWChar (203) --For ntext
adLongVarBinary (205) --For image


Use the Len() in VBScript to find out how long the value is, then put this into the CreateParameter method.

Go to Top of Page
   

- Advertisement -