上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 16 下一页
摘要: FxCopCmd /file:C:\WebSite\Hello\WorkingDirectory\Hello\bin\Hello.dll /ruleset:+"GlobalizationRules.ruleset" /rulesetdirectory:"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\Rule Sets" /directory:"C:\WebSite\Hello\WorkingDirectory\Hello\ 阅读全文
posted @ 2012-12-13 16:05 717806198 阅读(299) 评论(0) 推荐(0)
摘要: ASCMD -S xxx.xxx.xxx.xxx -v DWServer=xxx.xxx.xxx.xxx -i Test.xmla -U domain\username -P password其中用户是登录服务器的Windows账户,而不是登录数据库的账户以上是假定ascmd和保存下来的XMLA在同一目录,如果不在一起,那么更改-i后面的值就可以。其中:-S是要部署的目标服务器地址,不如localhost或者172.5.3.123-v就是参数的替换,也就是之前替换的$DWServer,也就是数据源所在的位置。另如果是在64位环境使用,记得要用64位版本去编译ascmd.exe。参考:http: 阅读全文
posted @ 2012-12-13 11:33 717806198 阅读(196) 评论(0) 推荐(0)
摘要: osql -U sa -P pass@word1 -i D:\Test\script.sql -S 127.0.0.1 执行数据库的脚本文件恢复数据库到远程S其中账户是登录数据库服务器的账户1、备份"C:\Program Files\Microsoft SQL Server\90\Tools\Binn\SQLCMD.EXE"-S .\sqlexpress-U sa-P000000-d master-Q"BACKUPDATABASEtesttodisk='c:\aa\aaa.bak'"已为数据库'test',文件't 阅读全文
posted @ 2012-12-13 10:08 717806198 阅读(268) 评论(0) 推荐(0)
摘要: select m.*,e.* from dbo.T_RequestMaster mleft join dbo.T_Expense eon m.RequestGuid=e.RequestGuidwhere m.RequestGuid=@RequestGuidselect e.AccountGuid,e.Amount,e.BusinessDate,e.ExpenseDailyGuid,e.PeopleGuid,e.Purpose,e.RequestGuid,a.AccountName from dbo.T_ExpenseDaily AS e LEFT OUTER JOINdbo.T_Accoun. 阅读全文
posted @ 2012-12-10 10:58 717806198 阅读(153) 评论(0) 推荐(0)
摘要: CREATE PROCEDURE [dbo].[up_TransportationDetailEdit]@TransGuid uniqueidentifier,@RequestGuid uniqueidentifier,@TransFrom varchar(50),@TransTo varchar(50),@TransDate datetime,@TransNo varchar(50),@DepTime varchar(10),@ArrTime varchar(10),@CreatedAt datetimeASIF(EXISTS(SELECT 1 FROM T_TransportationDe 阅读全文
posted @ 2012-12-06 14:38 717806198 阅读(170) 评论(0) 推荐(0)
摘要: CREATE PROCEDURE [dbo].[up_AccountItemSelectALL]ASSELECT a.AccountGuid, a.AccountCategory, a.AccountName, a.AccountFSCode, a.DICGuid, a.IsObsoleted, d.DepartmentName, d.DepartmentCode FROM dbo.T_AccountItem AS aLEFT OUTER JOIN dbo.T_Department AS dON a.DICGuid = d.DepartmentGuidORDER BY a.AccountCat 阅读全文
posted @ 2012-12-06 14:36 717806198 阅读(160) 评论(0) 推荐(0)
摘要: create PROCEDURE [dbo].[up_AccountItemEdit]@AccountGuid uniqueidentifier,@AccountCategory varchar(50),@AccountName varchar(50),@AccountFSCode varchar(50),@DICGuid uniqueidentifier,@IsObsoleted bitASIF(EXISTS(SELECT 1 FROM T_AccountItem trm WHERE trm.AccountGuid=@AccountGuid))BEGIN UPDATE T_AccountIt 阅读全文
posted @ 2012-12-06 14:33 717806198 阅读(179) 评论(0) 推荐(0)
摘要: /// ///事务 ///internal SqlTransaction Transaction { get; set; }public string EditEmployee(OrgEmployee employee, Guid departmentGuid, Guid companyGuid, bool isPIC){SqlPlus plus = new SqlPlus();string result = string.Empty;using (SqlConnection conn = plus.GetConnection()){conn.Open();this.Transaction = 阅读全文
posted @ 2012-12-06 14:29 717806198 阅读(780) 评论(0) 推荐(0)
摘要: public static string DefaultConnString{get{return ConfigurationManager.AppSettings["Connection"];} }/// /// 构造事务 ///public SqlTransaction GetTransaction(){using (SqlConnection connection = new SqlConnection(this.SqlConnString)){connection.Open();SqlTransaction trans = connection.BeginTrans 阅读全文
posted @ 2012-12-06 14:16 717806198 阅读(222) 评论(0) 推荐(0)
摘要: '> 阅读全文
posted @ 2012-12-06 13:51 717806198 阅读(206) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 16 下一页