Showing posts with label lots. Show all posts
Showing posts with label lots. Show all posts

Wednesday, March 21, 2012

how many open connections?

How do I tell how many connections to the db there are? sp_who always has
lots of "backgrounds" and "sleeping" in it so thats not reall accurate. I
was thinking to open Profiler and use the "existing connections" option but
was wondering if there is a better way?
TIA, ChrisREXEC sp_who 'active'
--
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"ChrisR" <noemail@.bla.com> wrote in message
news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
> How do I tell how many connections to the db there are? sp_who always has
> lots of "backgrounds" and "sleeping" in it so thats not reall accurate. I
> was thinking to open Profiler and use the "existing connections" option
> but was wondering if there is a better way?
>
> TIA, ChrisR
>|||That will show you the Active connections.
If you need to know the exact number, query sysprocesses.
--
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
> EXEC sp_who 'active'
> --
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "ChrisR" <noemail@.bla.com> wrote in message
> news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
>> How do I tell how many connections to the db there are? sp_who always has
>> lots of "backgrounds" and "sleeping" in it so thats not reall accurate. I
>> was thinking to open Profiler and use the "existing connections" option
>> but was wondering if there is a better way?
>>
>> TIA, ChrisR
>|||Thanks Mike... but heres what I dont get. I have a local sql server on my
desktop. No replication, the server agent isnt on, I have 2 open Query
Analyzer and 1 open Enterprise Manager. Both the sp_who 'active' and shows
13 connections, sysprocesses show 16. What is making up all these
connections?
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:OCTL4cDeFHA.3816@.TK2MSFTNGP10.phx.gbl...
> That will show you the Active connections.
> If you need to know the exact number, query sysprocesses.
> --
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
>> EXEC sp_who 'active'
>> --
>> --
>> Mike Epprecht, Microsoft SQL Server MVP
>> Zurich, Switzerland
>> IM: mike@.epprecht.net
>> MVP Program: http://www.microsoft.com/mvp
>> Blog: http://www.msmvps.com/epprecht/
>> "ChrisR" <noemail@.bla.com> wrote in message
>> news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
>> How do I tell how many connections to the db there are? sp_who always
>> has lots of "backgrounds" and "sleeping" in it so thats not reall
>> accurate. I was thinking to open Profiler and use the "existing
>> connections" option but was wondering if there is a better way?
>>
>> TIA, ChrisR
>>
>|||Client processes are those with spid > 50. The other ones are background
server processes e.g lazy writer, lock monitor, log writer etc. There can be
a variable number of these dependent on load an other factors. I fyou're
just interested in client connections then you need to filter on spid>50
--
HTH
Jasper Smith (SQL Server MVP)
http://www.sqldbatips.com
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"ChrisR" <noemail@.bla.com> wrote in message
news:e6fHU1DeFHA.4040@.TK2MSFTNGP14.phx.gbl...
> Thanks Mike... but heres what I dont get. I have a local sql server on my
> desktop. No replication, the server agent isnt on, I have 2 open Query
> Analyzer and 1 open Enterprise Manager. Both the sp_who 'active' and shows
> 13 connections, sysprocesses show 16. What is making up all these
> connections?
>
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:OCTL4cDeFHA.3816@.TK2MSFTNGP10.phx.gbl...
>> That will show you the Active connections.
>> If you need to know the exact number, query sysprocesses.
>> --
>> --
>> Mike Epprecht, Microsoft SQL Server MVP
>> Zurich, Switzerland
>> IM: mike@.epprecht.net
>> MVP Program: http://www.microsoft.com/mvp
>> Blog: http://www.msmvps.com/epprecht/
>> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
>> news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
>> EXEC sp_who 'active'
>> --
>> --
>> Mike Epprecht, Microsoft SQL Server MVP
>> Zurich, Switzerland
>> IM: mike@.epprecht.net
>> MVP Program: http://www.microsoft.com/mvp
>> Blog: http://www.msmvps.com/epprecht/
>> "ChrisR" <noemail@.bla.com> wrote in message
>> news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
>> How do I tell how many connections to the db there are? sp_who always
>> has lots of "backgrounds" and "sleeping" in it so thats not reall
>> accurate. I was thinking to open Profiler and use the "existing
>> connections" option but was wondering if there is a better way?
>>
>> TIA, ChrisR
>>
>>
>|||Awesome. Thanks to both of you.
"Jasper Smith" <jasper_smith9@.hotmail.com> wrote in message
news:%23n89iOEeFHA.3280@.TK2MSFTNGP09.phx.gbl...
> Client processes are those with spid > 50. The other ones are background
> server processes e.g lazy writer, lock monitor, log writer etc. There can
> be a variable number of these dependent on load an other factors. I
> fyou're just interested in client connections then you need to filter on
> spid>50
> --
> HTH
> Jasper Smith (SQL Server MVP)
> http://www.sqldbatips.com
> I support PASS - the definitive, global
> community for SQL Server professionals -
> http://www.sqlpass.org
> "ChrisR" <noemail@.bla.com> wrote in message
> news:e6fHU1DeFHA.4040@.TK2MSFTNGP14.phx.gbl...
>> Thanks Mike... but heres what I dont get. I have a local sql server on my
>> desktop. No replication, the server agent isnt on, I have 2 open Query
>> Analyzer and 1 open Enterprise Manager. Both the sp_who 'active' and
>> shows 13 connections, sysprocesses show 16. What is making up all these
>> connections?
>>
>> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
>> news:OCTL4cDeFHA.3816@.TK2MSFTNGP10.phx.gbl...
>> That will show you the Active connections.
>> If you need to know the exact number, query sysprocesses.
>> --
>> --
>> Mike Epprecht, Microsoft SQL Server MVP
>> Zurich, Switzerland
>> IM: mike@.epprecht.net
>> MVP Program: http://www.microsoft.com/mvp
>> Blog: http://www.msmvps.com/epprecht/
>> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
>> news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
>> EXEC sp_who 'active'
>> --
>> --
>> Mike Epprecht, Microsoft SQL Server MVP
>> Zurich, Switzerland
>> IM: mike@.epprecht.net
>> MVP Program: http://www.microsoft.com/mvp
>> Blog: http://www.msmvps.com/epprecht/
>> "ChrisR" <noemail@.bla.com> wrote in message
>> news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
>> How do I tell how many connections to the db there are? sp_who always
>> has lots of "backgrounds" and "sleeping" in it so thats not reall
>> accurate. I was thinking to open Profiler and use the "existing
>> connections" option but was wondering if there is a better way?
>>
>> TIA, ChrisR
>>
>>
>>
>

