摘要:
上述错误我遇到两种情况,一种是在打开打开SQL Server 2005时弹出的,另一种是在应用程序连接SQL Server 2005时出现的.归纳了一下,由以下几个原因: 1.数据库引擎没有启动. 有两种启动方式: (1)开始->程序->Microsoft SQL Server 2005->SQL Server 2005外围应用配置器,在打开的界面单击"服务的连接的外围应用... 阅读全文
摘要:
private const string SQL_INSERT= "insert into 语句;select @@identity as id";//这句 using (SqlConnection conn = new SqlConnection(SqlHelper.ConnectionStringInventoryDistributedTransaction)) ... 阅读全文
摘要:
我在工作中遇到在insert的时候需要对insert的数据进行变更,很自然就想到了触发器,触发器格式如下: CREATE OR REPLACE TRIGGER tir_updateDate AFTER INSERT ON sc_t_czplan FOR EACH ROW BEGIN UPDATE sc_t_czplan SET cdate= to_char(:new.PLANDATE,'mm'... 阅读全文