Mag Chew
August 2nd, 2001, 06:59 AM
I'm currently connecting to SQL server 2000 with compatibility set to 6.5 for my database.
I'm making an ADO connection thru my vb program.
It's DSNless.
I'm wondering when u have this kind of connection, which SET options does it follow ?
Database / server / that particular login connection / etc... ?
I'm trying to switch off the ANSI_WARNINGS to OFF for this connection but it seems that no matter what command I use (sp_dboption / dbcc useroptions), I still get the warning like
'String or binary data would be truncated.'
How do I switch off this error message when I'm running through the program. I'm able to do this if I run from query analyzer.
Pls help urgently. Thanx.
p/s : I do not wish to change the existing program to cater for column length checking.
Is there a way to OFF all these options ?
I'm making an ADO connection thru my vb program.
It's DSNless.
I'm wondering when u have this kind of connection, which SET options does it follow ?
Database / server / that particular login connection / etc... ?
I'm trying to switch off the ANSI_WARNINGS to OFF for this connection but it seems that no matter what command I use (sp_dboption / dbcc useroptions), I still get the warning like
'String or binary data would be truncated.'
How do I switch off this error message when I'm running through the program. I'm able to do this if I run from query analyzer.
Pls help urgently. Thanx.
p/s : I do not wish to change the existing program to cater for column length checking.
Is there a way to OFF all these options ?