本文目录一览

1,如何查看SQL SERVER当前连接进程信息

select * from sys.dm_exec_connections select * from sys.dm_exec_sessions 链接这两个
select * from [master].[dbo].[sysprocesses]

如何查看SQL SERVER当前连接进程信息

2,如何查看哪些进程和服务器正在使用数据库

Oracle服务器由数据库和实例组成,实例包括进程和内存结构。你连接到一个实例上,只能查到与该实例对应的数据库。数据库名可以这样简单查询showparameterdb_name或者楼上的语句也可以,但是都只能获得当前的数据库名。

如何查看哪些进程和服务器正在使用数据库

3,如何查看sql server是否连接数据库

连接那个地方 有那个按钮 第一个是连接数据库 第二个是断开连接 如果连接上的 但是超时了的 你点击那个数据库 会只有一个连接按钮是亮的 不是的话 断开连接就也是亮的
这些都保存在master库中,你可以用以下sql查看select count(*) from master.dbo.sysprocesses或者通过manager studio 进入 活动监视器 查看进程

如何查看sql server是否连接数据库

4,sqlserver怎么查看哪些地方连接数据库了

<p>楼主,看你提问的意思,好像是application里面有些mappingresources 是不是没有配置完,一下是我以前做项目用的application,你注意看看,其实用myeclipse这些配置文件都是系统自己生成的,没有必要自己写:</p> <p><strong>&lt;?xml version="1.0" encoding="utf-8"?&gt;<br>&lt;beans xmlns=&quot; <a href="http://wenwen.soso.com/z/urlalertpage.e?sp=shttp%3a%2f%2fwww.springframework.org%2fschema%2fbeans%22" target="_blank">http://www.springframework.org/schema/beans&quot;</a><br>xmlns:xsi=&quot; <a href="http://wenwen.soso.com/z/urlalertpage.e?sp=shttp%3a%2f%2fwww.w3.org%2f2001%2fxmlschema-instance%22" target="_blank">http://www.w3.org/2001/xmlschema-instance&quot;</a><br>xsi:schemalocation=&quot; <a href="http://wenwen.soso.com/z/urlalertpage.e?sp=shttp%3a%2f%2fwww.springframework.org%2fschema%2fbeans" target="_blank">http://www.springframework.org/schema/beans</a> <a href="http://wenwen.soso.com/z/urlalertpage.e?sp=shttp%3a%2f%2fwww.springframework.org%2fschema%2fbeans%2fspring-beans-2.0.xsd%22%3e" target="_blank">http://www.springframework.org/schema/beans/spring-beans-2.0.xsd&quot;&gt;</a></strong></p> <p><br><strong>&nbsp;&lt;bean id="datasource"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;class="org.apache.commons.dbcp.basicdatasource"&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&lt;property name="driverclassname"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;value="com.microsoft.jdbc.sqlserver.sqlserverdriver"&gt;<br>&nbsp;&nbsp;&lt;/property&gt;<br>&nbsp;&nbsp;&lt;property name="url"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; value="jdbc:microsoft:sqlserver://localhost:1433;databasename=test"&gt;<br>&nbsp;&nbsp;&lt;/property&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;property name="username" value="sa"&gt;&lt;/property&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;property name="password" value="sa"&gt;&lt;/property&gt;<br>&nbsp;&lt;/bean&gt;<br>&nbsp;&lt;bean id="sessionfactory"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;class="org.springframework.orm.hibernate3.localsessionfactorybean"&gt;<br>&nbsp;&nbsp;&lt;property name="datasource"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&lt;ref bean="datasource"&gt;&lt;/ref&gt;<br>&nbsp;&nbsp;&lt;/property&gt;<br>&nbsp;&nbsp;&lt;property name="hibernateproperties"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;props&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;prop key="hibernate.dialect"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;org.hibernate.dialect.sqlserverdialect<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/prop&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;prop key="hibernate.show_sql"&gt;true&lt;/prop&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;prop key="hibernate.format_sql"&gt;true&lt;/prop&gt;<br>&nbsp;&nbsp;&nbsp;&lt;/props&gt;<br>&nbsp;&nbsp;&lt;/property&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;property name="mappingresources"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&lt;list&gt;</strong></p> <p><strong>&lt;!-- 这里主要是你注入的表的持久化对象的映射文件--&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;value&gt;vo/account.hbm.xml&lt;/value&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;value&gt;vo/employee.hbm.xml&lt;/value&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;value&gt;vo/expriences.hbm.xml&lt;/value&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&lt;value&gt;vo/deptment.hbm.xml&lt;/value&gt;</strong></p> <p><strong>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&lt;/list&gt;<br>&nbsp;&nbsp;&lt;/property&gt;<br>&nbsp;&lt;/bean&gt;<br>&nbsp;&lt;bean id="dao" class="dao.empdao"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;property name="sessionfactory"&gt;<br>&nbsp; &lt;ref bean="sessionfactory"&gt;&lt;/ref&gt;<br>&nbsp; &lt;/property&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/bean&gt;<br>&lt;/beans&gt;</strong></p> <p><strong>详情请加qq:4&nbsp;&nbsp;&nbsp; 5&nbsp;&nbsp;&nbsp;&nbsp; 5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp;&nbsp; 3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7</strong></p> <p><strong>如果,你觉得答案合理请点击采纳,举手之劳,能激励我继续为别人答题</strong></p>
在数据库 企业管理器中 可以查看当前连接salserver的用户信息 SQL Server 中类似的的当前连接session,可以查看 master 的sysprocess表 你先分离数据库在手工删除试试

文章TAG:查看  哪个  进程  连接  查看哪个进程连接数据库  SERVER当前连接进程信息  
下一篇