Showing posts with label executable. Show all posts
Showing posts with label executable. Show all posts

Monday, March 19, 2012

Examples of Certificates created with Private Key and FROM EXECUTABLE FILE options

Hi

I am looking at documentation of CREATE CERTIFICATE statement. I am having hard time in understanding if I want to create CERTIFICATE with above mentioned options, how I am supposed to create either PRIVATE KEY file or EXECUTABLE file. any example would be really helpful for what I am doing here.

thanks

Satya

Take a look at makecert: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrfcertificatecreationtoolmakecertexe.asp. This utility generates certificates in those two types of files.

But note that you don't need to create those files to create a certificate. Those options are only used to import a certificate from such files. You can create a certificate within SQL Server by not using those options. You can find several examples on my blog, for example: http://blogs.msdn.com/lcris/archive/2005/06/10/428178.aspx.

Also, you can create those files by backing up a certificate created in SQL Server. See syntax for BACKUP CERTIFICATE: http://msdn2.microsoft.com/en-us/library/ms178578(SQL.90).aspx.

Thanks
Laurentiu

Friday, February 17, 2012

Event Handler Refresh

I am current using Event Handlers in an SSIS package, but when adding a new EventHandler type eg. OnPreExecute, to an executable within the package, I am unable to see this new EventHandler defined in the hierarchical listing on the left hand combo box (named Executables).

Can't seem to find a Refresh option anywhere. I've only been able to see these newly created EventHandlers in the hierarchical listing by closing and re-opening the package.

Is this a 'feature' or am I missing a Refresh option somewhere.

Thanks.

Check the scope of the eventhandler you have created. Is it possible you are looking in the wrong place in the Package Explorer?

-Jamie

|||

Hi Jamie,

I have checked the scope and I am not looking in the incorrect place.

I wasn't not looking in Package Explorer though, but in the Executables drop-down box on the Event Handlers tab.

However the problem for me is replicated in Package Explorer also. Would you confirm that you are able to duplicate the problem ?

P R W.

|||

I don't seem to be able to repro your issue.

You said you were not looking at the Package Explorer, were you in the Event Handler diagram, then? If yes, and you did set the "Executables" drop down to the correct item, did you also set the "Event Handler" drop down (on the right) to, say"OnPreExecute" if that is the event? Since the default there is "OnError"

If you still get this, pls describe your SQL build version (RTM, SP1?) and your detailed steps. We'll see how we can help.

thanks

wenyang

|||

Hi P R W,

I'm not positive, but I think I saw this before I applied SQL Server 2005 SP1. Have you applied SP1?

Hope this helps,

Andy