连接数据库一般采取字符串连接。这个字符串的获取方法用了“不能说的秘密”,即任意新建一个txt文件,重命名为.x.udl。然后双击此文件,将出现“数据库连接属性”窗口。第一个标签页“提供程序”列出了所有数据库引擎,Access,
SQL Server, Oracle等,选择后点下一步跳至第二个标签页“...
分类:
数据库 时间:
2014-05-26 10:32:19
阅读次数:
285
最新系列.NET 4.0中的新特性系列课程SQL Server 2008 Integrate
Service 基础开发案例系列课程公共语言运行库(CLR)开发系列课程.NET 开发.NET 开发从入门到精通系列课程Smart
Client系列课程ASP.NET 新特性系列课程.NET Framewo...
分类:
其他好文 时间:
2014-05-26 10:25:31
阅读次数:
335
死锁和堵塞一直是性能测试执行中关注的重点。下面是我整理的监控sql
server数据库,在性能测试过程中是否出现死锁、堵塞的SQL语句,还算比较准备,留下来备用。--每秒死锁数量SELECT*
FROMsys.dm_os_performance_counters WHEREcounter_nameL...
分类:
数据库 时间:
2014-05-26 10:21:08
阅读次数:
265
SQL Server
数据库有三种文件类型,分别是数据文件、次要数据文件和日志文件,其中日志文件包含着用于恢复数据库的所有日志信息,SQL
Server总是先写日志文件ldf,数据变化写入mdf则可以滞后,所以日志写入的速度在一定程序上决定了SQL
Server所能承载的写事务量,那么ldf写入大小...
分类:
数据库 时间:
2014-05-26 10:12:45
阅读次数:
295
Given an array S of n integers, find three
integers in S such that the sum is closest to a given number, target. Return the
sum of the three integers....
分类:
其他好文 时间:
2014-05-26 09:58:20
阅读次数:
220
Given an unsorted integer array, find the first
missing positive integer.For
example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm should ru...
分类:
其他好文 时间:
2014-05-26 09:43:14
阅读次数:
220
Given an array S of n integers, are there
elements a, b, c, and d in S such that a + b + c + d = target? Find all unique
quadruplets in the array whic...
分类:
其他好文 时间:
2014-05-26 09:42:30
阅读次数:
209
SQL server有一个sql
profiler可以实时跟踪服务器执行的SQL语句,这在很多时候调试错误非常有用。例如:别人写的复杂代码、生产系统、无调试环境、无原代码...
...查了一下资料,My SQL可以用下面方法跟踪sql 语句,以下方法以Windows平台为例,linux雷同:1 配置...
分类:
数据库 时间:
2014-05-26 09:40:51
阅读次数:
445
变量定义(variables):local: time or _time instance:
@time class: @@time global $time数据类型(data types)Numeric String Symbol Boolean
Array Hashvariabl...
分类:
其他好文 时间:
2014-05-26 09:39:54
阅读次数:
217
数据库中存储的信息主要有:数字、时间、文字、图片、唯一标示等。针对数字有:bit,tinyint,smallint,int,long,decimal,float。长度从一个位逐个字节(8位)的增加。时间:date,datetime.文字:char,varchar,nvarchar.唯一标示有:tim...
分类:
数据库 时间:
2014-05-26 09:12:53
阅读次数:
218