07 2012 档案
摘要:ALTERproc[dbo].[FirstCreatePayFuture]asdeclare@identity_idnvarchar(50);declare@countint;set@count=0;DECLAREvendor_cursorCURSORFORselectdistinctidentity_idfromdbo.T_Billstbwheretb.identity_id!=''OPENvendor_cursor--打开游标FETCHNEXTFROMvendor_cursorINTO@identity_id--遍历数据while(@@FETCH_STATUS=0)--判断
阅读全文
摘要:权限问题 无法升级数据库 'SqlDB',因为它是只读的: 1. 问题原因:sa的权限不足。当前sa是NetworService ; 2. 解决方法:将用户的登录身份修改为“Local Service”;用Windows身份用户登录
阅读全文
摘要:select*from(selectyear(pay_date)pay_date,month(pay_date)aa,sum(premium)sumPrefromdbo.T_Bill_Payswherecntr_no=@cnr_nogroupbyYEAR(pay_date),month(pay_date))a PIVOT(--转换sum(sumPre)FORaain([1],[2],[3],[4],[5],[6],[7],[8],[9],[10],[11],[12]))borderbypay_datedesc
阅读全文