摘要:
web.config <connectionStrings> <add name=”AA”connectionString=”XXX” </connectionStrings> 读取web.config文件中数据库连接配置信息 string connectionString=ConfigurationMa... 阅读全文
摘要:
第n页显示数据记录的语句应该是: select top 5 * from UserInfo where UserID not in (select top (n-1)*5 UserId from UserInfo order by UserID asc) order by UserID asc 阅读全文
摘要:
exec sp_attach_db 'Asset5', 'd:\program files\microsoft sql server\mssql.1\mssql\data\Asset5.mdf', 'd:\program files\microsoft sql server\mssql.1\mssql\data\Asset5_log.ldf' 当然也可在企业管理器中进行操作。 阅读全文