posts - 83,  comments - 881,  views - 52万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

随笔分类 -  Database

[新手点滴] IDbCommand.Prepare()方法。
摘要:一个可以有助于提高command执行效率的方法:) 阅读全文
posted @ 2006-03-06 18:26 Laser.NET 阅读(2350) 评论(2) 推荐(0) 编辑
[ADO.NET]由数据库触发器引发的问题
摘要:前一段时间在数据库中用了触发器后发现了一个问题:如果触发器中修改了某个表中的数据的话,那么用ExecuteNonQuery方法执行一个SQL语句的时候,返回的值将是触发器所影响的行数和sql语句本身所影响的行数的总和。这个问题,对于以往通过ExecuteNonQuery方法的返回值来得知当前SQL语句修改了当前表中几条记录的程序来说,就带来了些麻烦。 阅读全文
posted @ 2005-12-12 22:36 Laser.NET 阅读(3058) 评论(5) 推荐(0) 编辑
The Maximum Number of Bytes Per Row in SQL Server 2000 -- 8060.
摘要:Tody, I created a table with three columns are of data type varchar(8000), and a warning was prompted out in the SQL Query Analyzer: “Warning: The table 'TestTable' has been created but its maximum ro... 阅读全文
posted @ 2004-09-19 21:17 Laser.NET 阅读(1931) 评论(0) 推荐(0) 编辑
A Security Problem Caused by xp_cmdshell in SQL Server.
摘要:Today, one of my colleagues demonstrated how to use the extended stored procedure xp_cmdshell to activate the windows Guest account and clear the password of that account, and thenadd theGuest accou... 阅读全文
posted @ 2004-08-08 13:09 Laser.NET 阅读(656) 评论(2) 推荐(0) 编辑
Creating recurive stored procedures in T-SQL.
摘要:In SQLServer, I tried to define a stored procedure to recursively invoke itself (See the following T-SQL statements). However, the maximum nesting level of recursion is 30 (Tested under SQL Server 200... 阅读全文
posted @ 2004-08-04 19:19 Laser.NET 阅读(719) 评论(2) 推荐(0) 编辑
How to enable SQL Debugging.
摘要:SQL Server has a built-inextended stored procedure,named sp_sdidebug, the permission towhich is necessary for a user tohave the capabilityof debugging stored procedures. To grant the permission, ... 阅读全文
posted @ 2004-08-03 19:19 Laser.NET 阅读(740) 评论(0) 推荐(0) 编辑

无觅相关文章插件,快速提升流量
点击右上角即可分享
微信分享提示