题目内容

TestKing.comusesSQLServer2005.Youareimplementingaseriesofviewsthatareusedinadhocqueries.TheviewsareusedtoenforceTestKing.comssecuritypolicyofabstractingdata.Someoftheseviewsperformslowly.Youcreateindexesonthoseviewstoincreaseperformance,whilestillmaintainingthecompany’ssecuritypolicy.Oneoftheviewsreturnsthecurrentdateasoneofthecolumns.TheviewreturnsthecurrentdatebyusingtheGETDATE()function.Thisviewdoesnotallowyoutocreateanindex.Youneedtocreateanindexontheview.
Whichtwoactionsshouldyouperform?()

查看答案
更多问题

Youarecreatinganewsecuritypolicyforanapplicationdomain.Youwritethefollowinglinesofcode.
PolicyLevelpolicy=PolicyLevel.CreateAppDomainLevel();
PolicyStatementnoTrustStatement=
newPolicyStatement(
policy.GetNamedPermissionSet("Nothing"));
PolicyStatementfullTrustStatement=
newPolicyStatement(
policy.GetNamedPermissionSet("FullTrust"));
YouneedtoarrangecodegroupsforthepolicysothatloadedassembliesdefaulttotheNothingpermissionset.Iftheassemblyoriginatesfromatrustedzone,thesecuritypolicymustgranttheassemblytheFullTrustpermissionset.
Whichcodesegmentshouldyouuse?()

YouareresponsibleformanagingthedatabaseschemaforanorderentryapplicationinaSQLServer2005database.Afteradesignreview,amemberofthedevelopmentstaffasksyoutoaddanewcolumnnamedCommissionRatetotheProducttable.Becausetheactualcommissionratesforallproductsarenotknownatthistime,eachproducthasadefaultcommissionrateof12percent.Theratecanbemodifiedasnecessary.Youaddthenewcolumn.Youneedtoconfigurethetabletoassignthedefaultvalueasefficientlyaspossible.
Whatshouldyoudo?()

YouareplanningtoimportcustomerdatafromtheCustomertableandtheCountrytableinyourSQLServer2000databaseintoaSQLServer2005database.Youwanttoensurethatduringtheimportprocess,eachvalueintheCountryCodecolumnoftheCustomertablehasacorrespondingrecordintheCountryCodecolumnintheCountrytableoftheSQLServer2005database.Youdefineaforeignkeybetweenthesetwotables.Thus,referentialintegritywillguaranteethattheimportroutinefailsifthereareanyrecordswhereaCountryCodevaluedoesnotexistintheCountrytablebutdoesexistintheCustomertable.YouneedtoensurethattheimportprocessdoesnotfailifrecordsareencounteredthatdonotexistintheCountrytable.
Whatshouldyoudo?()

西安自参考答案:√周朝开始至唐,有十个王朝在此建都,故称十朝古都。()

答案查题题库