摘要:
在cmd上输入C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 aspnet_regiis.exe i 阅读全文
摘要:
SQL Server 2008 R2 各个版本支持的功能http://msdn.microsoft.com/zh-cn/library/cc645993.aspx 阅读全文
摘要:
public byte[] GetASCII(byte a) { byte b; byte[] bs = new byte[2]; b = (byte)(a & 0x0f); if (b < 10) bs[1] = (byte)(0x30 + b); else bs[1] = (byte)(0x37 + b); b = (byte)((a & 0xf0) >> 4); ... 阅读全文
摘要:
需要添加2个dll文件:Mono.Security.dll; Npgsql.dll。例子大家自己参考一下: private void button1_Click(object sender, System.EventArgs e) { richTextBox1.Text = string.Format( "Server={0};Port={1};Userid={2};database=testdb;password={3};Protocol=3;SSL=false;Pooling=true;MinPoolSi... 阅读全文
摘要:
@test是变量select @xml.exist(N'//MasterxRow[position()=sql:variable("@test")]') 阅读全文
摘要:
use master go --建一个存储过程,断开所有用户连接。 create proc killspid (@dbname varchar(20)) as begin declare @sql nvarchar(500) declare @spid int set @sql='declare getspid cursor for select spid from sysprocesses where dbid=db_id('''+@dbname+''')' exec (@sql) open getspid fetch next 阅读全文
摘要:
withCTSAS(selectid,CategoryfromtblStringMap)updatetblStringMapsetPage=(selectCategoryfromCTSwhereCTS.id=tblStringMap.Id) 阅读全文
摘要:
ALTER DATABASE DBName SET NEW_BROKER WITH ROLLBACK IMMEDIATE;ALTER DATABASE DBName SET ENABLE_BROKER;这是在外国论坛里找的一个解决方案,果然可以,不然运行一个晚上都会卡在那里 阅读全文
摘要:
表里面点开一个XML字段的值如下<MasterxRow> <ActivityType>2</ActivityType> <ProductType>21</ProductType> <RefNo>222222222222222222222</RefNo> <ContactResult>0</ContactResult> <Reason /> <OtherReason /> <OtherActivityType /> <OtherProductTyp 阅读全文
摘要:
1.在前天添加两个控件DropDownList和TextBox,在后台给DropDownList赋值和属性的值View Code DropDownList1.Items.Add(new ListItem(" ", " ")); ListItem item = new ListItem("1+1", "1");//绑定value item.Attributes.Add("key", "2");//绑定属性的value DropDownList1.Items.Add(item); 阅读全文