易截截图软件、单文件、免安装、纯绿色、仅160KB

SQLServer 2005 中的类型 与 C# 中的类型 对应 关系

<Language from="SQL" To="C#">
   <Type from="bigint" To="long" />
   <Type from="binary" To="object" />
   <Type from="bit" To="bool" />
   <Type from="char" To="string" />
   <Type from="datetime" To="DateTime" />
   <Type from="decimal" To="decimal" />
   <Type from="float" To="double" />
   <Type from="image" To="byte[]" />
   <Type from="int" To="int" />
   <Type from="money" To="decimal" />
   <Type from="nchar" To="string" />
   <Type from="ntext" To="string" />
   <Type from="numeric" To="decimal" />
   <Type from="nvarchar" To="string" />
   <Type from="real" To="float" />
   <Type from="smalldatetime" To="DateTime" />
   <Type from="smallint" To="short" />
   <Type from="smallmoney" To="decimal" />
   <Type from="text" To="string" />
   <Type from="timestamp" To="byte[]" />
   <Type from="tinyint" To="byte" />
   <Type from="uniqueidentifier" To="Guid" />
   <Type from="varbinary" To="byte[]" />
   <Type from="varchar" To="string" />
   <Type from="xml" To="string" />
   <Type from="sql_variant" To="object" />
</Language>
<Language from="SQL" To="C# System Types">
   <Type from="bigint" To="System.Int64" />
   <Type from="binary" To="System.Object" />
   <Type from="bit" To="System.Boolean" />
   <Type from="char" To="System.String" />
   <Type from="datetime" To="System.DateTime" />
   <Type from="decimal" To="System.Decimal" />
   <Type from="float" To="System.Double" />
  


相关文档:

JavaScript连接SqlServer并实现分页(二)

//总记录数
function sumRecord()
{
var conn= Server.CreateObject("ADODB.connection");
var rs= Server.CreateObject("adodb.recordset");
conn.open("PROVIDER=SQLOLEDB;DATA SOURCE=127.0.0.1;UID=sa;PWD=123456;DATABASE=test");
var sql = "select count(*) as RecordCount from baoming";
rs.open(sql, ......

ASP.NET(C#)图片上传压缩成缩略图的代码

// 按模版比例生成缩略图(以流的方式获取源文件)
//生成缩略图函数
//顺序参数:源图文件流、缩略图存放地址、模版宽、模版高
//注:缩略图大小控制在模版区域内
public static void MakeSmallImg(System.IO.Stream fromFileStream,string fileSaveUrl,System.Double templateWidth,System.Double templateHeight)
{ ......

Sqlite基础及其与SQLServer语法差异

sqlite官方站
http://www.sqlite.org/
SQL Syntax
http://www.sqlite.org/lang.html
sqlite中文站
http://www.sqlite.com.cn/
http://www.sqlitechina.org/
建立数据库档案
用sqlite3建立数据库的方法很简单,只要在shell下键入(以下$符号为shell提示号,请勿键入):
$ sqlite3 foo.db
如果目录下没有fo ......

SqlServer 表 解锁

--spid:死锁的进程,tableName :死锁的表
select request_session_id spid,OBJECT_NAME(resource_associated_entity_id)tableName from sys.dm_tran_locks
where resource_type='OBJECT'
--spid:要结束的进程id
kill spid ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号