上一页 1 ··· 6 7 8 9 10 11 12 下一页
摘要: 1. 与SQL相关的timeout, 都是由Client端发起的.比如说, 我们自己写了个C#小程序, 其中使用了SqlCommand.CommandTimeout属性, 指定它的值为20秒. 那么, 当这个query在SQL端执行了二十秒后, 我们的C#小程序会给SQL Server发送一个TDS Tension数据包, 告诉SQL Server我这边超时了, 你那边的query不用做了. 于是SQL相应client的请求, 断掉connection. Client端报出一条exception, 说SQL Server端的运行时间太长, 超过了我们原定的时限.2. 那么SQL Server 阅读全文
posted @ 2013-06-03 11:52 Vincent.Dr 阅读(1424) 评论(0) 推荐(0)
摘要: NOLOCK============使用NOLOCK, 你会告诉SQL Server去忽略掉locks, 直接从表中读取数据. 这意味着你规避了SQL Server的锁系统, 会大幅度地提高性能和可扩展性.然而, 既然你完全地绕过了锁系统, 也就意味着你的代码存在着读取了脏数据的风险. 你也许会读取到没有在一个transaction中被committed的不合法的数据. 这很危险.ROWLOCK============使用ROWLOCK, 你会告诉SQL Server去仅仅使用row-level的lock. 在SELECT, UPDATE, 和DELETE语句中, 你可以使用这个关键字, 但是 阅读全文
posted @ 2013-06-03 11:36 Vincent.Dr 阅读(241) 评论(0) 推荐(0)
摘要: DateTimeFormatInfo pattern = new DateTimeFormatInfo() { ShortDatePattern = "your date pattern" }; DateTime date = Convert.ToDateTime("your date string",pattern);This method can convert any valid date string to a DateTime. 阅读全文
posted @ 2013-05-20 11:21 Vincent.Dr 阅读(159) 评论(0) 推荐(0)
摘要: My target is using SSIS to export the data into Excel file from SQL Command(OLB DB Source).However. I created a very simple demo to testing the functionality as below(SQL query thing) but nothing can be export successful.declare @Temptabletable (Id int, Name nvarchar(50))insert into @Temptable value 阅读全文
posted @ 2013-05-07 23:43 Vincent.Dr 阅读(168) 评论(0) 推荐(0)
摘要: There are many reason caused configuration error was caught.But I got the stupid one.I checked the Web.config file and found that I configured two duplicate configuration item as below: <system.web> <compilation debug="true" targetFramework="4.0" /> </system.web> 阅读全文
posted @ 2013-05-06 16:35 Vincent.Dr 阅读(311) 评论(0) 推荐(0)
摘要: Global.asax 文件,有时候叫做 ASP.NET 应用程序文件,提供了一种在一个中心位置响应应用程序级或模块级事件的方法。你可以使用这个文件实现应用程序安全性以及其它一些任务。下面让我们详细看一下如何在应用程序开发工作中使用这个文件。概述 Global.asax 位于应用程序根目录下。虽然 Visual Studio .NET 会自动插入这个文件到所有的 ASP.NET 项目中,但是它实际上是一个可选文件。删除它不会出问题——当然是在你没有使用它的情况下。.asax 文件扩展名指出它是一个应用程序文件,而不是一个使用 aspx 的 ASP.NET 文件。 Global.asax 文件被 阅读全文
posted @ 2013-05-03 15:07 Vincent.Dr 阅读(284) 评论(0) 推荐(0)
摘要: When I using SSIS to export data from database.There are two exception was caught:The exception detail as below:SSIS Error Code DTS_E_OLEDB_EXCEL_NOT_SUPPORTED: The Excel Connection Manager is not supported in the 64-bit version of SSIS, as no OLE DB provider is available.--Solution one--If you' 阅读全文
posted @ 2013-04-25 15:34 Vincent.Dr 阅读(767) 评论(0) 推荐(0)
摘要: If we using 'OLE DB Source' component to obtain the data source and export to the Excel File.The convert exception will be catch when column is varchar.So we can change the varchar to nvarchar or using a 'Data Convertor' component to convert.------However. I got a other problem.In th 阅读全文
posted @ 2013-04-20 02:53 Vincent.Dr 阅读(657) 评论(0) 推荐(0)
摘要: More Info please click :http://timradney.com/2011/05/17/using-an-excel-destination-in-ssis-with-x64/ 阅读全文
posted @ 2013-04-20 01:56 Vincent.Dr 阅读(155) 评论(0) 推荐(0)
摘要: Exception Details:NHibernate.Cfg.HibernateConfigException: An exception occurred during configuration of persistence layer. ---> System.IO.FileNotFoundException: Could not find file 'C:\Windows\system32\Config\hibernate.cfg.xml'.Reason:By default window services set the default directory 阅读全文
posted @ 2013-03-13 17:55 Vincent.Dr 阅读(819) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 下一页