<<<<<<<<<<<<<<<<< START OF Export ALL>>>>>>>>>>>>>>>>>>>>>>>>>>>> strSql for RecCount:Select Count(*) as Count1 from Device where tkProduct=36 and tkclass=1 strSql for TotalRecs:Select pkid,name,Description,fkDevicePool,fkCallingSearchSpace,fkCallingSearchSpace_AAR,fkMediaResourceList,userHoldMOHAudioSourceID,NetworkHoldMOHAudioSourceID,fkLocation,tkUserLocale,tkCountry,phoneTemplateClause,fkSoftKeyTemplate,SpecialLoadInformation,allowHotelingflag,ikDevice_DefaultProfile,LoginUserID,LoginTime,LoginDuration,xml from Device where tkProduct=36 and tkclass=1 strSql for LineDetails:Select dNOrPattern,fkRoutePartition,fkVoiceMessagingProfile,fkCallingSearchSpace_SharedLineAppear,fkAARNeighborhood,userHoldMOHAudioSourceID,networkHoldMOHAudioSourceID,tkStatus_CallWaitingEnable,tkAutoAnswer,cFAVoiceMailEnabled,cFADestination,fkCallingSearchSpace_CFA,cFBVoiceMailEnabled,cFBDestination,fkCallingSearchSpace_CFB,cFNAVoiceMailEnabled,cFNADestination,fkCallingSearchSpace_CFNA,cFDFVoiceMailEnabled,deviceFailureDN,fkCallingSearchSpace_DeviceFailure,ikNumPlan_CallPickUpGroup from Numplan strSql for DevNumplanMap:Select NumplanIndex,fkNumplan,label,display,tkRingSetting,e164Mask,tkMWLPolicy,tkRingSetting_Consecutive from deviceNumplanMap