SQL Server essence

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2009年4月15日

摘要: 在SQL SERVER中,不要将变量和参数弄混淆了,即使他们的语法几乎相同: 1. 一个变量的值在一条SQL语句被真正执行之前永远是未知的,在编译时也是未知的。 2. 传递给存储过程的参数值在编译时是已知的,因为直到存储过程参数被赋值并且被真正调用,该存储过程才被编译和优化! 原文: Don't confuse variables with parameters even though the... 阅读全文
posted @ 2009-04-15 16:33 天蝎 阅读(244) 评论(0) 推荐(0) 编辑

摘要: The "Not For Replication" setting for identity columns allows replication to pass the ID value from the publisher to the subscriber without the subscriber creating a new ID. Since identity columns wi... 阅读全文
posted @ 2009-04-15 12:00 天蝎 阅读(208) 评论(0) 推荐(0) 编辑

摘要: 原文出处:http://topic.csdn.net/t/20050602/13/4053922.html --测试环境,SQL Server2000,远程服务器名:xz,用户名为:sa,无密码,测试数据库:test --服务器上的表(查询分析器连接到服务器上创建) create table [user](id int primary key,num... 阅读全文
posted @ 2009-04-15 11:42 天蝎 阅读(494) 评论(0) 推荐(0) 编辑

摘要: 原文出处:http://topic.csdn.net/t/20050602/13/4053922.html 测试环境及同步要求: 有数据库服务器srv1和srv2,两台电脑能互相访问,有数据 srv1.库名..author有字段:id,name,phone, srv2.库名..author有字段:id,name,telphone,adress ... 阅读全文
posted @ 2009-04-15 11:29 天蝎 阅读(347) 评论(0) 推荐(0) 编辑