先来定义分页语句将要用到的几个参数: int currentPage ; //当前页 int pageRecord ; //每页显示记录数 以之前的ADDRESSBOOK数据表为例(每页显示10条记录): 一、SqlServer下载 分页语句 String sql = "select top "+pageRecord +" * from addressbook where id not i
一、SQLServer 链接异常 1.使用 .Net Framework链接数据库异常内容: An exception of type System.Data.SqlClient.SqlException was thrown.Additional exception information: A network-related or instance-specific error oc
if exists(select * from sysdatabases where name='school')begindrop database schoolendgocreate database schoolon primary(name='school_data', --主数据文件的逻辑名称filename='F:\project\school_data.mdf'