You are on page 1of 3

/****** Script for SelectTopNRows command from SSMS ******/

SELECT TOP 1000 [PK_iwItems]


,[tstamp]
,[FK_mscItemCategory]
,[FK_mscExamTypes]
,[FK_mscPHICCategory]
,[FK_mscPrintCategory]
,[FK_faVendors]
,[FK_faGLAcctSalesIPD]
,[FK_faGLAcctSalesOPD]
,[FK_faGLAcctSalesERD]
,[FK_faGLAcctCostIPD]
,[FK_faGLAcctCostOPD]
,[FK_faGLAcctCostERD]
,[FK_faGLAcctRF]
,[FK_faGLAcctInven]
,[FK_faGLAcctExpense]
,[FK_faGLAcctPurchase]
,[FK_mscDrugAdminGroup]
,[FK_mscDoctorServiceClass]
,[hs7itemid]
,[itemgroup]
,[barcodeid]
,[barcodeidcustom]
,[itemdesc]
,[itemdesccustom]
,[itemabbrev]
,[specs]
,[unit]
,[bigunit]
,[conversion]
,[resultcateg]
,[printsection]
,[saledate]
,[saleprice]
,[purcprice]
,[purcdiscountspecs]
,[phicprice]
,[surgicaltype]
,[isallowstat]
,[isphicdeductable]
,[isactive]
,[isfixedasset]
,[isallowdiscount]
,[isopenprice]
,[isreagentonly]
,[isactvresult]
,[issingletest]
,[isproductiononly]
,[isvatable]
,[dctrrboption]
,[dctrrbbase]
,[agentrboption]
,[agentrbbase]
,[orderqty]
,[poqty]
,[lowinven]
,[maxinven]
,[statpercent]
,[rfsetup]
,[rfcomptype]
,[rfbase]
,[scbasepriceipd]
,[scbasepriceopd]
,[scbasepriceerd]
,[slowdays]
,[lastpurcprice]
,[lastpurcdate]
,[landcost]
,[minsaleprice]
,[maxsaleprice]
,[othinfo]
,[picture]
,[remarks]
,[lastrrdate]
,[lastrrqty]
,[lastprdate]
,[lastprqty]
,[isPHICItemAnalysis]
,[invtype]
,[isInventory]
,[isConsignment]
,[ReOrderRate]
,[bulkcost]
,[printcateg]
,[purcdate]
,[isallowrb]
,[rbrate]
,[avgcost]
,[isHS8Item]
,[cptcode]
,[cptsymbol]
,[FK_mscCPTSections]
,[FK_mscCPTSubSections]
,[ruvno]
,[ruvrate]
,[LeadTime]
,[isConsultation]
,[isIncludeinAutoSPupdate]
,[AutoSPupdateOption]
,[drsharetype]
,[drsbase]
,[reorderbufferdays]
,[reorderdatestart]
,[isreorderitem]
,[FK_mscWarehouse_reorder]
,[EDPMSDrugCode]
,[allowedcost]
,[isRequireLotNo]
,[isRequireExpDate]
,[includeinRebateAnnual]
,[isERDRebate]
,[isOPDRebate]
,[isIPDRebate]
,[rebateRateReq]
,[rebateRateAnnual]
,[isdoctorfee]
,[isVATExempt]
,[isZeroRated]
,[IsImmunization]
,[FK_mscOtherHospitalServices]
,[FK_mscModalities]
,[ispathology]
,[isprimarymedteam]
,[isOrthoSpine]
,[includeinRebatePriceScheme]
,[FK_emdTempSpecializations]
,[SAPCustID]
,[FK_mscSpecimens]
,[vaccinename]
,[bomAmount]
,[isIncludeBOM]
,[isEnforceSendOut]
,[isEnforceSettlement]
,[sapitemtaxcode]
,[rebateRateIPD]
,[rebateRateOPD]
,[rebateRateER]
,[FK_mscDOHDrugList]
FROM [LiveDB_CGHMCI].[dbo].[iwItems]

You might also like