0

Possible Duplicate:
Invoking CLR stored procedures

Does anybody know how to call a CLR stored procedure using select statement?

Community
  • 1
  • 1
Shami C
  • 87
  • 1
  • 7

1 Answers1

3

As far as I know it's not possible without OPENQUERY or OPENROWSET, you'd better use CLR table function. If you need to insert data from stored procedure

insert into Table
exec <your CLR procedure>
Roman Pekar
  • 107,110
  • 28
  • 195
  • 197
  • The SP accepts 2 parameters and inserts some values into a table. When I excute, it is returning 0 and not inserting into table. So pls let me know how to call it. – Shami C Oct 18 '12 at 12:12
  • well your table schema should be exactly the same that schema of rowset returned by stored procedure. you can pass parameters into procedure by `exec = value ` – Roman Pekar Oct 18 '12 at 12:15