1. Grant necessory permission to user account, so it can use SQL profiler. USE masterGRANT ALTER TRACE TO TEST;GRANT VIEW SERVER STATE TO TEST;USE testDBGRANT VIEW DATABASE STATE TO TEST;GRANT SHOWPLAN TO TEST; 2. SQL Server Computed Column Example C…
1.Enable the change tracking at the database level. ALTER DATABASE AdventureWorks2008 SET CHANGE_TRACKING = ON; By Default retention is 2 dyas with auto clean up on.We can use below SQL to check it. SELECT * FROM sys.change_tracking_databases databas…
Defines the attributes of a Transact-SQL server cursor, such as its scrolling behavior and the query used to build the result set on which the cursor operates. DECLARE CURSOR accepts both a syntax based on the ISO standard and a syntax using a set of…
今天使用Tomcat连接sql Server 2008 enterprise的时候,报错: HTTP Status 500 - Servlet execution threw an exception type Exception report message Servlet execution threw an exception description The server encountered an internal error that prevented it from fulfil…
今天的工作中,需要远程访问服务器上的数据库.但是,连接错误,Error code is 1326.说句实话,关于SqlServer 不能远程访问这个问题,我遇到过N次.可是每次都不认真去研究到底是什么原因造成的?直到今天,我解决这个遇到过N多次的问题时,还是相当棘手.在今天解决这个问题过程中,我深深的明白了一条真理.”遇到问题,如果逃避了,这辈子都要被它折磨.如果,忍受着折磨的痛苦去解决它,那么它永远不敢在找你.”生活中也是一样,不要去祈祷 life become simple,要去祈祷 o…