上一页 1 ··· 5 6 7 8 9 10 11 下一页

2013年10月22日

sql server 的 @@rowcount 变量

摘要: @@rowcountAfter each Transact-SQL statement, the server sets the value of this variable to the total number of records affected by it. It can be used to verify the success of selected operations: select Make, Model, EqTypeid into OldEquipment from Equipment where EqTypeid = 2 if ... 阅读全文

posted @ 2013-10-22 17:17 齐文宣 阅读(530) 评论(0) 推荐(0)

2013年10月17日

使用Template时 typename 关键字的用法

摘要: 以下面这个简单的程序为例#include templatestruct EST_TTI_Entry{ float t; CONTAINER::Index i;};int main(){ return 0;}使用 visual studio 2008 编译会提示 1>d:\code\cplusexercise\abouttemplatememberdefaultint\main.cc(7) : error C2146: syntax error : missing ';' before identifier 'i'1>d:\code\cplusexer 阅读全文

posted @ 2013-10-17 15:51 齐文宣 阅读(899) 评论(0) 推荐(0)

2013年10月14日

SqlCommand 的 4个方法

摘要: 1 : ExecuteNonQuery() Executes non-SELECT commands, such as SQL commands that insert,delete, or update records. The returned value indicates the number of rows affected by the command. You can also use ExecuteNonQuery() toexecute data-definition commands that create, alter, or delete database object 阅读全文

posted @ 2013-10-14 15:39 齐文宣 阅读(289) 评论(0) 推荐(0)

2013年9月18日

关于 StreamReader 的 ReadToEnd() 方法

摘要: 下面这段代码using (WebResponse response = request.GetResponse()){ using (StreamReader rd = new StreamReader(response.GetResponseStream())) { XDocument xd = XDocument.Load(rd.ReadToEnd()); }}在VS2005会报 :路径中有非法字符错误 如果改成using (WebResponse respons... 阅读全文

posted @ 2013-09-18 14:05 齐文宣 阅读(1930) 评论(0) 推荐(0)

2013年9月17日

sql server 导入 .net assembly 时, 报 assembly is built for an unsupported version of the Common Language Runtime. 错误的解决办法

摘要: 一种是:让 sql server 2008 支持.net 4.0,但如何实现不知道简单方法是 : 用 vs 2005 build程序集或者在 project---->property---->application----->Target Framework 选 .net framework 3.5vs各版本使用的.net 版本分别是1.0: Visual Studio .NET1.1: Visual Studio .NET 20032.0: Visual Studio 2005 / 20083.0 / 3.5: Visual Studio 20084.0: Visual S 阅读全文

posted @ 2013-09-17 14:49 齐文宣 阅读(272) 评论(0) 推荐(0)

2013年9月12日

用httpWebRequest调用https开头的php webservice,报“基础连接已经关闭: 未能为SSL/TLS 安全通道建立信任关系”错误的解决方法

摘要: 在窗体的 InitializeComponent();之后,加一句System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };让证书的Validation总是返回true 阅读全文

posted @ 2013-09-12 14:28 齐文宣 阅读(556) 评论(0) 推荐(0)

2013年9月10日

CLR has been unable to transition from COM context … for 60 seconds’ error. 此错误的解决方法

摘要: One fix for the problem is to go to the Debug -> Exceptions -> Managed Debug Assistants menu in Visual Studio and uncheck the ContextSwitchDeadlock来源网站 http://blog.wpfwonderland.com/2007/08/16/clr-has-been-unable-to-transition-from-com-context-for-60-seconds/ 阅读全文

posted @ 2013-09-10 10:48 齐文宣 阅读(657) 评论(0) 推荐(0)

2013年8月19日

将传入的时间置为当月第一天的零点

摘要: declare @ct as datetimeselect @ct=GETDATE()print @ctselect @ct=dateadd(month,datediff(month,0,@ct), '00:00:00')print @ct 阅读全文

posted @ 2013-08-19 16:42 齐文宣 阅读(166) 评论(0) 推荐(0)

2013年6月28日

wpf程序报"The name 'InitializeComponent' does not exist in the current context"的

摘要: stackOverFlow 's answerI've encountered this a couple times and keep forgetting what causes it. I ran into this when I renamed the namespace on my code behind file but not in my XAML.So check if you've done the same. They need to match since they are both part of a partial classnamespace 阅读全文

posted @ 2013-06-28 16:20 齐文宣 阅读(832) 评论(0) 推荐(0)

2013年6月26日

解决---请求“System.Net.WebPermission, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”类型的权限已失败。

摘要: 1:项目属性-----应用程序:清单为Properties\app.manifest2: 修改安全选项:启用ClickOnce安全设置,选择这是安全可信的应用程序来源网页: http://www.silverlightchina.net/html/study/WPF/2012/0315/14531.html 阅读全文

posted @ 2013-06-26 21:36 齐文宣 阅读(3013) 评论(1) 推荐(0)

上一页 1 ··· 5 6 7 8 9 10 11 下一页

导航