Wednesday, March 7, 2012

How Image Display From SqlServer To Image Control

I have learned lots of informative thing from your forums. I have little problem regarding "Display image from SQL Server on ASP.NET" I have done it and image display on my page from SQL Server. I have cleared you here I have adopt two different methods which are following for displaying picture.1.Response.BinaryWrite(rd("picture"))2.image.Save(Response.OutputStream, ImageFormat.Jpeg)but in both above methods I have faced little problem when image display on my page all other information can not display and I also want to display picture on my specific location on the page. My second question is can use any web control like "Image1" to display image from SQL Server where my pictures are stored.Hope you will help me.Thanks and regardsAftab AbbasiI think what you are asking is how to put the picture someplace on the page rather than taking the entire page. To do that, reference you image frmo an <img tag or an <asp:image tag inside an existing page. You can reference an image handler also from inside the page the same way (through an img or image tag)|||thanks for your reply do u have any example kindly post here.|||

My basic need i should tell you here...i have lots of images which is stored on SQL Server 2000 and i just want
to retrive image from SQL Server and display into specific location like (Table , Cell).

Did i use any control likeImage Controlto display my picture which is stored not on physical drive which is stored
on SQL Server.

Hope u will help me with example (if u have).

Thanks and regards.


Aftab Abbasi

|||

Hi,

There on may samples for this on the web. Here is one of them:

http://codebetter.com/blogs/eric.wise/archive/2005/05/15/63236.aspx

HTH. If this does not answer you question, please feel free to mark the post as Not Answered and post your reply. Thanks!