I have Word Script that is trying to insert the contents of a document into a SQL/2000 database field. It keeps failing with an error code of "Multiple-step operation generated errors. Check each status value." Here is a piece of the code:
Set cn = CreateObject("ADODB.Connection"
cn.ConnectionString = "Provider=sqloledb;Data Source="
cn.ConnectionString = cn.ConnectionString & "PHILL\SQL2000" & ";Initial Catalog=" & "umantest" & ";User id=sa;password=;"
cn.CursorLocation = adUseClient
cn.Open
Set Cmd = CreateObject("ADODB.Command"
Set Cmd.ActiveConnection = cn
rs.Open "select * from policy where PKPOL1 = " &
policy, cn, adOpenKeyset, adLockOptimistic
Set rngMainText = ActiveDocument.Content
rs!DOM = rngMainText.Text
* This is where the error occurs !!!!!!!
How can I convert the document content to a BLOB field ?
Is there a way to do a cast to a BlOB?
Thanks.
Set cn = CreateObject("ADODB.Connection"
cn.ConnectionString = "Provider=sqloledb;Data Source="
cn.ConnectionString = cn.ConnectionString & "PHILL\SQL2000" & ";Initial Catalog=" & "umantest" & ";User id=sa;password=;"
cn.CursorLocation = adUseClient
cn.Open
Set Cmd = CreateObject("ADODB.Command"
Set Cmd.ActiveConnection = cn
rs.Open "select * from policy where PKPOL1 = " &
policy, cn, adOpenKeyset, adLockOptimistic
Set rngMainText = ActiveDocument.Content
rs!DOM = rngMainText.Text
* This is where the error occurs !!!!!!!
How can I convert the document content to a BLOB field ?
Is there a way to do a cast to a BlOB?
Thanks.