17.07.2015 Views

Download eBook (PDF) - Red Gate Software

Download eBook (PDF) - Red Gate Software

Download eBook (PDF) - Red Gate Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix A – Views and Functions ReferenceVerifySignedByCertThis function determines if the encrypted data has changed since it wasdigitally signed. The returned value is either a 1, which indicates that the datahas not changed, or 0 which indicates that the data has changed. This functionis often used in conjunction with the DecryptByCert function.Successful digital signature verification requires the user to have VIEWDEFINITION permissions on the certificate that was used to generate thedigital signature.USE HomeLending;GOSELECTVerifySignedByCert(Cert_ID('MySelfSignedCert'),Convert(nvarchar(max),DecryptByCert(Cert_ID('MySelfSignedCert'),Identification_Value,N'MyStr0ngP@ssword2009')),N'MyStr0ngP@ssword2009')FROMdbo.Borrower_IdentificationWHEREBorrower_ID = 1;GOListing A-27: Syntax of VerifySignedByCert.String Manipulation Function ReferenceAll of the following system functions provide support for the ability tomanipulate strings of characters that is available in SQL Server 2005 as well asSQL Server 2008:ASCII and CHARThe ASCII and CHAR system functions provide the conversion functionalitybetween character values and ASCII code values. These system functions are221

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!