- - PR -
S
1
投稿者 | 投稿内容 |
---|---|
|
投稿日時: 2004-07-02 13:42
Sybaseのプロシージャ(SP)でパラメータでDB名とオーナ名を引渡し、
Selectなどをしたいのですがコンパイルが通りません。 教えて下さい。宜しくお願いします。 問題は、 @DB_name .@DB_Owner .foo_mst のみコンパイルエラーになります。 == SQL文 ======================= create procedure DM_SPC_foo_mst (@DB_name varchar(15), @DB_Owner varchar(15), @foo_cd int) as begin select foo_cd, foo_name, foo_short_name, foo_fb_name from @DB_name.@DB_Owner.foo_mst where @foo_cd = foo_cd end ================================ |
|
投稿日時: 2004-07-02 14:10
Top > @IT会議室 > Insider.NET 会議室 で質問するより、
Top > @IT会議室 > Database Expert 会議室 の方が、 返信が期待できると思います。 _________________ えムナウ Microsoft MVP for Visual Developer - C#,2005/01-2007/12 えムナウのプログラミングのページ Blog1 Blog2 |
1