sqlserver数据库使用过程中遇到的小问题
这是自己的小笔记,会持续更新,方便自己查阅
1、无法连接数据库
标题: 连接到服务器
------------------------------
无法连接到 (local)。
------------------------------
其他信息:
A network-related or instance-specific error occurred while establishing
a connection to SQLServer. The server was not found or was not accessible.
Verify that the instance name is correct and that SQL Server is configured to allow remote connections.
(provider: Named Pipes Provider, error: 40 - Could not open a connection
to SQL Server) (Microsoft SQL Server,错误: 2)
有关帮助信息,请单击: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=2&LinkId=20476
原因:
实例没有启动
解决:
将任务管理器中的SQLSERVERAGENT启动,显示正在运行即可
2、连接数据库之后,资源管理器里没有 数据库,只有 已安装的包
原因:
连接时服务器类型选错了,应该为:数据库引擎