Database Knowledge Base
Search:     Advanced search
Browse by category:
Glossary | Contact Us

You are assigned the role of a Certification authority (CA) in your company. As a CA, you are required to create certificates as and when requested by users in your company. On Adam's request, you issue the following Transact-SQL Statement to create a certificate (line numbers are for referene only.):

Add comment
Views: 768
Votes: 0
Comments: 36

1. Create certificate cert_adam1
2. authorization adam
3. encryption_password  ='passadam'
4. With Subject = '02/02/2007'
5. expiry_date = '02/02/2007'

Error at Line 3

When you issue this statement, an error will be enerated at line 3 becaues the syntax of the statement is in coorrect at line 3. To correct the statement, you should modify the statement as follows:

1. Create certificate cert_adam1
2. Authorization adm
3. encryption by password = 'passadam'
4. with subject = 'certificateforadam'
5. expiry_date = '02/02/2007'

The CREATE CERTIFICATE Transact-SQL Statement is used to create a certificate. A certificate is used as a secuure mechanism to authenticate and encrypt messages between servers. A certificate is a digitally signed document and provides a private public key pair that is used to authenticate the users who are trying to access secure information. The AUTHORIZATION clause in  the create certificate Transact-SQL statement specifies the user who owns the certificate. In tis statement, Adam will own the certificate. the ENCRYPTION BY PASSWORD clause specifies the password that will be provided to encrypt the privae key of the certificate. the WITH SUBJECT clause specifies the subject of the certificate. The EXPIRY_DATE clause specifies the validity period of the certificate if the EXPIRY_DATE CLAUSE IS NOT SPECIFIED. it defaults to one year after the START_DATE THE START_DATE clause specifies the date on which the certificate becomes valid.

The option stating that the statemente will result in an error at line 2 is incorrect because no error will be generated at line 2. Line 2 in this statement specifies that Adam is the owner of the certificate. The opton stating that the statement will result in an error at line 5 is incorrect because no error will be generated at line 5. Line 5 in this statement spedifies the date up to which the certificate will  remain valid.

The option stating that the statement will execute successfully and create a certificate named cert_adam1 owned by you is incorrect. the Statement will not execute successfully because an error will be generated at line 3.

The opton stating that the statement will execute successfully and create a certificate named Cert_adam1 owned by adam is inocrrect. the statement will not execute successfully because an error will be generated at line 3.

 

 

 

Showing: 1-20 of 36    »»
Comments

31 Dec, 1969   |   Guest
database design


31 Dec, 1969   |   Guest
sql insert command


31 Dec, 1969   |   Guest
online sql training


31 Dec, 1969   |   Guest
sql certificate


31 Dec, 1969   |   Guest
sql query analyzer


31 Dec, 1969   |   Guest
relational database design


31 Dec, 1969   |   Guest
internet database


31 Dec, 1969   |   Guest
database schema examples


31 Dec, 1969   |   Guest
dbms basics


31 Dec, 1969   |   Guest
sql server certification


31 Dec, 1969   |   Guest
sql server trim


31 Dec, 1969   |   Guest
in sql server


31 Dec, 1969   |   Guest
microsoft sql server 2008 r2


31 Dec, 1969   |   Guest
software sql server


31 Dec, 1969   |   Guest
sql server magazine


31 Dec, 1969   |   Guest
dbms examples


31 Dec, 1969   |   Guest
dbms tutorials


31 Dec, 1969   |   Guest
sql wiki


31 Dec, 1969   |   Guest
microsoft sql server 2008


31 Dec, 1969   |   Guest
windows database software


Showing: 1-20 of 36    »»


Add comment

Others in this Category
document Which Stored procedure will be used to create an alert in database?
document which clause specified while creating a stored procedure causes the stored procedure to recomplile every time it is run?
document Which transport protocol cannot be used for database mirroring?
document which clause in the CREATE CERTIFICATE statements specifies the user who owns the certificate?
document which function displas the state of information of the transaction in the session?
document which pages in the SQL Server Management Studio allow you to configure different properties of backup?
document Which function displays the state of information of the transaction in the session?
document Which argument should be specified in the bcp command to perform an export?
document Which clause specifies the assembly name and class name while creating a user-defined type by using the CREATE TYPE statement.
document on which two editions of Windows 2003 can you install the SQL Server 2005 Enterprise edition?
document Which stored procedure is used to change the password for the distributor?
document A partititon scheme can be based on how many partition functions?
document Which statement can be used to import data from a data file into a temporary table?
document What should be the value in the STATUS clause in the CREATE QUEUE statement if you want that the queue should receive messages?



RSS