Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
バックエンドとしてsybaseを使用しています。vb6 をフロント エンドとして、ado をデータ モデルとして使用します。sybaseには、挿入トリガーがあります(テーブルに挿入が行われるとトリガーが起動します)。ADO を使用して VB6 でストアド プロシージャ/トリガーを呼び出しています。カスタム エラー メッセージ (sybase sp/trigger で記述) を vb6 形式で表示したいと考えています。これを達成する方法。
これを試して:
RAISERROR error-number [ format-string ] [, arg-list] RAISERROR 99999 'Invalid entry for this column: %1!', @val