I get the following error:
Server: Msg 4408, Level 16, State 1, Line 1
The query and the views or functions in it exceed the limit of 256 tables.
I have a fairly large Query which works fine and I do have about 6 Views
that I delete and recreate over and over. There is nowhere near 256 tables.
What would cause this?
I am running this from Sql Query Analyser run from EM.
Thanks,
Tom
"tshad" <tfs@.dslextreme.com> wrote in message
news:e5BKLWovFHA.3764@.TK2MSFTNGP09.phx.gbl...
> I got the following error:
>|||tahad
try1) DBCC FREEPROCCACHE
stil if you face problem this should solve
2) DBCC CHECKDB once on the table.
POST BACK WHAT HAPPEND?
Regards
R.D
"tshad" wrote:
> Accidently sent this before being done.
> I get the following error:
> Server: Msg 4408, Level 16, State 1, Line 1
> The query and the views or functions in it exceed the limit of 256 tables.
> I have a fairly large Query which works fine and I do have about 6 Views
> that I delete and recreate over and over. There is nowhere near 256 table
s.
> What would cause this?
> I am running this from Sql Query Analyser run from EM.
> Thanks,
> Tom
> "tshad" <tfs@.dslextreme.com> wrote in message
> news:e5BKLWovFHA.3764@.TK2MSFTNGP09.phx.gbl...
>
>|||"R.D" <RD@.discussions.microsoft.com> wrote in message
news:A1AC1E51-3924-430B-95AC-ED8B83CFF05C@.microsoft.com...
> tahad
> try1) DBCC FREEPROCCACHE
> stil if you face problem this should solve
> 2) DBCC CHECKDB once on the table.
> POST BACK WHAT HAPPEND?
> Regards
> R.D
>
The FREEPROCCACHE gives me this:
DBCC execution completed. If DBCC printed error messages, contact your
system administrator.
Still had the error so I ran
DBCC CHECKDB
DBCC results for 'VHR'.
DBCC results for 'sysobjects'.
There are 3786 rows in 64 pages for object 'sysobjects'.
DBCC results for 'sysindexes'.
There are 1254 rows in 56 pages for object 'sysindexes'.
DBCC results for 'syscolumns'.
There are 8740 rows in 143 pages for object 'syscolumns'.
DBCC results for 'systypes'.
There are 26 rows in 1 pages for object 'systypes'.
DBCC results for 'syscomments'.
There are 3371 rows in 58 pages for object 'syscomments'.
DBCC results for 'sysfiles1'.
There are 2 rows in 1 pages for object 'sysfiles1'.
DBCC results for 'syspermissions'.
There are 2601 rows in 10 pages for object 'syspermissions'.
DBCC results for 'sysusers'.
There are 38 rows in 1 pages for object 'sysusers'.
DBCC results for 'sysproperties'.
There are 0 rows in 0 pages for object 'sysproperties'.
DBCC results for 'sysdepends'.
There are 1479 rows in 7 pages for object 'sysdepends'.
DBCC results for 'sysreferences'.
There are 0 rows in 0 pages for object 'sysreferences'.
DBCC results for 'sysfulltextcatalogs'.
There are 0 rows in 0 pages for object 'sysfulltextcatalogs'.
DBCC results for 'sysfulltextnotify'.
There are 0 rows in 0 pages for object 'sysfulltextnotify'.
DBCC results for 'sysfilegroups'.
There are 1 rows in 1 pages for object 'sysfilegroups'.
DBCC results for 'EEmploy'.
There are 672 rows in 34 pages for object 'EEmploy'.
DBCC results for 'RecruitingExpense'.
There are 0 rows in 0 pages for object 'RecruitingExpense'.
DBCC results for 'UKCClass'.
There are 2 rows in 1 pages for object 'UKCClass'.
DBCC results for 'EOSHA'.
There are 13 rows in 1 pages for object 'EOSHA'.
DBCC results for 'UKECertEvent'.
There are 0 rows in 0 pages for object 'UKECertEvent'.
DBCC results for 'UKTSSPHistory'.
There are 0 rows in 0 pages for object 'UKTSSPHistory'.
DBCC results for 'UKTNIStdHistory'.
There are 0 rows in 0 pages for object 'UKTNIStdHistory'.
DBCC results for 'UKTCostDetail'.
There are 0 rows in 0 pages for object 'UKTCostDetail'.
DBCC results for 'DesktopResponse'.
There are 0 rows in 0 pages for object 'DesktopResponse'.
DBCC results for 'EPayrollTax'.
There are 507 rows in 16 pages for object 'EPayrollTax'.
DBCC results for 'CheckSummEFT'.
There are 20214 rows in 426 pages for object 'CheckSummEFT'.
DBCC results for 'WaAssignExcept'.
There are 0 rows in 0 pages for object 'WaAssignExcept'.
DBCC results for 'AccItem'.
There are 0 rows in 0 pages for object 'AccItem'.
DBCC results for 'UKCPayGroup'.
There are 2 rows in 1 pages for object 'UKCPayGroup'.
DBCC results for 'DesktopRule'.
There are 0 rows in 0 pages for object 'DesktopRule'.
DBCC results for 'UKCCostCodeFacet'.
There are 0 rows in 0 pages for object 'UKCCostCodeFacet'.
DBCC results for 'UKEPBatch'.
There are 0 rows in 0 pages for object 'UKEPBatch'.
DBCC results for 'UKECreditBatchItem'.
There are 0 rows in 0 pages for object 'UKECreditBatchItem'.
DBCC results for 'EBeneficiary'.
There are 0 rows in 0 pages for object 'EBeneficiary'.
DBCC results for 'JobADA'.
There are 0 rows in 0 pages for object 'JobADA'.
DBCC results for 'AppItem'.
There are 0 rows in 0 pages for object 'AppItem'.
DBCC results for 'UKSelectSet'.
There are 0 rows in 0 pages for object 'UKSelectSet'.
DBCC results for 'PayZone'.
There are 0 rows in 0 pages for object 'PayZone'.
DBCC results for 'CheckSummHE'.
There are 44893 rows in 1051 pages for object 'CheckSummHE'.
DBCC results for 'Thing'.
There are 72 rows in 2 pages for object 'Thing'.
DBCC results for 'BenElig'.
There are 12 rows in 1 pages for object 'BenElig'.
DBCC results for 'EqItem'.
There are 7968 rows in 153 pages for object 'EqItem'.
DBCC results for 'MassEnrollSubItem'.
There are 0 rows in 0 pages for object 'MassEnrollSubItem'.
DBCC results for 'ReqBase'.
There are 0 rows in 0 pages for object 'ReqBase'.
DBCC results for 'EBenefit'.
There are 0 rows in 0 pages for object 'EBenefit'.
DBCC results for 'UKCPension'.
There are 0 rows in 0 pages for object 'UKCPension'.
DBCC results for 'UKEPBatchItem'.
There are 0 rows in 0 pages for object 'UKEPBatchItem'.
DBCC results for 'ESignature'.
There are 53 rows in 2 pages for object 'ESignature'.
DBCC results for 'UKSelectSetCriterium'.
There are 0 rows in 0 pages for object 'UKSelectSetCriterium'.
DBCC results for 'EUnion'.
There are 172 rows in 4 pages for object 'EUnion'.
DBCC results for 'UKTStudentLoan'.
There are 0 rows in 0 pages for object 'UKTStudentLoan'.
DBCC results for 'TrainingBudget'.
There are 0 rows in 0 pages for object 'TrainingBudget'.
DBCC results for 'Position'.
There are 409 rows in 13 pages for object 'Position'.
DBCC results for 'UKCDataCodeFacet'.
There are 1625 rows in 36 pages for object 'UKCDataCodeFacet'.
DBCC results for 'JobCode'.
There are 130 rows in 7 pages for object 'JobCode'.
DBCC results for 'UKEDetail'.
There are 0 rows in 0 pages for object 'UKEDetail'.
DBCC results for 'DesktopSession'.
There are 0 rows in 0 pages for object 'DesktopSession'.
DBCC results for 'MassEnrollFund'.
There are 0 rows in 0 pages for object 'MassEnrollFund'.
DBCC results for 'AppPrevEmploy'.
There are 0 rows in 0 pages for object 'AppPrevEmploy'.
DBCC results for 'Account'.
There are 0 rows in 0 pages for object 'Account'.
DBCC results for 'CheckSummSpec'.
There are 89922 rows in 1594 pages for object 'CheckSummSpec'.
DBCC results for 'BenRate'.
There are 0 rows in 0 pages for object 'BenRate'.
DBCC results for 'EWageAssign'.
There are 0 rows in 0 pages for object 'EWageAssign'.
DBCC results for 'UKCXCode'.
There are 0 rows in 0 pages for object 'UKCXCode'.
DBCC results for 'TrainingClass'.
There are 0 rows in 0 pages for object 'TrainingClass'.
DBCC results for 'Notes'.
There are 486 rows in 21 pages for object 'Notes'.
DBCC results for 'ESkill'.
There are 0 rows in 0 pages for object 'ESkill'.
DBCC results for 'UKSelectSetDisplay'.
There are 0 rows in 0 pages for object 'UKSelectSetDisplay'.
DBCC results for 'UKEPRPDetail'.
There are 0 rows in 0 pages for object 'UKEPRPDetail'.
DBCC results for 'UKTCostHeader'.
There are 0 rows in 0 pages for object 'UKTCostHeader'.
DBCC results for 'CheckSummTax'.
There are 53912 rows in 1091 pages for object 'CheckSummTax'.
DBCC results for 'EPayBase'.
There are 0 rows in 0 pages for object 'EPayBase'.
DBCC results for 'UKTTaxHistory'.
There are 0 rows in 0 pages for object 'UKTTaxHistory'.
DBCC results for 'EWageTax'.
There are 325 rows in 28 pages for object 'EWageTax'.
DBCC results for 'UKEAEODetail'.
There are 0 rows in 0 pages for object 'UKEAEODetail'.
DBCC results for 'UKSysParam'.
There are 0 rows in 0 pages for object 'UKSysParam'.
DBCC results for 'TrainingCourseBase'.
There are 0 rows in 1 pages for object 'TrainingCourseBase'.
DBCC results for 'ECert'.
There are 347 rows in 10 pages for object 'ECert'.
DBCC results for 'Roles'.
There are 5957 rows in 123 pages for object 'Roles'.
DBCC results for 'PositionToReq'.
There are 0 rows in 0 pages for object 'PositionToReq'.
DBCC results for 'UKCDataCodeMapping'.
There are 0 rows in 0 pages for object 'UKCDataCodeMapping'.
DBCC results for 'EFundChoice'.
There are 0 rows in 0 pages for object 'EFundChoice'.
DBCC results for 'ETax'.
There are 0 rows in 0 pages for object 'ETax'.
DBCC results for 'ChItem'.
There are 2371 rows in 47 pages for object 'ChItem'.
DBCC results for 'Distribution'.
There are 0 rows in 0 pages for object 'Distribution'.
DBCC results for 'BusinessUnitBase'.
There are 0 rows in 0 pages for object 'BusinessUnitBase'.
DBCC results for 'UKTNote'.
There are 0 rows in 0 pages for object 'UKTNote'.
DBCC results for 'ADPXlate'.
There are 0 rows in 0 pages for object 'ADPXlate'.
DBCC results for 'ProcessQueue'.
There are 459 rows in 11 pages for object 'ProcessQueue'.
DBCC results for 'ExchangeRate'.
There are 114 rows in 3 pages for object 'ExchangeRate'.
DBCC results for 'UKETTAction'.
There are 0 rows in 0 pages for object 'UKETTAction'.
DBCC results for 'TrainingCourseItem'.
There are 0 rows in 0 pages for object 'TrainingCourseItem'.
DBCC results for 'UKEHeaderRecord'.
There are 0 rows in 0 pages for object 'UKEHeaderRecord'.
DBCC results for 'EFundElection'.
There are 0 rows in 0 pages for object 'EFundElection'.
DBCC results for 'EPerson'.
There are 837 rows in 44 pages for object 'EPerson'.
DBCC results for 'UKEPayAddress'.
There are 0 rows in 0 pages for object 'UKEPayAddress'.
DBCC results for 'UKTPaySlipSummary'.
There are 0 rows in 0 pages for object 'UKTPaySlipSummary'.
DBCC results for 'RpCatlog'.
There are 545 rows in 21 pages for object 'RpCatlog'.
DBCC results for 'CheckEntryDed'.
There are 0 rows in 0 pages for object 'CheckEntryDed'.
DBCC results for 'CycleData'.
There are 3 rows in 1 pages for object 'CycleData'.
DBCC results for 'JobCert'.
There are 0 rows in 0 pages for object 'JobCert'.
DBCC results for 'BusinessUnitItem'.
There are 0 rows in 0 pages for object 'BusinessUnitItem'.
DBCC results for 'MultiJobComp'.
There are 0 rows in 0 pages for object 'MultiJobComp'.
DBCC results for 'EChoice'.
There are 0 rows in 0 pages for object 'EChoice'.
DBCC results for 'EHealth'.
There are 35 rows in 1 pages for object 'EHealth'.
DBCC results for 'ExpenseToReq'.
There are 0 rows in 0 pages for object 'ExpenseToReq'.
DBCC results for 'TrainingInstCourse'.
There are 0 rows in 0 pages for object 'TrainingInstCourse'.
DBCC results for 'UKETaxCredit '.
There are 0 rows in 0 pages for object 'UKETaxCredit '.
DBCC results for 'UKEManPayment'.
There are 0 rows in 0 pages for object 'UKEManPayment'.
DBCC results for 'AppSkill'.
There are 0 rows in 0 pages for object 'AppSkill'.
DBCC results for 'EAccount'.
There are 0 rows in 0 pages for object 'EAccount'.
DBCC results for 'UKTVolDeductHistory'.
There are 0 rows in 0 pages for object 'UKTVolDeductHistory'.
DBCC results for 'UKTPRPHistory'.
There are 0 rows in 0 pages for object 'UKTPRPHistory'.
DBCC results for 'Profile'.
There are 0 rows in 0 pages for object 'Profile'.
DBCC results for 'EPayItem'.
There are 0 rows in 0 pages for object 'EPayItem'.
DBCC results for 'FederalTax'.
There are 1 rows in 1 pages for object 'FederalTax'.
DBCC results for 'TrainingInstructor'.
There are 0 rows in 0 pages for object 'TrainingInstructor'.
DBCC results for 'CheckEntryHE'.
There are 0 rows in 0 pages for object 'CheckEntryHE'.
DBCC results for 'UKEAllowanceDetail'.
There are 0 rows in 0 pages for object 'UKEAllowanceDetail'.
DBCC results for 'UKCDataCodeValidate'.
There are 1103 rows in 32 pages for object 'UKCDataCodeValidate'.
DBCC results for 'AppAltAddress'.
There are 0 rows in 0 pages for object 'AppAltAddress'.
DBCC results for 'UKEPayslipMessage'.
There are 0 rows in 0 pages for object 'UKEPayslipMessage'.
DBCC results for 'JobEducate'.
There are 0 rows in 0 pages for object 'JobEducate'.
DBCC results for 'EItem'.
There are 33 rows in 2 pages for object 'EItem'.
DBCC results for 'UKCRate'.
There are 0 rows in 0 pages for object 'UKCRate'.
DBCC results for 'CalBase'.
There are 6 rows in 1 pages for object 'CalBase'.
DBCC results for 'AppToReq'.
There are 0 rows in 0 pages for object 'AppToReq'.
DBCC results for 'EADA'.
There are 13 rows in 1 pages for object 'EADA'.
DBCC results for 'CycleDataDeduction'.
There are 1 rows in 1 pages for object 'CycleDataDeduction'.
DBCC results for 'TrainingPrereq'.
There are 0 rows in 0 pages for object 'TrainingPrereq'.
DBCC results for 'Property'.
There are 0 rows in 0 pages for object 'Property'.
DBCC results for 'UKTPayDetail'.
There are 0 rows in 0 pages for object 'UKTPayDetail'.
DBCC results for 'UKTWorkedHrsHistory'.
There are 0 rows in 0 pages for object 'UKTWorkedHrsHistory'.
DBCC results for 'ECOBRAEvent'.
There are 33 rows in 1 pages for object 'ECOBRAEvent'.
DBCC results for 'oAddress'.
There are 30 rows in 1 pages for object 'oAddress'.
DBCC results for 'UKEManPaymentDetail'.
There are 0 rows in 0 pages for object 'UKEManPaymentDetail'.
DBCC results for 'TrainingProgCourse'.
There are 0 rows in 0 pages for object 'TrainingProgCourse'.
DBCC results for 'CalItem'.
There are 133 rows in 4 pages for object 'CalItem'.
DBCC results for 'UKETaxDetail'.
There are 0 rows in 0 pages for object 'UKETaxDetail'.
DBCC results for 'FlxCol'.
There are 0 rows in 0 pages for object 'FlxCol'.
DBCC results for 'EJob'.
There are 574 rows in 22 pages for object 'EJob'.
DBCC results for 'CycleDataTime'.
There are 0 rows in 0 pages for object 'CycleDataTime'.
DBCC results for 'CheckSumm'.
There are 14416 rows in 847 pages for object 'CheckSumm'.
DBCC results for 'JobMember'.
There are 0 rows in 0 pages for object 'JobMember'.
DBCC results for 'PayGrade'.
There are 160 rows in 5 pages for object 'PayGrade'.
DBCC results for 'UKTHolAccrualHistory'.
There are 0 rows in 0 pages for object 'UKTHolAccrualHistory'.
DBCC results for 'UKEPensionDetail'.
There are 0 rows in 0 pages for object 'UKEPensionDetail'.
DBCC results for 'UKCBUBudget'.
There are 0 rows in 0 pages for object 'UKCBUBudget'.
DBCC results for 'UKEBankDetail'.
There are 0 rows in 0 pages for object 'UKEBankDetail'.
DBCC results for 'EAdjustment'.
There are 0 rows in 0 pages for object 'EAdjustment'.
DBCC results for 'FlxLock'.
There are 0 rows in 1 pages for object 'FlxLock'.
DBCC results for 'UKCSSP'.
There are 0 rows in 0 pages for object 'UKCSSP'.
DBCC results for 'TrainingProgram'.
There are 0 rows in 1 pages for object 'TrainingProgram'.
DBCC results for 'EComp'.
There are 2118 rows in 79 pages for object 'EComp'.
DBCC results for 'AppUDF'.
There are 0 rows in 0 pages for object 'AppUDF'.
DBCC results for 'EPayrollBase'.
There are 2620 rows in 138 pages for object 'EPayrollBase'.
DBCC results for 'TrainingSession'.
There are 0 rows in 0 pages for object 'TrainingSession'.
DBCC results for 'CardFile'.
There are 1028 rows in 32 pages for object 'CardFile'.
DBCC results for 'PxCatlog'.
There are 1 rows in 1 pages for object 'PxCatlog'.
DBCC results for 'SearchBase'.
There are 0 rows in 0 pages for object 'SearchBase'.
DBCC results for 'UKCDepartment'.
There are 2 rows in 1 pages for object 'UKCDepartment'.
DBCC results for 'PayrollSchedule'.
There are 84 rows in 3 pages for object 'PayrollSchedule'.
DBCC results for 'JobSkill'.
There are 0 rows in 0 pages for object 'JobSkill'.
DBCC results for 'FlxScr'.
There are 0 rows in 0 pages for object 'FlxScr'.
DBCC results for 'User1'.
There are 57 rows in 2 pages for object 'User1'.
DBCC results for 'UKEMisc'.
There are 0 rows in 0 pages for object 'UKEMisc'.
DBCC results for 'UKEUserDefinedInput'.
There are 0 rows in 0 pages for object 'UKEUserDefinedInput'.
DBCC results for 'Deduction'.
There are 58 rows in 2 pages for object 'Deduction'.
DBCC results for 'WorkflowAction'.
There are 0 rows in 0 pages for object 'WorkflowAction'.
DBCC results for 'AppBase'.
There are 0 rows in 0 pages for object 'AppBase'.
DBCC results for 'UKCBaseDataCode'.
There are 437 rows in 12 pages for object 'UKCBaseDataCode'.
DBCC results for 'FlxTable'.
There are 262 rows in 7 pages for object 'FlxTable'.
DBCC results for 'UKEBatch'.
There are 0 rows in 0 pages for object 'UKEBatch'.
DBCC results for 'SearchItem'.
There are 0 rows in 0 pages for object 'SearchItem'.
DBCC results for 'UKCERate'.
There are 0 rows in 0 pages for object 'UKCERate'.
DBCC results for 'PxLog'.
There are 0 rows in 0 pages for object 'PxLog'.
DBCC results for 'User2'.
There are 51 rows in 1 pages for object 'User2'.
DBCC results for 'EAttend'.
There are 45 rows in 2 pages for object 'EAttend'.
DBCC results for 'JobTraining'.
There are 0 rows in 0 pages for object 'JobTraining'.
DBCC results for 'WorkflowDoc'.
There are 0 rows in 0 pages for object 'WorkflowDoc'.
DBCC results for 'UKCUserDefinedScreen'.
There are 0 rows in 0 pages for object 'UKCUserDefinedScreen'.
DBCC results for 'UKENIDetail'.
There are 0 rows in 0 pages for object 'UKENIDetail'.
DBCC results for 'ECompReason'.
There are 0 rows in 0 pages for object 'ECompReason'.
DBCC results for 'dtproperties'.
There are 0 rows in 0 pages for object 'dtproperties'.
DBCC results for 'SearchTree'.
There are 167 rows in 4 pages for object 'SearchTree'.
DBCC results for 'User3'.
There are 0 rows in 0 pages for object 'User3'.
DBCC results for 'UKTPayslipMessage'.
There are 0 rows in 0 pages for object 'UKTPayslipMessage'.
DBCC results for 'UKEVolDeductDetail'.
There are 0 rows in 0 pages for object 'UKEVolDeductDetail'.
DBCC results for 'UKCUserDefScreenDat'.
There are 0 rows in 0 pages for object 'UKCUserDefScreenDat'.
DBCC results for 'PayrollService'.
There are 224 rows in 5 pages for object 'PayrollService'.
DBCC results for 'ELabor'.
There are 19974 rows in 709 pages for object 'ELabor'.
DBCC results for 'WorkflowDocStatus'.
There are 0 rows in 0 pages for object 'WorkflowDocStatus'.
DBCC results for 'EPrevEmploy'.
There are 84 rows in 3 pages for object 'EPrevEmploy'.
DBCC results for 'LocalTax'.
There are 0 rows in 0 pages for object 'LocalTax'.
DBCC results for 'FundItem'.
There are 0 rows in 0 pages for object 'FundItem'.
DBCC results for 'EDeduct'.
There are 7271 rows in 187 pages for object 'EDeduct'.
DBCC results for 'EBank'.
There are 472 rows in 12 pages for object 'EBank'.
DBCC results for 'Bank'.
There are 43 rows in 2 pages for object 'Bank'.
DBCC results for 'UKEPersonnelCode'.
There are 0 rows in 0 pages for object 'UKEPersonnelCode'.
DBCC results for 'UKCBaseFacet'.
There are 704 rows in 15 pages for object 'UKCBaseFacet'.
DBCC results for 'User4'.
There are 207 rows in 4 pages for object 'User4'.
DBCC results for 'UKCOrgMap'.
There are 0 rows in 0 pages for object 'UKCOrgMap'.
DBCC results for 'UKTPensionHistory'.
There are 0 rows in 0 pages for object 'UKTPensionHistory'.
DBCC results for 'UKEBatchItem'.
There are 0 rows in 0 pages for object 'UKEBatchItem'.
DBCC results for 'DeductItem'.
There are 0 rows in 0 pages for object 'DeductItem'.
DBCC results for 'PayrollTransaction'.
There are 0 rows in 0 pages for object 'PayrollTransaction'.
DBCC results for 'WorkflowStep'.
There are 0 rows in 0 pages for object 'WorkflowStep'.
DBCC results for 'ImpBase'.
There are 137 rows in 4 pages for object 'ImpBase'.
DBCC results for 'UserA'.
There are 0 rows in 0 pages for object 'UserA'.
DBCC results for 'UKEOrg'.
There are 0 rows in 0 pages for object 'UKEOrg'.
DBCC results for 'ChBase'.
There are 210 rows in 6 pages for object 'ChBase'.
DBCC results for 'UKCPRP'.
There are 0 rows in 0 pages for object 'UKCPRP'.
DBCC results for 'EDistribution'.
There are 441 rows in 10 pages for object 'EDistribution'.
DBCC results for 'StateTax'.
There are 1 rows in 1 pages for object 'StateTax'.
DBCC results for 'UKTAEOHistory'.
There are 0 rows in 0 pages for object 'UKTAEOHistory'.
DBCC results for 'QuesBase'.
There are 9 rows in 1 pages for object 'QuesBase'.
DBCC results for 'UKEStudentLoan'.
There are 0 rows in 0 pages for object 'UKEStudentLoan'.
DBCC results for 'EBase'.
There are 497 rows in 17 pages for object 'EBase'.
DBCC results for 'WorkflowRoute'.
There are 0 rows in 0 pages for object 'WorkflowRoute'.
DBCC results for 'ETraining'.
There are 0 rows in 0 pages for object 'ETraining'.
DBCC results for 'UKCVehicle'.
There are 0 rows in 0 pages for object 'UKCVehicle'.
DBCC results for 'UKTMisc'.
There are 0 rows in 0 pages for object 'UKTMisc'.
DBCC results for 'DedS2Override'.
There are 0 rows in 0 pages for object 'DedS2Override'.
DBCC results for 'LogData'.
There are 0 rows in 0 pages for object 'LogData'.
DBCC results for 'PayStep'.
There are 1218 rows in 22 pages for object 'PayStep'.
DBCC results for 'UKEOrgSplitCosting'.
There are 0 rows in 0 pages for object 'UKEOrgSplitCosting'.
DBCC results for 'UKCHRBusUnitBudget'.
There are 0 rows in 0 pages for object 'UKCHRBusUnitBudget'.
DBCC results for 'UKECarBenefit'.
There are 0 rows in 0 pages for object 'UKECarBenefit'.
DBCC results for 'UserB'.
There are 0 rows in 0 pages for object 'UserB'.
DBCC results for 'WorkflowTrayBase'.
There are 0 rows in 0 pages for object 'WorkflowTrayBase'.
DBCC results for 'AppEducate'.
There are 0 rows in 0 pages for object 'AppEducate'.
DBCC results for 'PayType'.
There are 15 rows in 1 pages for object 'PayType'.
DBCC results for 'TaskList'.
There are 11 rows in 1 pages for object 'TaskList'.
DBCC results for 'DesktopAccount'.
There are 0 rows in 0 pages for object 'DesktopAccount'.
DBCC results for 'UKTSMPHistory '.
There are 0 rows in 0 pages for object 'UKTSMPHistory '.
DBCC results for 'EEducate'.
There are 0 rows in 0 pages for object 'EEducate'.
DBCC results for 'UKTNIDAndXHistory'.
There are 0 rows in 0 pages for object 'UKTNIDAndXHistory'.
DBCC results for 'AccBase'.
There are 0 rows in 0 pages for object 'AccBase'.
DBCC results for 'UKERate'.
There are 0 rows in 0 pages for object 'UKERate'.
DBCC results for 'ImpItem'.
There are 2202 rows in 58 pages for object 'ImpItem'.
DBCC results for 'UKTAllowanceHistory'.
There are 0 rows in 0 pages for object 'UKTAllowanceHistory'.
DBCC results for 'BenBase'.
There are 0 rows in 0 pages for object 'BenBase'.
DBCC results for 'EProperty'.
There are 0 rows in 0 pages for object 'EProperty'.
DBCC results for 'EPayrollItem'.
There are 0 rows in 0 pages for object 'EPayrollItem'.
DBCC results for 'UserC'.
There are 0 rows in 0 pages for object 'UserC'.
DBCC results for 'MassEnrollItem'.
There are 0 rows in 0 pages for object 'MassEnrollItem'.
DBCC results for 'UKEOtherBenefit'.
There are 0 rows in 0 pages for object 'UKEOtherBenefit'.
DBCC results for 'EMember'.
There are 0 rows in 0 pages for object 'EMember'.
DBCC results for 'EUDF'.
There are 318 rows in 20 pages for object 'EUDF'.
DBCC results for 'QuesItem'.
There are 69 rows in 3 pages for object 'QuesItem'.
DBCC results for 'UKCCategory'.
There are 0 rows in 0 pages for object 'UKCCategory'.
DBCC results for 'WorkflowTrayItem'.
There are 0 rows in 0 pages for object 'WorkflowTrayItem'.
DBCC results for 'UKCVoluntaryDeduct'.
There are 0 rows in 0 pages for object 'UKCVoluntaryDeduct'.
DBCC results for 'CheckSummDed'.
There are 113755 rows in 2503 pages for object 'CheckSummDed'.
DBCC results for 'UKECarBenefitMileage'.
There are 0 rows in 0 pages for object 'UKECarBenefitMileage'.
DBCC results for 'UKCPayCyclePeriod'.
There are 0 rows in 0 pages for object 'UKCPayCyclePeriod'.
DBCC results for 'CheckEntry'.
There are 0 rows in 0 pages for object 'CheckEntry'.
DBCC results for 'EqBase'.
There are 996 rows in 44 pages for object 'EqBase'.
DBCC results for 'DesktopJournal'.
There are 0 rows in 0 pages for object 'DesktopJournal'.
DBCC results for 'UKSelectCriteriumDef'.
There are 0 rows in 0 pages for object 'UKSelectCriteriumDef'.
DBCC results for 'AppEEO'.
There are 0 rows in 0 pages for object 'AppEEO'.
DBCC results for 'UserD'.
There are 0 rows in 0 pages for object 'UserD'.
DBCC results for 'UKCAllowance'.
There are 0 rows in 0 pages for object 'UKCAllowance'.
CHECKDB found 0 allocation errors and 0 consistency errors in database
'VHR'.
DBCC execution completed. If DBCC printed error messages, contact your
system administrator.
Still got the error:.
This worked fine yesterday afternoon and this is the same script I was
running all day yesterday with no problem.
Tom
> "tshad" wrote:
>|||Could there be a real limit I am hitting on the Sql Server Developer
versison?
How do I tell if I am on that version and how do I tell how many
tables/views I am using?
Thanks,
Tom
"tshad" <tscheiderich@.ftsolutions.com> wrote in message
news:uqVdg1rvFHA.2504@.tk2msftngp13.phx.gbl...
> "R.D" <RD@.discussions.microsoft.com> wrote in message
> news:A1AC1E51-3924-430B-95AC-ED8B83CFF05C@.microsoft.com...
> The FREEPROCCACHE gives me this:
> DBCC execution completed. If DBCC printed error messages, contact your
> system administrator.
> Still had the error so I ran
> DBCC CHECKDB
> DBCC results for 'VHR'.
> DBCC results for 'sysobjects'.
> There are 3786 rows in 64 pages for object 'sysobjects'.
> DBCC results for 'sysindexes'.
> There are 1254 rows in 56 pages for object 'sysindexes'.
> DBCC results for 'syscolumns'.
> There are 8740 rows in 143 pages for object 'syscolumns'.
> DBCC results for 'systypes'.
> There are 26 rows in 1 pages for object 'systypes'.
> DBCC results for 'syscomments'.
> There are 3371 rows in 58 pages for object 'syscomments'.
> DBCC results for 'sysfiles1'.
> There are 2 rows in 1 pages for object 'sysfiles1'.
> DBCC results for 'syspermissions'.
> There are 2601 rows in 10 pages for object 'syspermissions'.
> DBCC results for 'sysusers'.
> There are 38 rows in 1 pages for object 'sysusers'.
> DBCC results for 'sysproperties'.
> There are 0 rows in 0 pages for object 'sysproperties'.
> DBCC results for 'sysdepends'.
> There are 1479 rows in 7 pages for object 'sysdepends'.
> DBCC results for 'sysreferences'.
> There are 0 rows in 0 pages for object 'sysreferences'.
> DBCC results for 'sysfulltextcatalogs'.
> There are 0 rows in 0 pages for object 'sysfulltextcatalogs'.
> DBCC results for 'sysfulltextnotify'.
> There are 0 rows in 0 pages for object 'sysfulltextnotify'.
> DBCC results for 'sysfilegroups'.
> There are 1 rows in 1 pages for object 'sysfilegroups'.
> DBCC results for 'EEmploy'.
> There are 672 rows in 34 pages for object 'EEmploy'.
> DBCC results for 'RecruitingExpense'.
> There are 0 rows in 0 pages for object 'RecruitingExpense'.
> DBCC results for 'UKCClass'.
> There are 2 rows in 1 pages for object 'UKCClass'.
> DBCC results for 'EOSHA'.
> There are 13 rows in 1 pages for object 'EOSHA'.
> DBCC results for 'UKECertEvent'.
> There are 0 rows in 0 pages for object 'UKECertEvent'.
> DBCC results for 'UKTSSPHistory'.
> There are 0 rows in 0 pages for object 'UKTSSPHistory'.
> DBCC results for 'UKTNIStdHistory'.
> There are 0 rows in 0 pages for object 'UKTNIStdHistory'.
> DBCC results for 'UKTCostDetail'.
> There are 0 rows in 0 pages for object 'UKTCostDetail'.
> DBCC results for 'DesktopResponse'.
> There are 0 rows in 0 pages for object 'DesktopResponse'.
> DBCC results for 'EPayrollTax'.
> There are 507 rows in 16 pages for object 'EPayrollTax'.
> DBCC results for 'CheckSummEFT'.
> There are 20214 rows in 426 pages for object 'CheckSummEFT'.
> DBCC results for 'WaAssignExcept'.
> There are 0 rows in 0 pages for object 'WaAssignExcept'.
> DBCC results for 'AccItem'.
> There are 0 rows in 0 pages for object 'AccItem'.
> DBCC results for 'UKCPayGroup'.
> There are 2 rows in 1 pages for object 'UKCPayGroup'.
> DBCC results for 'DesktopRule'.
> There are 0 rows in 0 pages for object 'DesktopRule'.
> DBCC results for 'UKCCostCodeFacet'.
> There are 0 rows in 0 pages for object 'UKCCostCodeFacet'.
> DBCC results for 'UKEPBatch'.
> There are 0 rows in 0 pages for object 'UKEPBatch'.
> DBCC results for 'UKECreditBatchItem'.
> There are 0 rows in 0 pages for object 'UKECreditBatchItem'.
> DBCC results for 'EBeneficiary'.
> There are 0 rows in 0 pages for object 'EBeneficiary'.
> DBCC results for 'JobADA'.
> There are 0 rows in 0 pages for object 'JobADA'.
> DBCC results for 'AppItem'.
> There are 0 rows in 0 pages for object 'AppItem'.
> DBCC results for 'UKSelectSet'.
> There are 0 rows in 0 pages for object 'UKSelectSet'.
> DBCC results for 'PayZone'.
> There are 0 rows in 0 pages for object 'PayZone'.
> DBCC results for 'CheckSummHE'.
> There are 44893 rows in 1051 pages for object 'CheckSummHE'.
> DBCC results for 'Thing'.
> There are 72 rows in 2 pages for object 'Thing'.
> DBCC results for 'BenElig'.
> There are 12 rows in 1 pages for object 'BenElig'.
> DBCC results for 'EqItem'.
> There are 7968 rows in 153 pages for object 'EqItem'.
> DBCC results for 'MassEnrollSubItem'.
> There are 0 rows in 0 pages for object 'MassEnrollSubItem'.
> DBCC results for 'ReqBase'.
> There are 0 rows in 0 pages for object 'ReqBase'.
> DBCC results for 'EBenefit'.
> There are 0 rows in 0 pages for object 'EBenefit'.
> DBCC results for 'UKCPension'.
> There are 0 rows in 0 pages for object 'UKCPension'.
> DBCC results for 'UKEPBatchItem'.
> There are 0 rows in 0 pages for object 'UKEPBatchItem'.
> DBCC results for 'ESignature'.
> There are 53 rows in 2 pages for object 'ESignature'.
> DBCC results for 'UKSelectSetCriterium'.
> There are 0 rows in 0 pages for object 'UKSelectSetCriterium'.
> DBCC results for 'EUnion'.
> There are 172 rows in 4 pages for object 'EUnion'.
> DBCC results for 'UKTStudentLoan'.
> There are 0 rows in 0 pages for object 'UKTStudentLoan'.
> DBCC results for 'TrainingBudget'.
> There are 0 rows in 0 pages for object 'TrainingBudget'.
> DBCC results for 'Position'.
> There are 409 rows in 13 pages for object 'Position'.
> DBCC results for 'UKCDataCodeFacet'.
> There are 1625 rows in 36 pages for object 'UKCDataCodeFacet'.
> DBCC results for 'JobCode'.
> There are 130 rows in 7 pages for object 'JobCode'.
> DBCC results for 'UKEDetail'.
> There are 0 rows in 0 pages for object 'UKEDetail'.
> DBCC results for 'DesktopSession'.
> There are 0 rows in 0 pages for object 'DesktopSession'.
> DBCC results for 'MassEnrollFund'.
> There are 0 rows in 0 pages for object 'MassEnrollFund'.
> DBCC results for 'AppPrevEmploy'.
> There are 0 rows in 0 pages for object 'AppPrevEmploy'.
> DBCC results for 'Account'.
> There are 0 rows in 0 pages for object 'Account'.
> DBCC results for 'CheckSummSpec'.
> There are 89922 rows in 1594 pages for object 'CheckSummSpec'.
> DBCC results for 'BenRate'.
> There are 0 rows in 0 pages for object 'BenRate'.
> DBCC results for 'EWageAssign'.
> There are 0 rows in 0 pages for object 'EWageAssign'.
> DBCC results for 'UKCXCode'.
> There are 0 rows in 0 pages for object 'UKCXCode'.
> DBCC results for 'TrainingClass'.
> There are 0 rows in 0 pages for object 'TrainingClass'.
> DBCC results for 'Notes'.
> There are 486 rows in 21 pages for object 'Notes'.
> DBCC results for 'ESkill'.
> There are 0 rows in 0 pages for object 'ESkill'.
> DBCC results for 'UKSelectSetDisplay'.
> There are 0 rows in 0 pages for object 'UKSelectSetDisplay'.
> DBCC results for 'UKEPRPDetail'.
> There are 0 rows in 0 pages for object 'UKEPRPDetail'.
> DBCC results for 'UKTCostHeader'.
> There are 0 rows in 0 pages for object 'UKTCostHeader'.
> DBCC results for 'CheckSummTax'.
> There are 53912 rows in 1091 pages for object 'CheckSummTax'.
> DBCC results for 'EPayBase'.
> There are 0 rows in 0 pages for object 'EPayBase'.
> DBCC results for 'UKTTaxHistory'.
> There are 0 rows in 0 pages for object 'UKTTaxHistory'.
> DBCC results for 'EWageTax'.
> There are 325 rows in 28 pages for object 'EWageTax'.
> DBCC results for 'UKEAEODetail'.
> There are 0 rows in 0 pages for object 'UKEAEODetail'.
> DBCC results for 'UKSysParam'.
> There are 0 rows in 0 pages for object 'UKSysParam'.
> DBCC results for 'TrainingCourseBase'.
> There are 0 rows in 1 pages for object 'TrainingCourseBase'.
> DBCC results for 'ECert'.
> There are 347 rows in 10 pages for object 'ECert'.
> DBCC results for 'Roles'.
> There are 5957 rows in 123 pages for object 'Roles'.
> DBCC results for 'PositionToReq'.
> There are 0 rows in 0 pages for object 'PositionToReq'.
> DBCC results for 'UKCDataCodeMapping'.
> There are 0 rows in 0 pages for object 'UKCDataCodeMapping'.
> DBCC results for 'EFundChoice'.
> There are 0 rows in 0 pages for object 'EFundChoice'.
> DBCC results for 'ETax'.
> There are 0 rows in 0 pages for object 'ETax'.
> DBCC results for 'ChItem'.
> There are 2371 rows in 47 pages for object 'ChItem'.
> DBCC results for 'Distribution'.
> There are 0 rows in 0 pages for object 'Distribution'.
> DBCC results for 'BusinessUnitBase'.
> There are 0 rows in 0 pages for object 'BusinessUnitBase'.
> DBCC results for 'UKTNote'.
> There are 0 rows in 0 pages for object 'UKTNote'.
> DBCC results for 'ADPXlate'.
> There are 0 rows in 0 pages for object 'ADPXlate'.
> DBCC results for 'ProcessQueue'.
> There are 459 rows in 11 pages for object 'ProcessQueue'.
> DBCC results for 'ExchangeRate'.
> There are 114 rows in 3 pages for object 'ExchangeRate'.
> DBCC results for 'UKETTAction'.
> There are 0 rows in 0 pages for object 'UKETTAction'.
> DBCC results for 'TrainingCourseItem'.
> There are 0 rows in 0 pages for object 'TrainingCourseItem'.
> DBCC results for 'UKEHeaderRecord'.
> There are 0 rows in 0 pages for object 'UKEHeaderRecord'.
> DBCC results for 'EFundElection'.
> There are 0 rows in 0 pages for object 'EFundElection'.
> DBCC results for 'EPerson'.
> There are 837 rows in 44 pages for object 'EPerson'.
> DBCC results for 'UKEPayAddress'.
> There are 0 rows in 0 pages for object 'UKEPayAddress'.
> DBCC results for 'UKTPaySlipSummary'.
> There are 0 rows in 0 pages for object 'UKTPaySlipSummary'.
> DBCC results for 'RpCatlog'.
> There are 545 rows in 21 pages for object 'RpCatlog'.
> DBCC results for 'CheckEntryDed'.
> There are 0 rows in 0 pages for object 'CheckEntryDed'.
> DBCC results for 'CycleData'.
> There are 3 rows in 1 pages for object 'CycleData'.
> DBCC results for 'JobCert'.
> There are 0 rows in 0 pages for object 'JobCert'.
> DBCC results for 'BusinessUnitItem'.
> There are 0 rows in 0 pages for object 'BusinessUnitItem'.
> DBCC results for 'MultiJobComp'.
> There are 0 rows in 0 pages for object 'MultiJobComp'.
> DBCC results for 'EChoice'.
> There are 0 rows in 0 pages for object 'EChoice'.
> DBCC results for 'EHealth'.
> There are 35 rows in 1 pages for object 'EHealth'.
> DBCC results for 'ExpenseToReq'.
> There are 0 rows in 0 pages for object 'ExpenseToReq'.
> DBCC results for 'TrainingInstCourse'.
> There are 0 rows in 0 pages for object 'TrainingInstCourse'.
> DBCC results for 'UKETaxCredit '.
> There are 0 rows in 0 pages for object 'UKETaxCredit '.
> DBCC results for 'UKEManPayment'.
> There are 0 rows in 0 pages for object 'UKEManPayment'.
> DBCC results for 'AppSkill'.
> There are 0 rows in 0 pages for object 'AppSkill'.
> DBCC results for 'EAccount'.
> There are 0 rows in 0 pages for object 'EAccount'.
> DBCC results for 'UKTVolDeductHistory'.
> There are 0 rows in 0 pages for object 'UKTVolDeductHistory'.
> DBCC results for 'UKTPRPHistory'.
> There are 0 rows in 0 pages for object 'UKTPRPHistory'.
> DBCC results for 'Profile'.
> There are 0 rows in 0 pages for object 'Profile'.
> DBCC results for 'EPayItem'.
> There are 0 rows in 0 pages for object 'EPayItem'.
> DBCC results for 'FederalTax'.
> There are 1 rows in 1 pages for object 'FederalTax'.
> DBCC results for 'TrainingInstructor'.
> There are 0 rows in 0 pages for object 'TrainingInstructor'.
> DBCC results for 'CheckEntryHE'.
> There are 0 rows in 0 pages for object 'CheckEntryHE'.
> DBCC results for 'UKEAllowanceDetail'.
> There are 0 rows in 0 pages for object 'UKEAllowanceDetail'.
> DBCC results for 'UKCDataCodeValidate'.
> There are 1103 rows in 32 pages for object 'UKCDataCodeValidate'.
> DBCC results for 'AppAltAddress'.
> There are 0 rows in 0 pages for object 'AppAltAddress'.
> DBCC results for 'UKEPayslipMessage'.
> There are 0 rows in 0 pages for object 'UKEPayslipMessage'.
> DBCC results for 'JobEducate'.
> There are 0 rows in 0 pages for object 'JobEducate'.
> DBCC results for 'EItem'.
> There are 33 rows in 2 pages for object 'EItem'.
> DBCC results for 'UKCRate'.
> There are 0 rows in 0 pages for object 'UKCRate'.
> DBCC results for 'CalBase'.
> There are 6 rows in 1 pages for object 'CalBase'.
> DBCC results for 'AppToReq'.
> There are 0 rows in 0 pages for object 'AppToReq'.
> DBCC results for 'EADA'.
> There are 13 rows in 1 pages for object 'EADA'.
> DBCC results for 'CycleDataDeduction'.
> There are 1 rows in 1 pages for object 'CycleDataDeduction'.
> DBCC results for 'TrainingPrereq'.
> There are 0 rows in 0 pages for object 'TrainingPrereq'.
> DBCC results for 'Property'.
> There are 0 rows in 0 pages for object 'Property'.
> DBCC results for 'UKTPayDetail'.
> There are 0 rows in 0 pages for object 'UKTPayDetail'.
> DBCC results for 'UKTWorkedHrsHistory'.
> There are 0 rows in 0 pages for object 'UKTWorkedHrsHistory'.
> DBCC results for 'ECOBRAEvent'.
> There are 33 rows in 1 pages for object 'ECOBRAEvent'.
> DBCC results for 'oAddress'.
> There are 30 rows in 1 pages for object 'oAddress'.
> DBCC results for 'UKEManPaymentDetail'.
> There are 0 rows in 0 pages for object 'UKEManPaymentDetail'.
> DBCC results for 'TrainingProgCourse'.
> There are 0 rows in 0 pages for object 'TrainingProgCourse'.
> DBCC results for 'CalItem'.
> There are 133 rows in 4 pages for object 'CalItem'.
> DBCC results for 'UKETaxDetail'.
> There are 0 rows in 0 pages for object 'UKETaxDetail'.
> DBCC results for 'FlxCol'.
> There are 0 rows in 0 pages for object 'FlxCol'.
> DBCC results for 'EJob'.
> There are 574 rows in 22 pages for object 'EJob'.
> DBCC results for 'CycleDataTime'.
> There are 0 rows in 0 pages for object 'CycleDataTime'.
> DBCC results for 'CheckSumm'.
> There are 14416 rows in 847 pages for object 'CheckSumm'.
> DBCC results for 'JobMember'.
> There are 0 rows in 0 pages for object 'JobMember'.
> DBCC results for 'PayGrade'.
> There are 160 rows in 5 pages for object 'PayGrade'.
> DBCC results for 'UKTHolAccrualHistory'.
> There are 0 rows in 0 pages for object 'UKTHolAccrualHistory'.
> DBCC results for 'UKEPensionDetail'.
> There are 0 rows in 0 pages for object 'UKEPensionDetail'.
> DBCC results for 'UKCBUBudget'.
> There are 0 rows in 0 pages for object 'UKCBUBudget'.
> DBCC results for 'UKEBankDetail'.
> There are 0 rows in 0 pages for object 'UKEBankDetail'.
> DBCC results for 'EAdjustment'.
> There are 0 rows in 0 pages for object 'EAdjustment'.
> DBCC results for 'FlxLock'.
> There are 0 rows in 1 pages for object 'FlxLock'.
> DBCC results for 'UKCSSP'.
> There are 0 rows in 0 pages for object 'UKCSSP'.
> DBCC results for 'TrainingProgram'.
> There are 0 rows in 1 pages for object 'TrainingProgram'.
> DBCC results for 'EComp'.
> There are 2118 rows in 79 pages for object 'EComp'.
> DBCC results for 'AppUDF'.
> There are 0 rows in 0 pages for object 'AppUDF'.
> DBCC results for 'EPayrollBase'.
> There are 2620 rows in 138 pages for object 'EPayrollBase'.
> DBCC results for 'TrainingSession'.
> There are 0 rows in 0 pages for object 'TrainingSession'.
> DBCC results for 'CardFile'.
> There are 1028 rows in 32 pages for object 'CardFile'.
> DBCC results for 'PxCatlog'.
> There are 1 rows in 1 pages for object 'PxCatlog'.
> DBCC results for 'SearchBase'.
> There are 0 rows in 0 pages for object 'SearchBase'.
> DBCC results for 'UKCDepartment'.
> There are 2 rows in 1 pages for object 'UKCDepartment'.
> DBCC results for 'PayrollSchedule'.
> There are 84 rows in 3 pages for object 'PayrollSchedule'.
> DBCC results for 'JobSkill'.
> There are 0 rows in 0 pages for object 'JobSkill'.
> DBCC results for 'FlxScr'.
> There are 0 rows in 0 pages for object 'FlxScr'.
> DBCC results for 'User1'.
> There are 57 rows in 2 pages for object 'User1'.
> DBCC results for 'UKEMisc'.
> There are 0 rows in 0 pages for object 'UKEMisc'.
> DBCC results for 'UKEUserDefinedInput'.
> There are 0 rows in 0 pages for object 'UKEUserDefinedInput'.
> DBCC results for 'Deduction'.
> There are 58 rows in 2 pages for object 'Deduction'.
> DBCC results for 'WorkflowAction'.
> There are 0 rows in 0 pages for object 'WorkflowAction'.
> DBCC results for 'AppBase'.
> There are 0 rows in 0 pages for object 'AppBase'.
> DBCC results for 'UKCBaseDataCode'.
> There are 437 rows in 12 pages for object 'UKCBaseDataCode'.
> DBCC results for 'FlxTable'.
> There are 262 rows in 7 pages for object 'FlxTable'.
> DBCC results for 'UKEBatch'.
> There are 0 rows in 0 pages for object 'UKEBatch'.
> DBCC results for 'SearchItem'.
> There are 0 rows in 0 pages for object 'SearchItem'.
> DBCC results for 'UKCERate'.
> There are 0 rows in 0 pages for object 'UKCERate'.
> DBCC results for 'PxLog'.
> There are 0 rows in 0 pages for object 'PxLog'.
> DBCC results for 'User2'.
> There are 51 rows in 1 pages for object 'User2'.
> DBCC results for 'EAttend'.
> There are 45 rows in 2 pages for object 'EAttend'.
> DBCC results for 'JobTraining'.
> There are 0 rows in 0 pages for object 'JobTraining'.
> DBCC results for 'WorkflowDoc'.
> There are 0 rows in 0 pages for object 'WorkflowDoc'.
> DBCC results for 'UKCUserDefinedScreen'.
> There are 0 rows in 0 pages for object 'UKCUserDefinedScreen'.
> DBCC results for 'UKENIDetail'.
> There are 0 rows in 0 pages for object 'UKENIDetail'.
> DBCC results for 'ECompReason'.
> There are 0 rows in 0 pages for object 'ECompReason'.
> DBCC results for 'dtproperties'.
> There are 0 rows in 0 pages for object 'dtproperties'.
> DBCC results for 'SearchTree'.
> There are 167 rows in 4 pages for object 'SearchTree'.
> DBCC results for 'User3'.
> There are 0 rows in 0 pages for object 'User3'.
> DBCC results for 'UKTPayslipMessage'.
> There are 0 rows in 0 pages for object 'UKTPayslipMessage'.
> DBCC results for 'UKEVolDeductDetail'.
> There are 0 rows in 0 pages for object 'UKEVolDeductDetail'.
> DBCC results for 'UKCUserDefScreenDat'.
> There are 0 rows in 0 pages for object 'UKCUserDefScreenDat'.
> DBCC results for 'PayrollService'.
> There are 224 rows in 5 pages for object 'PayrollService'.
> DBCC results for 'ELabor'.
> There are 19974 rows in 709 pages for object 'ELabor'.
> DBCC results for 'WorkflowDocStatus'.
> There are 0 rows in 0 pages for object 'WorkflowDocStatus'.
> DBCC results for 'EPrevEmploy'.
> There are 84 rows in 3 pages for object 'EPrevEmploy'.
> DBCC results for 'LocalTax'.
> There are 0 rows in 0 pages for object 'LocalTax'.
> DBCC results for 'FundItem'.
> There are 0 rows in 0 pages for object 'FundItem'.
> DBCC results for 'EDeduct'.
> There are 7271 rows in 187 pages for object 'EDeduct'.
> DBCC results for 'EBank'.
> There are 472 rows in 12 pages for object 'EBank'.
> DBCC results for 'Bank'.
> There are 43 rows in 2 pages for object 'Bank'.
> DBCC results for 'UKEPersonnelCode'.
> There are 0 rows in 0 pages for object 'UKEPersonnelCode'.
> DBCC results for 'UKCBaseFacet'.
> There are 704 rows in 15 pages for object 'UKCBaseFacet'.
> DBCC results for 'User4'.
> There are 207 rows in 4 pages for object 'User4'.
> DBCC results for 'UKCOrgMap'.
> There are 0 rows in 0 pages for object 'UKCOrgMap'.
> DBCC results for 'UKTPensionHistory'.
> There are 0 rows in 0 pages for object 'UKTPensionHistory'.
> DBCC results for 'UKEBatchItem'.
> There are 0 rows in 0 pages for object 'UKEBatchItem'.
> DBCC results for 'DeductItem'.
> There are 0 rows in 0 pages for object 'DeductItem'.
> DBCC results for 'PayrollTransaction'.
> There are 0 rows in 0 pages for object 'PayrollTransaction'.
> DBCC results for 'WorkflowStep'.
> There are 0 rows in 0 pages for object 'WorkflowStep'.
> DBCC results for 'ImpBase'.
> There are 137 rows in 4 pages for object 'ImpBase'.
> DBCC results for 'UserA'.
> There are 0 rows in 0 pages for object 'UserA'.
> DBCC results for 'UKEOrg'.
> There are 0 rows in 0 pages for object 'UKEOrg'.
> DBCC results for 'ChBase'.
> There are 210 rows in 6 pages for object 'ChBase'.
> DBCC results for 'UKCPRP'.
> There are 0 rows in 0 pages for object 'UKCPRP'.
> DBCC results for 'EDistribution'.
> There are 441 rows in 10 pages for object 'EDistribution'.
> DBCC results for 'StateTax'.
> There are 1 rows in 1 pages for object 'StateTax'.
> DBCC results for 'UKTAEOHistory'.
> There are 0 rows in 0 pages for object 'UKTAEOHistory'.
> DBCC results for 'QuesBase'.
> There are 9 rows in 1 pages for object 'QuesBase'.
> DBCC results for 'UKEStudentLoan'.
> There are 0 rows in 0 pages for object 'UKEStudentLoan'.
> DBCC results for 'EBase'.
> There are 497 rows in 17 pages for object 'EBase'.
> DBCC results for 'WorkflowRoute'.
> There are 0 rows in 0 pages for object 'WorkflowRoute'.
> DBCC results for 'ETraining'.
> There are 0 rows in 0 pages for object 'ETraining'.
> DBCC results for 'UKCVehicle'.
> There are 0 rows in 0 pages for object 'UKCVehicle'.
> DBCC results for 'UKTMisc'.
> There are 0 rows in 0 pages for object 'UKTMisc'.
> DBCC results for 'DedS2Override'.
> There are 0 rows in 0 pages for object 'DedS2Override'.
> DBCC results for 'LogData'.
> There are 0 rows in 0 pages for object 'LogData'.
> DBCC results for 'PayStep'.
> There are 1218 rows in 22 pages for object 'PayStep'.
> DBCC results for 'UKEOrgSplitCosting'.
> There are 0 rows in 0 pages for object 'UKEOrgSplitCosting'.
> DBCC results for 'UKCHRBusUnitBudget'.
> There are 0 rows in 0 pages for object 'UKCHRBusUnitBudget'.
> DBCC results for 'UKECarBenefit'.
> There are 0 rows in 0 pages for object 'UKECarBenefit'.
> DBCC results for 'UserB'.
> There are 0 rows in 0 pages for object 'UserB'.
> DBCC results for 'WorkflowTrayBase'.
> There are 0 rows in 0 pages for object 'WorkflowTrayBase'.
> DBCC results for 'AppEducate'.
> There are 0 rows in 0 pages for object 'AppEducate'.
> DBCC results for 'PayType'.
> There are 15 rows in 1 pages for object 'PayType'.
> DBCC results for 'TaskList'.
> There are 11 rows in 1 pages for object 'TaskList'.
> DBCC results for 'DesktopAccount'.
> There are 0 rows in 0 pages for object 'DesktopAccount'.
> DBCC results for 'UKTSMPHistory '.
> There are 0 rows in 0 pages for object 'UKTSMPHistory '.
> DBCC results for 'EEducate'.
> There are 0 rows in 0 pages for object 'EEducate'.
> DBCC results for 'UKTNIDAndXHistory'.
> There are 0 rows in 0 pages for object 'UKTNIDAndXHistory'.
> DBCC results for 'AccBase'.
> There are 0 rows in 0 pages for object 'AccBase'.
> DBCC results for 'UKERate'.
> There are 0 rows in 0 pages for object 'UKERate'.
> DBCC results for 'ImpItem'.
> There are 2202 rows in 58 pages for object 'ImpItem'.
> DBCC results for 'UKTAllowanceHistory'.
> There are 0 rows in 0 pages for object 'UKTAllowanceHistory'.
> DBCC results for 'BenBase'.
> There are 0 rows in 0 pages for object 'BenBase'.
> DBCC results for 'EProperty'.
> There are 0 rows in 0 pages for object 'EProperty'.
> DBCC results for 'EPayrollItem'.
> There are 0 rows in 0 pages for object 'EPayrollItem'.
> DBCC results for 'UserC'.
> There are 0 rows in 0 pages for object 'UserC'.
> DBCC results for 'MassEnrollItem'.
> There are 0 rows in 0 pages for object 'MassEnrollItem'.
> DBCC results for 'UKEOtherBenefit'.
> There are 0 rows in 0 pages for object 'UKEOtherBenefit'.
> DBCC results for 'EMember'.
> There are 0 rows in 0 pages for object 'EMember'.
> DBCC results for 'EUDF'.
> There are 318 rows in 20 pages for object 'EUDF'.
> DBCC results for 'QuesItem'.
> There are 69 rows in 3 pages for object 'QuesItem'.
> DBCC results for 'UKCCategory'.
> There are 0 rows in 0 pages for object 'UKCCategory'.
> DBCC results for 'WorkflowTrayItem'.
> There are 0 rows in 0 pages for object 'WorkflowTrayItem'.
> DBCC results for 'UKCVoluntaryDeduct'.
> There are 0 rows in 0 pages for object 'UKCVoluntaryDeduct'.
> DBCC results for 'CheckSummDed'.
> There are 113755 rows in 2503 pages for object 'CheckSummDed'.
> DBCC results for 'UKECarBenefitMileage'.
> There are 0 rows in 0 pages for object 'UKECarBenefitMileage'.
> DBCC results for 'UKCPayCyclePeriod'.
> There are 0 rows in 0 pages for object 'UKCPayCyclePeriod'.
> DBCC results for 'CheckEntry'.
> There are 0 rows in 0 pages for object 'CheckEntry'.
> DBCC results for 'EqBase'.
> There are 996 rows in 44 pages for object 'EqBase'.
> DBCC results for 'DesktopJournal'.
> There are 0 rows in 0 pages for object 'DesktopJournal'.
> DBCC results for 'UKSelectCriteriumDef'.
> There are 0 rows in 0 pages for object 'UKSelectCriteriumDef'.
> DBCC results for 'AppEEO'.
> There are 0 rows in 0 pages for object 'AppEEO'.
> DBCC results for 'UserD'.
> There are 0 rows in 0 pages for object 'UserD'.
> DBCC results for 'UKCAllowance'.
> There are 0 rows in 0 pages for object 'UKCAllowance'.
> CHECKDB found 0 allocation errors and 0 consistency errors in database
> 'VHR'.
> DBCC execution completed. If DBCC printed error messages, contact your
> system administrator.
> Still got the error:.
> This worked fine yesterday afternoon and this is the same script I was
> running all day yesterday with no problem.
> Tom
>|||"tshad" <tscheiderich@.ftsolutions.com> wrote in message
news:%23jbXaXsvFHA.2008@.TK2MSFTNGP10.phx.gbl...
> Could there be a real limit I am hitting on the Sql Server Developer
> versison?
> How do I tell if I am on that version and how do I tell how many
> tables/views I am using?
>
Is there a problem with setting up a View from another View and could this
be causing my problem?
I just found out that a View that I use works fine if built from actual
tables. But then I needed to change the View to be built from another View
as I had to combine some records from 2 tables before creating the View.
Here is the original View:
****************************************
************************************
***********************************
CREATE VIEW EarningsWithRank
AS
SELECT e1.CseFlxIDCsu, e1.CseDateAdd, e1.CsePayTypeCode,
e1.CsePayTypeShort,e1.CsePayTypeLong,e1.CseCurrHrs, e1.CseCurrErngs,
(SELECT COUNT(*)
FROM CheckSummHE AS e2
WHERE e2.CseFlxIDCsu = e1.CseFlxIDCsu
AND convert(varChar(10),e2.CseDateAdd,112) =
convert(varChar(10),e1.CseDateAdd,112)
AND (e2.CseCurrHrs <> 0.00 and e2.CseCurrErngs <> 0.00)
AND e2.CseFlxID < e1.CseFlxID) AS Rank
FROM CheckSummHE AS e1 where (e1.CseCurrHrs <> 0.00 and e1.CseCurrErngs <>
0.00)
go
****************************************
************************************
*************************************
This View is created from a Table CheckSummHE (an earnings table)
We then found that we needed to move some deduction records from our
deduction table before building the EarningsWithRank table. So I created a
view that just moved some records from the deduction table. I then modified
the EarningsWithRank View to use this new View instead of the CheckSummHE
table.
****************************************
************************************
************************************
Create View EarningsDeductions
As
SELECT e1.CseFlxIDCsu, e1.CseFlxID, e1.CseDateAdd, e1.CsePayTypeCode,
e1.CsePayTypeShort,e1.CsePayTypeLong,e1.CseCurrHrs, e1.CseCurrErngs
FROM CheckSummHE AS e1 where (e1.CseCurrHrs <> 0.00 and e1.CseCurrErngs <>
0.00)
Union
SELECT d1.CsdFlxIDCsu, d1.CsdFlxID,d1.CsdDateAdd, d1.CsdDedCode,
d1.CsdDedCode,d1.CsdDedDesc,1,-d1.CsdDedCurr
FROM CheckSummDed AS d1 where (d1.CsdDedCode not in('ERPEN','457ER') and
d1.CsdDedCode
in('AUTO','BILIN','CALL','CLLOT','COMP',
'DIFF','FLEX','FURLO','SICK','WKBTS'
))
and d1.CsdDedCurr <> 0.00
go
CREATE VIEW EarningsWithRank
AS
SELECT e1.CseFlxIDCsu, e1.CseDateAdd, e1.CsePayTypeCode,
e1.CsePayTypeShort,e1.CsePayTypeLong,e1.CseCurrHrs, e1.CseCurrErngs,
(SELECT COUNT(*)
FROM EarningsDeductions AS e2
WHERE e2.CseFlxIDCsu = e1.CseFlxIDCsu
AND convert(varChar(10),e2.CseDateAdd,112) =
convert(varChar(10),e1.CseDateAdd,112)
AND e2.CseFlxID < e1.CseFlxID) AS Rank
FROM EarningsDeductions AS e1
go
****************************************
************************************
****************************************
Then anytime I run a select that refers to this table, I get the error.
Why does this cause an error? I assume I would need to create a temporary
table instead of a View then build the EarningsWithRank from that.
Is that correct?
Thanks,
Tom
> Thanks,
> Tom
> "tshad" <tscheiderich@.ftsolutions.com> wrote in message
> news:uqVdg1rvFHA.2504@.tk2msftngp13.phx.gbl...
>|||tshad
when you use views instead of tables then, the problem may be ownership
chain (pemissions) problem where you cant exceed 256 objects( which is
practically unlikely)
Read this article and let me know.
http://www.windowsitpro.com/SQLServ...7196/27196.html
Meanwhile , let me read your thread completely. There is absolutely no
problem with your dev edition.
Regards
R.D
"tshad" wrote:
> I got the following error:
>
>|||On Wed, 21 Sep 2005 01:29:32 -0700, tshad wrote:
>Accidently sent this before being done.
>I get the following error:
>Server: Msg 4408, Level 16, State 1, Line 1
>The query and the views or functions in it exceed the limit of 256 tables.
>I have a fairly large Query which works fine and I do have about 6 Views
>that I delete and recreate over and over. There is nowhere near 256 tables
.
>What would cause this?
>I am running this from Sql Query Analyser run from EM.
Hi Tom,
Are you aware that the view name is replaced by the view definition when
the query gets executed?
E.g. if you run:
CREATE VIEW V
AS
SELECT Tab1.X, Tab1.Z, Tab2.A
FROM Tab1
JOIN Tab2
ON Tab1.X = Tab2.Y
go
SELECT V1.X, V2.Z
FROM V AS V1
JOIN V AS V2
ON V2.Z < V1.Z
WHERE V1.A = 17
go
Then the optimizer gets to see this:
SELECT V1.X, V2.Z
FROM (SELECT Tab1.X, Tab1.Z, Tab2.A
FROM Tab1
JOIN Tab2
ON Tab1.X = Tab2.Y) AS V1
JOIN (SELECT Tab1.X, Tab1.Z, Tab2.A
FROM Tab1
JOIN Tab2
ON Tab1.X = Tab2.Y) AS V2
ON V2.Z < V1.Z
WHERE V1.A = 17
And that makes for a total of four tables already (six if the derived
tables are included in the count as well).
If this is about the query I think it is about, then each of the 6 views
in included quite a lot of times - and each of the 6 tables refers to
(if I remember correctly) 2 or 3 tables. You do the maths.
An easy way to verify if this is correct is to reduce the number of
times each view is included in the query until the error stops.
Best, Hugo
--
(Remove _NO_ and _SPAM_ to get my e-mail address)|||"Hugo Kornelis" <hugo@.pe_NO_rFact.in_SPAM_fo> wrote in message
news:p5a6j1dsdccm58hv6bnnoqqmm6tgl3to6v@.
4ax.com...
> On Wed, 21 Sep 2005 01:29:32 -0700, tshad wrote:
>
> Hi Tom,
> Are you aware that the view name is replaced by the view definition when
> the query gets executed?
> E.g. if you run:
> CREATE VIEW V
> AS
> SELECT Tab1.X, Tab1.Z, Tab2.A
> FROM Tab1
> JOIN Tab2
> ON Tab1.X = Tab2.Y
> go
> SELECT V1.X, V2.Z
> FROM V AS V1
> JOIN V AS V2
> ON V2.Z < V1.Z
> WHERE V1.A = 17
> go
> Then the optimizer gets to see this:
> SELECT V1.X, V2.Z
> FROM (SELECT Tab1.X, Tab1.Z, Tab2.A
> FROM Tab1
> JOIN Tab2
> ON Tab1.X = Tab2.Y) AS V1
> JOIN (SELECT Tab1.X, Tab1.Z, Tab2.A
> FROM Tab1
> JOIN Tab2
> ON Tab1.X = Tab2.Y) AS V2
> ON V2.Z < V1.Z
> WHERE V1.A = 17
> And that makes for a total of four tables already (six if the derived
> tables are included in the count as well).
> If this is about the query I think it is about, then each of the 6 views
> in included quite a lot of times - and each of the 6 tables refers to
> (if I remember correctly) 2 or 3 tables. You do the maths.
> An easy way to verify if this is correct is to reduce the number of
> times each view is included in the query until the error stops.
That makes sense.
And yes it is about the Query we have been doing for the last w
always a new wrinkle coming up). It is working well.
And I found the problem, which was that I was trying to create a View from
another View. This happened because I needed to pull some records from the
Deduction table before I created the EarningsWithRank table. But that was
where I got the error.
I ended up change the first View to Copy directly into a table first and
then create the 2nd View from that table.
SELECT e1.CseFlxIDCsu, e1.CseFlxID, e1.CseDateAdd, e1.CsePayTypeCode,
e1.CsePayTypeShort,e1.CsePayTypeLong,e1.CseCurrHrs, e1.CseCurrErngs
Into EarningsDeductions FROM CheckSummHE AS e1 where (e1.CseCurrHrs <>
0.00 and e1.CseCurrErngs <> 0.00)
Union
SELECT d1.CsdFlxIDCsu, d1.CsdFlxID,d1.CsdDateAdd, d1.CsdDedCode,
d1.CsdDedCode,d1.CsdDedDesc,1,d1.CsdDedCurr
FROM CheckSummDed AS d1 where (d1.CsdDedCode not in('ERPEN','457ER') and
d1.CsdDedCode
in('AUTO','BILIN','BILOT','CALL','CLLOT'
,'COMP','DFFOT','DIFF','FLEX','FURLO
','SICK','WKBTS','EBE','MILES','TRANS'))
and d1.CsdDedCurr <> 0.00
go
CREATE VIEW EarningsWithRank
AS
SELECT e1.CseFlxIDCsu, e1.CseDateAdd, e1.CsePayTypeCode,
e1.CsePayTypeShort,e1.CsePayTypeLong,e1.CseCurrHrs, e1.CseCurrErngs,
(SELECT COUNT(*)
FROM EarningsDeductions AS e2
WHERE e2.CseFlxIDCsu = e1.CseFlxIDCsu
AND convert(varChar(10),e2.CseDateAdd,112) =
convert(varChar(10),e1.CseDateAdd,112)
AND e2.CseFlxID < e1.CseFlxID) AS Rank
FROM EarningsDeductions AS e1
go
The first one was originally a View.
Not sure why that caused me the problem.
Tom
> Best, Hugo
> --
> (Remove _NO_ and _SPAM_ to get my e-mail address)|||On Thu, 22 Sep 2005 15:19:44 -0700, tshad wrote:
(snip)
>And I found the problem, which was that I was trying to create a View from
>another View. This happened because I needed to pull some records from the
>Deduction table before I created the EarningsWithRank table. But that was
>where I got the error.
>I ended up change the first View to Copy directly into a table first and
>then create the 2nd View from that table.
>SELECT e1.CseFlxIDCsu, e1.CseFlxID, e1.CseDateAdd, e1.CsePayTypeCode,
>e1.CsePayTypeShort,e1.CsePayTypeLong,e1.CseCurrHrs, e1.CseCurrErngs
>Into EarningsDeductions FROM CheckSummHE AS e1 where (e1.CseCurrHrs <>
>0.00 and e1.CseCurrErngs <> 0.00)
>Union
>SELECT d1.CsdFlxIDCsu, d1.CsdFlxID,d1.CsdDateAdd, d1.CsdDedCode,
>d1.CsdDedCode,d1.CsdDedDesc,1,d1.CsdDedCurr
>FROM CheckSummDed AS d1 where (d1.CsdDedCode not in('ERPEN','457ER') and
> d1.CsdDedCode
> in('AUTO','BILIN','BILOT','CALL','CLLOT'
,'COMP','DFFOT','DIFF','FLEX','FURL
O','SICK','WKBTS','EBE','MILES','TRANS')
)
> and d1.CsdDedCurr <> 0.00
>go
>CREATE VIEW EarningsWithRank
>AS
>SELECT e1.CseFlxIDCsu, e1.CseDateAdd, e1.CsePayTypeCode,
>e1.CsePayTypeShort,e1.CsePayTypeLong,e1.CseCurrHrs, e1.CseCurrErngs,
> (SELECT COUNT(*)
> FROM EarningsDeductions AS e2
> WHERE e2.CseFlxIDCsu = e1.CseFlxIDCsu
> AND convert(varChar(10),e2.CseDateAdd,112) =
>convert(varChar(10),e1.CseDateAdd,112)
> AND e2.CseFlxID < e1.CseFlxID) AS Rank
>FROM EarningsDeductions AS e1
>go
>The first one was originally a View.
>Not sure why that caused me the problem.
Hi Tom,
Well, the first one is a UNION of two tables (BTW, can you change it to
UNION ALL without messing up correctness? Will probably run faster!).
Each time you refer to that as a view, you are actually referring to two
tables. The EarningsWithRank view refers to EarningsDeductions twice.
Expend the view definition into this, and you've got a total of four
tables (maybe five if the derived table is counted as well). Use a temp
table for EarningsDeductions, and EarningsWithRank now suddenly only
usese two (or three) tables.
How often do you have EarningsWithRank in your query? Ten times, if I
recall correctly? If so, then using a temp table instead of the first
view has reduced the number of tables in the complete query by twenty!
Best, Hugo
--
(Remove _NO_ and _SPAM_ to get my e-mail address)
No comments:
Post a Comment