代码改变世界

阅读排行榜

获得客户端详细信息以及每个进程的sql语句

2012-02-08 09:30 by java环境变量, 349 阅读, 收藏,
摘要: db性能下降时很多朋友都想监控到是哪个客户端、哪个用户、哪台客户端发起的什么会话sql语句,但是微软自带的要使用profiler才能实现,但是考虑性能问题,很多人不愿意!网上有很多脚本能监控到客户端信息,但是唯独不能获取客户端进程的sql语句!我自己写了一个,供参考:--1.新建存储过程--create proc prtest --@spid int --as --dbcc inputbuffer (@spid) --go --2.将结果保存到临时变量#tmpSELECT [Session ID] AS 会话ID , [Login] AS 用户名 , [Database] AS 数据库 , [ 阅读全文

Objective-C 入门(一)初识Objective-C

2011-12-19 15:30 by java环境变量, 349 阅读, 收藏,
摘要: 首先开发Iphone相比大家都知道要学习Objective-C这门语言Xcode软件 必须运行在Mac机 没有的整一个吧 或者可以选择在自己的电脑中安装黑苹果 网上黑苹果教程比较全现在开始我们的开发之旅启动Xcode在File菜单下选择new Project----------图在左侧窗格中选择Command Line Utility右侧窗体中选择Foundation tool单机choose----------图弹出新窗口Save As中输入程序名可以选择一个放项目的文件夹----------图单机Save新项目就创建完毕----------图介绍下项目中的各个文件.c----------- 阅读全文

sqlserver output

2012-06-04 13:42 by java环境变量, 348 阅读, 收藏,
摘要: create table t3(sid int not null primary key,sname varchar(10))insert into t3 values(101,'wind')insert into t3 values(102,'snow')insert into t3 values(103,'kiki')select * from t3select * into t4 from t3 where 1=0select * from t4----insertinsert into t4 output inserted.sid,ins 阅读全文

poj-2503 Babelfish

2012-03-14 02:28 by java环境变量, 348 阅读, 收藏,
摘要: BabelfishTime Limit:3000MSMemory Limit:65536KTotal Submissions:22593Accepted:9698DescriptionYou have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language. Fortunately, you have a dictionary to help you understand them.InputInput consists of 阅读全文

poj 1654 Area ----- 计算几何

2012-04-19 19:55 by java环境变量, 346 阅读, 收藏,
摘要: AreaTime Limit:1000MSMemory Limit:10000KTotal Submissions:9899Accepted:2800DescriptionYou are going to compute the area of a special kind of polygon. One vertex of the polygon is the origin of the orthogonal coordinate system. From this vertex, you may go step by step to the following vertexes of th 阅读全文
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 110 下一页