Question : How to enable ap_OACreate

When trying to execute sp_oacreate in SQL Server 2005, I get this error:

Msg 15281, Level 16, State 1, Procedure sp_OACreate, Line 1
SQL Server blocked access to procedure 'sys.sp_OACreate' of component 'Ole Automation Procedures' because this component is turned off as part of the security configuration for this server. A system administrator can enable the use of 'Ole Automation Procedures' by using sp_configure. For more information about enabling 'Ole Automation Procedures', see "Surface Area Configuration" in SQL Server Books Online.

I'm having a tough time finding how to change this.  Could someone point me in the right direction please.  I'm sure it's just a switch somewhere.

Thanks!

Answer : How to enable ap_OACreate

start -> programs ->MS sql 2005 -> configuration tools -> surfce area configuration -> Surface area conf for features ->

under database engine you can see 'Ole automation', you need to enable this at the right pane and save
Random Solutions  
 
programming4us programming4us