Wednesday, March 28, 2012
Profile Error 17055
as of now I keep receiving the following in the sql
server log and application log every 1 minute or so.
How can I use the profiler on this to find out what's
happening?
Event Type: Information
Event Source: MSSQLSERVER
Event Category: (4)
Event ID: 17055
Date: 12/28/2003
Time: 11:54:26 AM
User: N/A
Computer: SERVERP01
Description:
18456 :
Login failed for user 'TRACK'.
Data:
0000: 18 48 00 00 0e 00 00 00 .H.....
0008: 0f 00 00 00 4a 00 52 00 ...J.R.
0010: 41 00 59 00 44 00 55 00 A.Y.D.U.
0018: 42 00 49 00 53 00 51 00 B.I.S.Q.
0020: 4c 00 50 00 30 00 31 00 L.P.0.1.
0028: 00 00 07 00 00 00 6d 00 .....m.
0030: 61 00 73 00 74 00 65 00 a.s.t.e.
0038: 72 00 00 00 r...
Thanks,
ShonetYou can use profiler to log connection attempts...Someone is trying to log
in using the login TRACK, which is a failed attempt... Watching this in
profiler will get you the name of the workstation, and name of the program
they are using... then you can track them down..
--
Wayne Snyder, MCDBA, SQL Server MVP
Computer Education Services Corporation (CESC), Charlotte, NC
www.computeredservices.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"Shonet" <anonymous@.discussions.microsoft.com> wrote in message
news:02bc01c3cd17$897e17f0$a601280a@.phx.gbl...
> I applied a service pack to a third party application and
> as of now I keep receiving the following in the sql
> server log and application log every 1 minute or so.
> How can I use the profiler on this to find out what's
> happening?
> Event Type: Information
> Event Source: MSSQLSERVER
> Event Category: (4)
> Event ID: 17055
> Date: 12/28/2003
> Time: 11:54:26 AM
> User: N/A
> Computer: SERVERP01
> Description:
> 18456 :
> Login failed for user 'TRACK'.
> Data:
> 0000: 18 48 00 00 0e 00 00 00 .H.....
> 0008: 0f 00 00 00 4a 00 52 00 ...J.R.
> 0010: 41 00 59 00 44 00 55 00 A.Y.D.U.
> 0018: 42 00 49 00 53 00 51 00 B.I.S.Q.
> 0020: 4c 00 50 00 30 00 31 00 L.P.0.1.
> 0028: 00 00 07 00 00 00 6d 00 .....m.
> 0030: 61 00 73 00 74 00 65 00 a.s.t.e.
> 0038: 72 00 00 00 r...
>
> Thanks,
> Shonet|||I managed to work this one out, but I'm please to see
what I came up with is was the same as your solution.
Excellent.
Thanks!!
Shonet
>--Original Message--
>You can use profiler to log connection
attempts...Someone is trying to log
>in using the login TRACK, which is a failed attempt...
Watching this in
>profiler will get you the name of the workstation, and
name of the program
>they are using... then you can track them down..
>--
>Wayne Snyder, MCDBA, SQL Server MVP
>Computer Education Services Corporation (CESC),
Charlotte, NC
>www.computeredservices.com
>(Please respond only to the newsgroups.)
>I support the Professional Association of SQL Server
(PASS) and it's
>community of SQL Server professionals.
>www.sqlpass.org
>
>"Shonet" <anonymous@.discussions.microsoft.com> wrote in
message
>news:02bc01c3cd17$897e17f0$a601280a@.phx.gbl...
>> I applied a service pack to a third party application
and
>> as of now I keep receiving the following in the sql
>> server log and application log every 1 minute or so.
>> How can I use the profiler on this to find out what's
>> happening?
>> Event Type: Information
>> Event Source: MSSQLSERVER
>> Event Category: (4)
>> Event ID: 17055
>> Date: 12/28/2003
>> Time: 11:54:26 AM
>> User: N/A
>> Computer: SERVERP01
>> Description:
>> 18456 :
>> Login failed for user 'TRACK'.
>> Data:
>> 0000: 18 48 00 00 0e 00 00 00 .H.....
>> 0008: 0f 00 00 00 4a 00 52 00 ...J.R.
>> 0010: 41 00 59 00 44 00 55 00 A.Y.D.U.
>> 0018: 42 00 49 00 53 00 51 00 B.I.S.Q.
>> 0020: 4c 00 50 00 30 00 31 00 L.P.0.1.
>> 0028: 00 00 07 00 00 00 6d 00 .....m.
>> 0030: 61 00 73 00 74 00 65 00 a.s.t.e.
>> 0038: 72 00 00 00 r...
>>
>> Thanks,
>> Shonet
>
>.
>
Monday, March 26, 2012
product deadlock scenario
I am facing dead lock issues in my production application. But same not
getting in my dev enviornment. Can you pls guide me like how to product a
dead lock scenario in my dev env.
thanks in advance.
BhaskarSure.
1. Open two Query Analyzer windows - Pubs sample database
2. In the first type BEGIN TRAN then an UPDATE to the authors table
3. In the second type BEGIN TRAN then an update to the titles table
4. From the second window now type SELECT * FROM authors
5. From the first window now type SELECT * FROM titles
You now have a deadlock. In this case SQL Server will chose one of the
connections as a deadlock victim. It's transaction will be rolled back and
the winners transction will commit.
6. Close both windows and do not commit any uncommitted transactions when
prompted.
HTH
Jerry
"Bhaskar" <Bhaskar@.discussions.microsoft.com> wrote in message
news:ED085BB9-6CE7-4111-B61B-832B494312D3@.microsoft.com...
> Hi,
> I am facing dead lock issues in my production application. But same not
> getting in my dev enviornment. Can you pls guide me like how to product a
> dead lock scenario in my dev env.
> thanks in advance.
> Bhaskar|||my intension is to create a dead lock sceanrio in the dev enviorment.
"Bhaskar" wrote:
> Hi,
> I am facing dead lock issues in my production application. But same not
> getting in my dev enviornment. Can you pls guide me like how to product a
> dead lock scenario in my dev env.
> thanks in advance.
> Bhaskar|||Ok...what I wrote will cause a deadlock to occur. I think you want to
re-create the same deadlock scenario in your dev env that you are now
getting in your prod env. That I can't do.
"Bhaskar" <Bhaskar@.discussions.microsoft.com> wrote in message
news:9A950577-D037-44A2-9107-770E557285DF@.microsoft.com...
> my intension is to create a dead lock sceanrio in the dev enviorment.
>
> "Bhaskar" wrote:
>|||Example:
Two diff connections. Try executing the batch iin conn 1 and quickly switch
to conn 2 and execute the batch.
-- conn 1
use northwind
begin transaction
update dbo.orders
set orderdate = getdate()
waitfor delay '00:00:25'
select * from dbo.[order details]
rollback transaction
-- conn 2
use northwind
begin transaction
update dbo.[order details]
set unitprice = 1
select * from dbo.orders
rollback transaction
go
As you can notice, they are accessing the resources in diff order.
AMB
"Bhaskar" wrote:
> Hi,
> I am facing dead lock issues in my production application. But same not
> getting in my dev enviornment. Can you pls guide me like how to product a
> dead lock scenario in my dev env.
> thanks in advance.
> Bhaskar|||Here are a couple of articles on tracing deadlocks:
http://www.sqlservercentral.com/col...ngdeadlocks.asp
http://support.microsoft.com/defaul...kb;en-us;832524
You can control how select queries acquire shared locks by specifying "set
transaction isolation level read uncommitted" or the "nolock" hint. This can
be especially useful if you have an application where multiple users are
performing fairly long queries against the same range of records:
http://msdn.microsoft.com/library/d... />
t_74bw.asp
http://msdn.microsoft.com/library/d... />
a_1hf7.asp
"Bhaskar" <Bhaskar@.discussions.microsoft.com> wrote in message
news:ED085BB9-6CE7-4111-B61B-832B494312D3@.microsoft.com...
> Hi,
> I am facing dead lock issues in my production application. But same not
> getting in my dev enviornment. Can you pls guide me like how to product a
> dead lock scenario in my dev env.
> thanks in advance.
> Bhaskar
Friday, March 23, 2012
Proclarity Dashboard Performance issues
Hi,
I had a problem with the performance. It generally takes time for all the application to populate the content in the window when it was called first time and for sucessive calls it will populate the page quickly. but in case of my proclarity dashboard it takes more time when it was called as many times. can anyone help me to resolve this problem.
Thanks,
madhan
Are you saying that the second time you displayed a page from RS, it took as long as the first time? If so check the log file and see if the appdomain was recycled. There is "shutdownReason" in the log file that may be of interest. Make sure you are not touching any file under the RS directory each time you load your dashboard.
Wednesday, March 21, 2012
Processor License
has 4 processors. The web application will integrate with SQL. I do not
have any control over the users that access this system. I am assuming I
will need to but a 4 processor license for SQL. Is there anyway I can run
SQL on just the 1 processor and buy a single processor license?Here is an article on Microsoft's site. It suggests that you would need to
make the processor unavailable to the OS as well.
http://www.microsoft.com/sql/howtobuy/processor.asp
As always. Contact your reseller for an official answer.
--
--
Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org
"Sarah Kingswell" <sarah.kingswell@.ntlworld.com> wrote in message
news:%23c5oilvlDHA.2592@.TK2MSFTNGP10.phx.gbl...
> I am going to have to install a web based application on a SQL server that
> has 4 processors. The web application will integrate with SQL. I do not
> have any control over the users that access this system. I am assuming I
> will need to but a 4 processor license for SQL. Is there anyway I can run
> SQL on just the 1 processor and buy a single processor license?
>|||In addition to Allan's answer, the general rule by MS has been that IF the
procs are on the motherboard (whether or not you have them disabled for SQL
Server use), you must buy licenses for that proc - or take the proc off of
the motherboard...
Wayne Snyder, MCDBA, SQL Server MVP
Computer Education Services Corporation (CESC), Charlotte, NC
www.computeredservices.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"Sarah Kingswell" <sarah.kingswell@.ntlworld.com> wrote in message
news:#c5oilvlDHA.2592@.TK2MSFTNGP10.phx.gbl...
> I am going to have to install a web based application on a SQL server that
> has 4 processors. The web application will integrate with SQL. I do not
> have any control over the users that access this system. I am assuming I
> will need to but a 4 processor license for SQL. Is there anyway I can run
> SQL on just the 1 processor and buy a single processor license?
>|||Hi Wayne!
> In addition to Allan's answer, the general rule by MS has been that IF the
> procs are on the motherboard (whether or not you have them disabled for SQL
> Server use), you must buy licenses for that proc - or take the proc off of
> the motherboard...
In the word doc released in May, MS softened down this a bit. Here's a quote:
You must acquire licenses for only those processors that are accessible to any operating system copy
upon which the Server Software is set up to run
· Microsoft is enhancing its server licensing to make it more cost-effective for customers
to utilize Server Software licensed in the Per Processor model when the software, through
partitioning or other similar technology, does not utilize all of the processors in a server.
The URL is:
http://www.microsoft.com/licensing/downloads/Server%20Licensing%20Customer%20Guide.doc
--
Tibor Karaszi, SQL Server MVP
Archive at: http://groups.google.com/groups?oi=djq&as ugroup=microsoft.public.sqlserver
"Wayne Snyder" <wsnyder@.computeredservices.com> wrote in message
news:%23h6$JawlDHA.1084@.tk2msftngp13.phx.gbl...
> In addition to Allan's answer, the general rule by MS has been that IF the
> procs are on the motherboard (whether or not you have them disabled for SQL
> Server use), you must buy licenses for that proc - or take the proc off of
> the motherboard...
>
> --
> Wayne Snyder, MCDBA, SQL Server MVP
> Computer Education Services Corporation (CESC), Charlotte, NC
> www.computeredservices.com
> (Please respond only to the newsgroups.)
> I support the Professional Association of SQL Server (PASS) and it's
> community of SQL Server professionals.
> www.sqlpass.org
>
> "Sarah Kingswell" <sarah.kingswell@.ntlworld.com> wrote in message
> news:#c5oilvlDHA.2592@.TK2MSFTNGP10.phx.gbl...
> > I am going to have to install a web based application on a SQL server that
> > has 4 processors. The web application will integrate with SQL. I do not
> > have any control over the users that access this system. I am assuming I
> > will need to but a 4 processor license for SQL. Is there anyway I can run
> > SQL on just the 1 processor and buy a single processor license?
> >
> >
>|||Hi Tibor...
How have you been doing?
Does that mean that SQL enabled to use 2 procs on an 8 proc machine only
requires 2 proc licenses?
thanks bud, I didn't know that...
--
Wayne Snyder, MCDBA, SQL Server MVP
Computer Education Services Corporation (CESC), Charlotte, NC
www.computeredservices.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"Tibor Karaszi" <tibor.please_reply_to_public_forum.karaszi@.cornerstone.se>
wrote in message news:eRxFjtwlDHA.2652@.TK2MSFTNGP09.phx.gbl...
> Hi Wayne!
> > In addition to Allan's answer, the general rule by MS has been that IF
the
> > procs are on the motherboard (whether or not you have them disabled for
SQL
> > Server use), you must buy licenses for that proc - or take the proc off
of
> > the motherboard...
> In the word doc released in May, MS softened down this a bit. Here's a
quote:
> You must acquire licenses for only those processors that are accessible to
any operating system copy
> upon which the Server Software is set up to run
> · Microsoft is enhancing its server licensing to make it more
cost-effective for customers
> to utilize Server Software licensed in the Per Processor model when the
software, through
> partitioning or other similar technology, does not utilize all of the
processors in a server.
>
>
> The URL is:
>
http://www.microsoft.com/licensing/downloads/Server%20Licensing%20Customer%2
0Guide.doc
> --
> Tibor Karaszi, SQL Server MVP
> Archive at: http://groups.google.com/groups?oi=djq&as
ugroup=microsoft.public.sqlserver
>
> "Wayne Snyder" <wsnyder@.computeredservices.com> wrote in message
> news:%23h6$JawlDHA.1084@.tk2msftngp13.phx.gbl...
> > In addition to Allan's answer, the general rule by MS has been that IF
the
> > procs are on the motherboard (whether or not you have them disabled for
SQL
> > Server use), you must buy licenses for that proc - or take the proc off
of
> > the motherboard...
> >
> >
> >
> > --
> > Wayne Snyder, MCDBA, SQL Server MVP
> > Computer Education Services Corporation (CESC), Charlotte, NC
> > www.computeredservices.com
> > (Please respond only to the newsgroups.)
> >
> > I support the Professional Association of SQL Server (PASS) and it's
> > community of SQL Server professionals.
> > www.sqlpass.org
> >
> >
> > "Sarah Kingswell" <sarah.kingswell@.ntlworld.com> wrote in message
> > news:#c5oilvlDHA.2592@.TK2MSFTNGP10.phx.gbl...
> > > I am going to have to install a web based application on a SQL server
that
> > > has 4 processors. The web application will integrate with SQL. I do
not
> > > have any control over the users that access this system. I am
assuming I
> > > will need to but a 4 processor license for SQL. Is there anyway I can
run
> > > SQL on just the 1 processor and buy a single processor license?
> > >
> > >
> >
> >
>|||My reading of the doc - If the processor is available to the OS, you have to
pay... I'll ask someone at PASS next month... Are you coming?...
--
Wayne Snyder, MCDBA, SQL Server MVP
Computer Education Services Corporation (CESC), Charlotte, NC
www.computeredservices.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"Tibor Karaszi" <tibor.please_reply_to_public_forum.karaszi@.cornerstone.se>
wrote in message news:eRxFjtwlDHA.2652@.TK2MSFTNGP09.phx.gbl...
> Hi Wayne!
> > In addition to Allan's answer, the general rule by MS has been that IF
the
> > procs are on the motherboard (whether or not you have them disabled for
SQL
> > Server use), you must buy licenses for that proc - or take the proc off
of
> > the motherboard...
> In the word doc released in May, MS softened down this a bit. Here's a
quote:
> You must acquire licenses for only those processors that are accessible to
any operating system copy
> upon which the Server Software is set up to run
> · Microsoft is enhancing its server licensing to make it more
cost-effective for customers
> to utilize Server Software licensed in the Per Processor model when the
software, through
> partitioning or other similar technology, does not utilize all of the
processors in a server.
>
>
> The URL is:
>
http://www.microsoft.com/licensing/downloads/Server%20Licensing%20Customer%2
0Guide.doc
> --
> Tibor Karaszi, SQL Server MVP
> Archive at: http://groups.google.com/groups?oi=djq&as
ugroup=microsoft.public.sqlserver
>
> "Wayne Snyder" <wsnyder@.computeredservices.com> wrote in message
> news:%23h6$JawlDHA.1084@.tk2msftngp13.phx.gbl...
> > In addition to Allan's answer, the general rule by MS has been that IF
the
> > procs are on the motherboard (whether or not you have them disabled for
SQL
> > Server use), you must buy licenses for that proc - or take the proc off
of
> > the motherboard...
> >
> >
> >
> > --
> > Wayne Snyder, MCDBA, SQL Server MVP
> > Computer Education Services Corporation (CESC), Charlotte, NC
> > www.computeredservices.com
> > (Please respond only to the newsgroups.)
> >
> > I support the Professional Association of SQL Server (PASS) and it's
> > community of SQL Server professionals.
> > www.sqlpass.org
> >
> >
> > "Sarah Kingswell" <sarah.kingswell@.ntlworld.com> wrote in message
> > news:#c5oilvlDHA.2592@.TK2MSFTNGP10.phx.gbl...
> > > I am going to have to install a web based application on a SQL server
that
> > > has 4 processors. The web application will integrate with SQL. I do
not
> > > have any control over the users that access this system. I am
assuming I
> > > will need to but a 4 processor license for SQL. Is there anyway I can
run
> > > SQL on just the 1 processor and buy a single processor license?
> > >
> > >
> >
> >
>|||Hi Wayne,
> How have you been doing?
I'm good, thanks! Hope you are too :-)
> Does that mean that SQL enabled to use 2 procs on an 8 proc machine only
> requires 2 proc licenses?
Just trimming affinity mask doesn't help, need to be restricted at the OS level (as you posted in
the other post).
> My reading of the doc - If the processor is available to the OS, you have to
> pay... I'll ask someone at PASS next month...
Yep, that is my interpretation as well. Let us know of you get some conflicting info.
> I'll ask someone at PASS next month... Are you coming?...
I'm afraid not. Too much going on here... :-)
--
Tibor Karaszi, SQL Server MVP
Archive at: http://groups.google.com/groups?oi=djq&as_ugroup=microsoft.public.sqlserver
"Wayne Snyder" <wsnyder@.computeredservices.com> wrote in message
news:%23H5Hq$zlDHA.1764@.tk2msftngp13.phx.gbl...
> Hi Tibor...
> How have you been doing?
> Does that mean that SQL enabled to use 2 procs on an 8 proc machine only
> requires 2 proc licenses?
> thanks bud, I didn't know that...
> --
> Wayne Snyder, MCDBA, SQL Server MVP
> Computer Education Services Corporation (CESC), Charlotte, NC
> www.computeredservices.com
> (Please respond only to the newsgroups.)
> I support the Professional Association of SQL Server (PASS) and it's
> community of SQL Server professionals.
> www.sqlpass.org
>
> "Tibor Karaszi" <tibor.please_reply_to_public_forum.karaszi@.cornerstone.se>
> wrote in message news:eRxFjtwlDHA.2652@.TK2MSFTNGP09.phx.gbl...
> > Hi Wayne!
> >
> > > In addition to Allan's answer, the general rule by MS has been that IF
> the
> > > procs are on the motherboard (whether or not you have them disabled for
> SQL
> > > Server use), you must buy licenses for that proc - or take the proc off
> of
> > > the motherboard...
> >
> > In the word doc released in May, MS softened down this a bit. Here's a
> quote:
> > You must acquire licenses for only those processors that are accessible to
> any operating system copy
> > upon which the Server Software is set up to run
> > · Microsoft is enhancing its server licensing to make it more
> cost-effective for customers
> > to utilize Server Software licensed in the Per Processor model when the
> software, through
> > partitioning or other similar technology, does not utilize all of the
> processors in a server.
> >
> >
> >
> >
> >
> > The URL is:
> >
> http://www.microsoft.com/licensing/downloads/Server%20Licensing%20Customer%2
> 0Guide.doc
> >
> > --
> > Tibor Karaszi, SQL Server MVP
> > Archive at: http://groups.google.com/groups?oi=djq&as
> ugroup=microsoft.public.sqlserver
> >
> >
> > "Wayne Snyder" <wsnyder@.computeredservices.com> wrote in message
> > news:%23h6$JawlDHA.1084@.tk2msftngp13.phx.gbl...
> > > In addition to Allan's answer, the general rule by MS has been that IF
> the
> > > procs are on the motherboard (whether or not you have them disabled for
> SQL
> > > Server use), you must buy licenses for that proc - or take the proc off
> of
> > > the motherboard...
> > >
> > >
> > >
> > > --
> > > Wayne Snyder, MCDBA, SQL Server MVP
> > > Computer Education Services Corporation (CESC), Charlotte, NC
> > > www.computeredservices.com
> > > (Please respond only to the newsgroups.)
> > >
> > > I support the Professional Association of SQL Server (PASS) and it's
> > > community of SQL Server professionals.
> > > www.sqlpass.org
> > >
> > >
> > > "Sarah Kingswell" <sarah.kingswell@.ntlworld.com> wrote in message
> > > news:#c5oilvlDHA.2592@.TK2MSFTNGP10.phx.gbl...
> > > > I am going to have to install a web based application on a SQL server
> that
> > > > has 4 processors. The web application will integrate with SQL. I do
> not
> > > > have any control over the users that access this system. I am
> assuming I
> > > > will need to but a 4 processor license for SQL. Is there anyway I can
> run
> > > > SQL on just the 1 processor and buy a single processor license?
> > > >
> > > >
> > >
> > >
> >
> >
>
processor doesn't leave the 100%
independent of being in the application .mde or with the application in way
desing. In the with Win98 work usually. doesn't need to execute anything,
mecher is enough the mouse and ready, the processor is in picks of 100/80%.
Some months ago noticed this in a seek application in a server P4 of 3.0 gb,
1Gb mem, that I installed. When accessing the bank Sql Server in Win2000
Server the processor doesn't leave the 100% doing with that the stations are
very slow.
Did anybody already come across this problem?
And other still: To with the win2k in all the stations and Server in the
server. In intervals non sequence, the date and the hour of the personal
computer of the net reset for 1899, 1890 and for oh, nor for the date of the
bios it is.
I already passed anti-virus of the site of the simantec and doesn't have
anything.
Sounds like you may have the Slammer virus. Are you running the latest
service packs?
http://www.aspfaq.com/show.asp?id=2441
Andrew J. Kelly SQL MVP
"Frank Dulk" <fdulk@.bol.com.br> wrote in message
news:egL3maQ8EHA.2124@.TK2MSFTNGP15.phx.gbl...
>I noticed the use of 100% of the processor in machines using Win2000,
> independent of being in the application .mde or with the application in
> way
> desing. In the with Win98 work usually. doesn't need to execute anything,
> mecher is enough the mouse and ready, the processor is in picks of
> 100/80%.
> Some months ago noticed this in a seek application in a server P4 of 3.0
> gb,
> 1Gb mem, that I installed. When accessing the bank Sql Server in Win2000
> Server the processor doesn't leave the 100% doing with that the stations
> are
> very slow.
> Did anybody already come across this problem?
> And other still: To with the win2k in all the stations and Server in the
> server. In intervals non sequence, the date and the hour of the personal
> computer of the net reset for 1899, 1890 and for oh, nor for the date of
> the
> bios it is.
> I already passed anti-virus of the site of the simantec and doesn't have
> anything.
>
|||Win2000, Server and Sql Server with all the updated available SP's.
Anti-virus in all the equipments and updated. The Interesting is that also
noticed this in my machine using Access in way design and the same thing
happens. The processor is in the same 100% me not making anything, just
mecher the mouse already maintains the pick in the 100%. Any other
application works normal, I already tested. I can do from a document, a
graph in Corel, a presentation in the Power Point... it doesn't arrive in
the 50%, in the Access mecher in the mouse maintains the 100% of activity.
"Andrew J. Kelly" <sqlmvpnooospam@.shadhawk.com> escreveu na mensagem
news:uGDdVsQ8EHA.3336@.TK2MSFTNGP11.phx.gbl...[vbcol=seagreen]
> Sounds like you may have the Slammer virus. Are you running the latest
> service packs?
> http://www.aspfaq.com/show.asp?id=2441
> --
> Andrew J. Kelly SQL MVP
>
> "Frank Dulk" <fdulk@.bol.com.br> wrote in message
> news:egL3maQ8EHA.2124@.TK2MSFTNGP15.phx.gbl...
anything,
>
|||Hi
For SQL Server, run SELECT @.@.VERSION from Query analyzer. If the value
returned is less than 8.00.760, you are susceptible.
--
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/
"Frank Dulk" <fdulk@.bol.com.br> wrote in message
news:ezQHSho9EHA.3504@.TK2MSFTNGP12.phx.gbl...[vbcol=seagreen]
> Win2000, Server and Sql Server with all the updated available SP's.
> Anti-virus in all the equipments and updated. The Interesting is that also
> noticed this in my machine using Access in way design and the same thing
> happens. The processor is in the same 100% me not making anything, just
> mecher the mouse already maintains the pick in the 100%. Any other
> application works normal, I already tested. I can do from a document, a
> graph in Corel, a presentation in the Power Point... it doesn't arrive in
> the 50%, in the Access mecher in the mouse maintains the 100% of activity.
> "Andrew J. Kelly" <sqlmvpnooospam@.shadhawk.com> escreveu na mensagem
> news:uGDdVsQ8EHA.3336@.TK2MSFTNGP11.phx.gbl...
in[vbcol=seagreen]
> anything,
3.0[vbcol=seagreen]
Win2000[vbcol=seagreen]
stations[vbcol=seagreen]
the[vbcol=seagreen]
personal[vbcol=seagreen]
of[vbcol=seagreen]
have
>
|||I'm experiencing the same or at least very similar problem.
After few days (time period before it happens again is random), at once
system process takes 100% of processor (or better = the rest what other
applications don't need ... i mean if you open something it works slower
than normally, because it has around 50% of processor - the rest is used
by system process).
Only thing that helps is restart of whole machine, i have no antivirus
software, but this computer doesn't communicate with internet so i'm
pretty sure there are no viruses on it.
I tried performance monitoring, but didn't have enough time, because it
is on a server that needs to be accessible 24/7 and must have very quick
responses. I found that there is a large number of active and passive
connections. (12000+ active and 84000+ passive). I didn't found any
extensive disk activity, memory usage is quite low ...
Does anyone have any clue ?
Thanks for any suggeestion.
Honza Novak
Frank Dulk wrote:
> Win2000, Server and Sql Server with all the updated available SP's.
> Anti-virus in all the equipments and updated. The Interesting is that also
> noticed this in my machine using Access in way design and the same thing
> happens. The processor is in the same 100% me not making anything, just
> mecher the mouse already maintains the pick in the 100%. Any other
> application works normal, I already tested. I can do from a document, a
> graph in Corel, a presentation in the Power Point... it doesn't arrive in
> the 50%, in the Access mecher in the mouse maintains the 100% of activity.
> "Andrew J. Kelly" <sqlmvpnooospam@.shadhawk.com> escreveu na mensagem
> news:uGDdVsQ8EHA.3336@.TK2MSFTNGP11.phx.gbl...
>
> anything,
>
>
processor doesn't leave the 100%
independent of being in the application .mde or with the application in way
desing. In the with Win98 work usually. doesn't need to execute anything,
mecher is enough the mouse and ready, the processor is in picks of 100/80%.
Some months ago noticed this in a seek application in a server P4 of 3.0 gb,
1Gb mem, that I installed. When accessing the bank Sql Server in Win2000
Server the processor doesn't leave the 100% doing with that the stations are
very slow.
Did anybody already come across this problem?
And other still: To with the win2k in all the stations and Server in the
server. In intervals non sequence, the date and the hour of the personal
computer of the net reset for 1899, 1890 and for oh, nor for the date of the
bios it is.
I already passed anti-virus of the site of the simantec and doesn't have
anything.Sounds like you may have the Slammer virus. Are you running the latest
service packs?
http://www.aspfaq.com/show.asp?id=2441
Andrew J. Kelly SQL MVP
"Frank Dulk" <fdulk@.bol.com.br> wrote in message
news:egL3maQ8EHA.2124@.TK2MSFTNGP15.phx.gbl...
>I noticed the use of 100% of the processor in machines using Win2000,
> independent of being in the application .mde or with the application in
> way
> desing. In the with Win98 work usually. doesn't need to execute anything,
> mecher is enough the mouse and ready, the processor is in picks of
> 100/80%.
> Some months ago noticed this in a seek application in a server P4 of 3.0
> gb,
> 1Gb mem, that I installed. When accessing the bank Sql Server in Win2000
> Server the processor doesn't leave the 100% doing with that the stations
> are
> very slow.
> Did anybody already come across this problem?
> And other still: To with the win2k in all the stations and Server in the
> server. In intervals non sequence, the date and the hour of the personal
> computer of the net reset for 1899, 1890 and for oh, nor for the date of
> the
> bios it is.
> I already passed anti-virus of the site of the simantec and doesn't have
> anything.
>|||Win2000, Server and Sql Server with all the updated available SP's.
Anti-virus in all the equipments and updated. The Interesting is that also
noticed this in my machine using Access in way design and the same thing
happens. The processor is in the same 100% me not making anything, just
mecher the mouse already maintains the pick in the 100%. Any other
application works normal, I already tested. I can do from a document, a
graph in Corel, a presentation in the Power Point... it doesn't arrive in
the 50%, in the Access mecher in the mouse maintains the 100% of activity.
"Andrew J. Kelly" <sqlmvpnooospam@.shadhawk.com> escreveu na mensagem
news:uGDdVsQ8EHA.3336@.TK2MSFTNGP11.phx.gbl...
> Sounds like you may have the Slammer virus. Are you running the latest
> service packs?
> http://www.aspfaq.com/show.asp?id=2441
> --
> Andrew J. Kelly SQL MVP
>
> "Frank Dulk" <fdulk@.bol.com.br> wrote in message
> news:egL3maQ8EHA.2124@.TK2MSFTNGP15.phx.gbl...
anything,[vbcol=seagreen]
>|||Hi
For SQL Server, run SELECT @.@.VERSION from Query analyzer. If the value
returned is less than 8.00.760, you are susceptible.
--
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/
"Frank Dulk" <fdulk@.bol.com.br> wrote in message
news:ezQHSho9EHA.3504@.TK2MSFTNGP12.phx.gbl...
> Win2000, Server and Sql Server with all the updated available SP's.
> Anti-virus in all the equipments and updated. The Interesting is that also
> noticed this in my machine using Access in way design and the same thing
> happens. The processor is in the same 100% me not making anything, just
> mecher the mouse already maintains the pick in the 100%. Any other
> application works normal, I already tested. I can do from a document, a
> graph in Corel, a presentation in the Power Point... it doesn't arrive in
> the 50%, in the Access mecher in the mouse maintains the 100% of activity.
> "Andrew J. Kelly" <sqlmvpnooospam@.shadhawk.com> escreveu na mensagem
> news:uGDdVsQ8EHA.3336@.TK2MSFTNGP11.phx.gbl...
in[vbcol=seagreen]
> anything,
3.0[vbcol=seagreen]
Win2000[vbcol=seagreen]
stations[vbcol=seagreen]
the[vbcol=seagreen]
personal[vbcol=seagreen]
of[vbcol=seagreen]
have[vbcol=seagreen]
>|||I'm experiencing the same or at least very similar problem.
After few days (time period before it happens again is random), at once
system process takes 100% of processor (or better = the rest what other
applications don't need ... i mean if you open something it works slower
than normally, because it has around 50% of processor - the rest is used
by system process).
Only thing that helps is restart of whole machine, i have no antivirus
software, but this computer doesn't communicate with internet so i'm
pretty sure there are no viruses on it.
I tried performance monitoring, but didn't have enough time, because it
is on a server that needs to be accessible 24/7 and must have very quick
responses. I found that there is a large number of active and passive
connections. (12000+ active and 84000+ passive). I didn't found any
extensive disk activity, memory usage is quite low ...
Does anyone have any clue ?
Thanks for any suggeestion.
Honza Novak
Frank Dulk wrote:
> Win2000, Server and Sql Server with all the updated available SP's.
> Anti-virus in all the equipments and updated. The Interesting is that also
> noticed this in my machine using Access in way design and the same thing
> happens. The processor is in the same 100% me not making anything, just
> mecher the mouse already maintains the pick in the 100%. Any other
> application works normal, I already tested. I can do from a document, a
> graph in Corel, a presentation in the Power Point... it doesn't arrive in
> the 50%, in the Access mecher in the mouse maintains the 100% of activity.
> "Andrew J. Kelly" <sqlmvpnooospam@.shadhawk.com> escreveu na mensagem
> news:uGDdVsQ8EHA.3336@.TK2MSFTNGP11.phx.gbl...
>
> anything,
>
>
processor doesn't leave the 100%
independent of being in the application .mde or with the application in way
desing. In the with Win98 work usually. doesn't need to execute anything,
mecher is enough the mouse and ready, the processor is in picks of 100/80%.
Some months ago noticed this in a seek application in a server P4 of 3.0 gb,
1Gb mem, that I installed. When accessing the bank Sql Server in Win2000
Server the processor doesn't leave the 100% doing with that the stations are
very slow.
Did anybody already come across this problem?
And other still: To with the win2k in all the stations and Server in the
server. In intervals non sequence, the date and the hour of the personal
computer of the net reset for 1899, 1890 and for oh, nor for the date of the
bios it is.
I already passed anti-virus of the site of the simantec and doesn't have
anything.Sounds like you may have the Slammer virus. Are you running the latest
service packs?
http://www.aspfaq.com/show.asp?id=2441
--
Andrew J. Kelly SQL MVP
"Frank Dulk" <fdulk@.bol.com.br> wrote in message
news:egL3maQ8EHA.2124@.TK2MSFTNGP15.phx.gbl...
>I noticed the use of 100% of the processor in machines using Win2000,
> independent of being in the application .mde or with the application in
> way
> desing. In the with Win98 work usually. doesn't need to execute anything,
> mecher is enough the mouse and ready, the processor is in picks of
> 100/80%.
> Some months ago noticed this in a seek application in a server P4 of 3.0
> gb,
> 1Gb mem, that I installed. When accessing the bank Sql Server in Win2000
> Server the processor doesn't leave the 100% doing with that the stations
> are
> very slow.
> Did anybody already come across this problem?
> And other still: To with the win2k in all the stations and Server in the
> server. In intervals non sequence, the date and the hour of the personal
> computer of the net reset for 1899, 1890 and for oh, nor for the date of
> the
> bios it is.
> I already passed anti-virus of the site of the simantec and doesn't have
> anything.
>|||Win2000, Server and Sql Server with all the updated available SP's.
Anti-virus in all the equipments and updated. The Interesting is that also
noticed this in my machine using Access in way design and the same thing
happens. The processor is in the same 100% me not making anything, just
mecher the mouse already maintains the pick in the 100%. Any other
application works normal, I already tested. I can do from a document, a
graph in Corel, a presentation in the Power Point... it doesn't arrive in
the 50%, in the Access mecher in the mouse maintains the 100% of activity.
"Andrew J. Kelly" <sqlmvpnooospam@.shadhawk.com> escreveu na mensagem
news:uGDdVsQ8EHA.3336@.TK2MSFTNGP11.phx.gbl...
> Sounds like you may have the Slammer virus. Are you running the latest
> service packs?
> http://www.aspfaq.com/show.asp?id=2441
> --
> Andrew J. Kelly SQL MVP
>
> "Frank Dulk" <fdulk@.bol.com.br> wrote in message
> news:egL3maQ8EHA.2124@.TK2MSFTNGP15.phx.gbl...
> >I noticed the use of 100% of the processor in machines using Win2000,
> > independent of being in the application .mde or with the application in
> > way
> > desing. In the with Win98 work usually. doesn't need to execute
anything,
> > mecher is enough the mouse and ready, the processor is in picks of
> > 100/80%.
> > Some months ago noticed this in a seek application in a server P4 of 3.0
> > gb,
> > 1Gb mem, that I installed. When accessing the bank Sql Server in Win2000
> > Server the processor doesn't leave the 100% doing with that the stations
> > are
> > very slow.
> > Did anybody already come across this problem?
> >
> > And other still: To with the win2k in all the stations and Server in the
> > server. In intervals non sequence, the date and the hour of the personal
> > computer of the net reset for 1899, 1890 and for oh, nor for the date of
> > the
> > bios it is.
> > I already passed anti-virus of the site of the simantec and doesn't have
> > anything.
> >
> >
>|||Hi
For SQL Server, run SELECT @.@.VERSION from Query analyzer. If the value
returned is less than 8.00.760, you are susceptible.
--
--
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/
"Frank Dulk" <fdulk@.bol.com.br> wrote in message
news:ezQHSho9EHA.3504@.TK2MSFTNGP12.phx.gbl...
> Win2000, Server and Sql Server with all the updated available SP's.
> Anti-virus in all the equipments and updated. The Interesting is that also
> noticed this in my machine using Access in way design and the same thing
> happens. The processor is in the same 100% me not making anything, just
> mecher the mouse already maintains the pick in the 100%. Any other
> application works normal, I already tested. I can do from a document, a
> graph in Corel, a presentation in the Power Point... it doesn't arrive in
> the 50%, in the Access mecher in the mouse maintains the 100% of activity.
> "Andrew J. Kelly" <sqlmvpnooospam@.shadhawk.com> escreveu na mensagem
> news:uGDdVsQ8EHA.3336@.TK2MSFTNGP11.phx.gbl...
> > Sounds like you may have the Slammer virus. Are you running the latest
> > service packs?
> >
> > http://www.aspfaq.com/show.asp?id=2441
> >
> > --
> > Andrew J. Kelly SQL MVP
> >
> >
> > "Frank Dulk" <fdulk@.bol.com.br> wrote in message
> > news:egL3maQ8EHA.2124@.TK2MSFTNGP15.phx.gbl...
> > >I noticed the use of 100% of the processor in machines using Win2000,
> > > independent of being in the application .mde or with the application
in
> > > way
> > > desing. In the with Win98 work usually. doesn't need to execute
> anything,
> > > mecher is enough the mouse and ready, the processor is in picks of
> > > 100/80%.
> > > Some months ago noticed this in a seek application in a server P4 of
3.0
> > > gb,
> > > 1Gb mem, that I installed. When accessing the bank Sql Server in
Win2000
> > > Server the processor doesn't leave the 100% doing with that the
stations
> > > are
> > > very slow.
> > > Did anybody already come across this problem?
> > >
> > > And other still: To with the win2k in all the stations and Server in
the
> > > server. In intervals non sequence, the date and the hour of the
personal
> > > computer of the net reset for 1899, 1890 and for oh, nor for the date
of
> > > the
> > > bios it is.
> > > I already passed anti-virus of the site of the simantec and doesn't
have
> > > anything.
> > >
> > >
> >
> >
>|||I'm experiencing the same or at least very similar problem.
After few days (time period before it happens again is random), at once
system process takes 100% of processor (or better = the rest what other
applications don't need ... i mean if you open something it works slower
than normally, because it has around 50% of processor - the rest is used
by system process).
Only thing that helps is restart of whole machine, i have no antivirus
software, but this computer doesn't communicate with internet so i'm
pretty sure there are no viruses on it.
I tried performance monitoring, but didn't have enough time, because it
is on a server that needs to be accessible 24/7 and must have very quick
responses. I found that there is a large number of active and passive
connections. (12000+ active and 84000+ passive). I didn't found any
extensive disk activity, memory usage is quite low ...
Does anyone have any clue ?
Thanks for any suggeestion.
Honza Novak
Frank Dulk wrote:
> Win2000, Server and Sql Server with all the updated available SP's.
> Anti-virus in all the equipments and updated. The Interesting is that also
> noticed this in my machine using Access in way design and the same thing
> happens. The processor is in the same 100% me not making anything, just
> mecher the mouse already maintains the pick in the 100%. Any other
> application works normal, I already tested. I can do from a document, a
> graph in Corel, a presentation in the Power Point... it doesn't arrive in
> the 50%, in the Access mecher in the mouse maintains the 100% of activity.
> "Andrew J. Kelly" <sqlmvpnooospam@.shadhawk.com> escreveu na mensagem
> news:uGDdVsQ8EHA.3336@.TK2MSFTNGP11.phx.gbl...
>>Sounds like you may have the Slammer virus. Are you running the latest
>>service packs?
>>http://www.aspfaq.com/show.asp?id=2441
>>--
>>Andrew J. Kelly SQL MVP
>>
>>"Frank Dulk" <fdulk@.bol.com.br> wrote in message
>>news:egL3maQ8EHA.2124@.TK2MSFTNGP15.phx.gbl...
>>I noticed the use of 100% of the processor in machines using Win2000,
>>independent of being in the application .mde or with the application in
>>way
>>desing. In the with Win98 work usually. doesn't need to execute
> anything,
>>mecher is enough the mouse and ready, the processor is in picks of
>>100/80%.
>>Some months ago noticed this in a seek application in a server P4 of 3.0
>>gb,
>>1Gb mem, that I installed. When accessing the bank Sql Server in Win2000
>>Server the processor doesn't leave the 100% doing with that the stations
>>are
>>very slow.
>>Did anybody already come across this problem?
>>And other still: To with the win2k in all the stations and Server in the
>>server. In intervals non sequence, the date and the hour of the personal
>>computer of the net reset for 1899, 1890 and for oh, nor for the date of
>>the
>>bios it is.
>>I already passed anti-virus of the site of the simantec and doesn't have
>>anything.
>>
>>
>
Tuesday, March 20, 2012
Processing User Activity Table
I have an application that will be logging to a SQL Server 2000
database user user activity from several Windows 2003 terminal
servers. This information will be retrieved by monitoring the
Security logs of these servers (this part I know how to accomplish
already).
A table in the database, tblLogEntries, will contain the following
fields:
- ID = autoincrementing int
- LogTime = Date/Time the user activity was recorded in the security
log
- Username = User's login ID that the activity was recorded with
- Type = int, referencing a lookup table with the values of Logon,
Logoff, and possible other future items
- Server = The name of the server the activity was recorded on.
The only question I have is, can you offer a way to process the total
user login time during a given range using T-SQL.
For Example...
Given the table data:
ID LogTime Username Type Server
1 10-10-2003 8:30:00 Tom Logon SERVER-A
2 10-10-2003 8:45:00 Sarah Logon SERVER-A
3 10-10-2003 16:45:00 Tom Logoff SERVER-A
4 10-10-2003 17:00:00 Sarah Logoff SERVER-A
5 10-11-2003 8:30:00 Tom Logon SERVER-A
6 10-11-2003 8:45:00 Sarah Logon SERVER-A
7 10-11-2003 16:30:00 Sarah Logoff SERVER-A
8 10-11-2003 17:15:00 Tom Logoff SERVER-A
How would you receive the output:
User Logon Total Time for SERVER-A
Tom 17.0 hrs
Sarah 16.0 hrs
I know I can handle this type of processing on my ASP.NET front-end,
but I'm curious as to how easily it can be done by the database,
itself.
Thanks in advance for your assistance.Do:
SELECT UserName,
SUM( DATEDIFF( hour, Login, COALESCE( Logoff, Login ) ) )
FROM ( SELECT t1.Username, t1.LogTime,
( SELECT MIN( t2.LogTime )
FROM tbl t2
WHERE t2.Server = t1.Server
AND t2.UserName = t1.Username
AND t2.Type = 'LogOff'
AND t2.LogTime > t1.LogTime )
FROM tbl t1
WHERE t1.Type = 'Logon'
AND t1.Server = 'SERVER-A' ) D ( UserName, Login, Logoff )
GROUP BY UserName ;
--
- Anith
( Please reply to newsgroups only )|||Thanks for the reply.. the query looks good, but I'm having a little
trouble following it, and, as a result, cannot get it to work.
Would you mind explaining it a bit or point me to a reference for this
type of processing?
I'm not sure what that "D" operator is for, and I'll read up on the
COALESCE in BOL.
------------
http://members.tripod.com/kcourville0/
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!|||D is an alias used for a derived table used in the query; when you use a
subquery construct directly in the FROM clause of an SQL statement with an
alias, in t-SQL, it is called a derived table. Pl. refer to SQL Server Books
Online for syntax and more details on this construct.
The logic is simple:
1. Retrieve the list of users with their login times and the subsequent
logout time (this is achieved using a subquery with MIN function). You can
run the derived table by itself to further understand how it is evaluated.
2. With the data in the derived table, the outer query, get the time
difference between the login time and the logout times and then find the
total using the SUM function.
--
- Anith
( Please reply to newsgroups only )|||Cool... I'll have to learn more of derived tables.
Thanks again for your response.
------------
http://members.tripod.com/kcourville0/
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Processing of cube created via DSO in AS 2005 fails
2005.
This application uses DSO from VB to create and process cubes. I have
gotten
over the major hurdles of getting DSO to work with AS 2005. However,
upon
creating of the cubes, I get errors processing it (even from
Management
Studio). Here's the code (abridged to remove error handling) that
we use to
create a cube:
Dim dsoCube As DSO.MDStore
Set
dsoCube = m_dsoDatabase.MDStores.AddNew(cubeName)
' set the cube's
description
dsoCube.Description = sCubeDesc
' set the cube's
datasource
dsoCube.DataSources.Add
m_dsoDatabase.DataSources(mvarDBName)
Dim dboStr As String
dboStr = sLQuote & "dbo" & sRQuote & "."
' set the source
table (fact table) for the cube
dsoCube.SourceTable = dboStr &
sLQuote & FACT_TABLE & sRQuote
dsoCube.EstimatedRows =
164558
' specify access permissions to the cube by adding roles to the
cube
Dim dsoCubeRole As DSO.role
Set dsoCubeRole =
dsoCube.Roles.AddNew("BSA Role")
dsoCubeRole.SetPermissions "Access",
"RW"
' create cube's measures
'
Dim dsoMeasure As
DSO.Measure
Set dsoCube = m_dsoDatabase.MDStores.Item(cubeName)
Set dsoMeasure = dsoCube.Measures.AddNew("BaseAmt")
' set the
measure's source column, data type and the formatting
dsoMeasure.SourceColumn = dsoCube.SourceTable & "." &
_
sLQuote & "baseamt" & sRQuote
dsoMeasure.SourceColumnType = adDouble
dsoMeasure.FormatString =
"Currency"
' this measure will be aggregated by summation
dsoMeasure.AggregateFunction = aggSum
Set dsoMeasure =
dsoCube.Measures.AddNew("Count")
' set the measure's source column,
data type and the formatting
dsoMeasure.SourceColumn =
dsoCube.SourceTable & "." & _
sLQuote
& "baseamt" & sRQuote
dsoMeasure.SourceColumnType =
adInteger
' this measure will be aggregated by summation
dsoMeasure.AggregateFunction = aggCount
Set dsoMeasure =
dsoCube.Measures.AddNew("TranNo")
' set the measure's source column,
data type and the formatting
dsoMeasure.SourceColumn =
dsoCube.SourceTable & "." & _
sLQuote
& "TranNo" & sRQuote
dsoMeasure.SourceColumnType =
adInteger
' this measure will be aggregated by summation
dsoMeasure.AggregateFunction = aggMax
' Create Calculated
members
Dim dsoCalculatedMember As DSO.Command
Set
dsoCalculatedMember = dsoCube.Commands.AddNew("CustAvgAmt")
' set the
command type
dsoCalculatedMember.CommandType = cmdCreateMember
'
set the MDX statement that defines the calculated member
dsoCalculatedMember.Statement = _
"Create Member Measures.[CustAvgAmt] As
" & _
"'avg({LastPeriods(3 ,
[bookdate].&[2003].&[4].&[10])},
measures.[baseamt])'"
Set dsoCalculatedMember = dsoCube.Commands.AddNew("CustAvgCnt")
' set the
command type
dsoCalculatedMember.CommandType = cmdCreateMember
' set the MDX statement that defines the calculated member
dsoCalculatedMember.Statement = _
"Create Member Measures.[CustAvgCnt] As
" & _
"'avg({LastPeriods(3 ,
[bookdate].&[2003].&[4].&[10])},
measures.[Count])'"
'
add the BookDate dimension
Dim dsoBookDateDim As DSO.Dimension
Set
dsoBookDateDim = dsoCube.Dimensions.AddNew("BookDate")
' add the
RecvPay dimension
Dim dsoRecvPayDim As DSO.Dimension
Set
dsoRecvPayDim = dsoCube.Dimensions.AddNew("RecvPay")
' get the list
of all tables used in this cube
' this list includes the fact table and
the dimension tables
' Note: Make sure that you do not repeat the same
table name twice.
dsoCube.FromClause = dsoCube.SourceTable & ", "
&
dsoBookDateDim.FromClause
dsoCube.joinClause =
dsoCube.joinClause & _
"(" & _
dboStr
& sLQuote & FACT_TABLE & sRQuote & "." & sLQuote
&
"bookdate" & sRQuote & _
" = " &
_
dboStr & sLQuote & "TblBookDate" & sRQuote &
"." & sLQuote &
"bookdate" & sRQuote & _
")"
dsoCube.SourceTableFilter = mvarFactTableFilter
' save the
cube definition in the metadata repository
dsoCube.Update
This
code runs fine, but during processing of the selected cube from
Management
Studio, the following error is displayed:
The Measures cube either does
not exist or has not been processed
There is no Measures cube, nor was
there ever. This does not happen when
processing cubes in AS 2000 or even in
AS 2005 if the cube was migrated from
AS 2000.
Can anybody help with
this?
Thanks in advance,
Boris Zakharin, MCAD
Metavante Risk and
Compliance
Hi Boris,
the problem is in the following line, which creates a calculated member. In AS2005 (as well as in AS2000) the member created in the cube scope should be prefixed with the cube name or CurrentCube, since Measures is the first name detected AS2005 treats it as a cube name. Pehaps AS2000 did not detected this error during the prosessing, but the calc member was disabled pr may be I'm wrong and CurrentCube was optional, but anyway, if you add CurrentCube to all calculated members it should start to process.
"Create Member Measures.[CustAvgAmt] As " & _
"'avg({LastPeriods(3 , [bookdate].&[2003].&[4].&[10])},
measures.[baseamt])'"
Monday, March 12, 2012
Processing cubes in Analysis Services 2000
I need to write an application to process Analysis Services 2000 cubes but I can't use DSO because there isn't a 64 bit version available of this library.
Can I use AMO (Analysis Management Objects) for administering Analysis Services 2000? Is there another solution?
Thanks in advance
DanieleUnfortunately you cannot use AMO against Analysis Services 2000.
You can use DSO to remotely process Analysis Services object from another 32bit machine.
By the way you can use separate Redistributable component to install DSO
http://www.microsoft.com/downloads/details.aspx?familyid=d09c1d60-a13c-4479-9b91-9e8b9d835cdc&displaylang=en
Look for
"Microsoft SQL Server 2005 Backward Compatibility Components "
Edward Melomed (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights.
Processes seen in enterprise manager
We are using a new third party application that has SQL Server 2000 as the
database. It is an ASP page front end and uses ODBC to connect. There are
about 20 people who use it during the day. When I look in EM at the
processes there are well over 100. Even in the morning after everyone has
logged out the night before. All the processes are sleeping so they aren't
using any resources. I feel kind of dumb here but is there a server
property setting where I can set a value for these to expire? Looked in BOL
and in my other books but this doesn't seem to be available. Only timeout
settings when waiting for a connection or running a query. I wasn't worried
about these thinking SQL Server was managing them but then I noticed that
our in house application that uses the same type of setup doesn't have this
problem.
Thanks,
Wayne
I have worked with one third party application whose idea of connection
pooling was to open up 100 connections on start-up, even though it never
used more than 2 during the time we used it. Your third party application
might have been designed by a similarly brilliant and knowledgeable
developer.
You can't set a timeout for the connections, but you can schedule a job to
run the following script on a regular basis. This example kills all
connections that have not been used for 6 hours:
DECLARE @.sql varchar(4000)
WHILE 1=1
BEGIN
SET @.sql = (SELECT TOP 1 'KILL ' + CAST(spid AS VARCHAR(10))
FROM master.dbo.sysprocesses WHERE DATEDIFF(hh, last_batch,
GETDATE()) >= 6
AND spid <> @.@.spid AND spid >= 50)
IF @.sql IS NULL BREAK
EXEC (@.sql)
END
Jacco Schalkwijk
SQL Server MVP
"Wayne Antinore" <wantinore@.veramark.com> wrote in message
news:OPecmwqLEHA.1340@.TK2MSFTNGP12.phx.gbl...
> Hi,
> We are using a new third party application that has SQL Server 2000 as the
> database. It is an ASP page front end and uses ODBC to connect. There
are
> about 20 people who use it during the day. When I look in EM at the
> processes there are well over 100. Even in the morning after everyone has
> logged out the night before. All the processes are sleeping so they
aren't
> using any resources. I feel kind of dumb here but is there a server
> property setting where I can set a value for these to expire? Looked in
BOL
> and in my other books but this doesn't seem to be available. Only timeout
> settings when waiting for a connection or running a query. I wasn't
worried
> about these thinking SQL Server was managing them but then I noticed that
> our in house application that uses the same type of setup doesn't have
this
> problem.
> Thanks,
> Wayne
>
|||Thanks Jacco,
I'll give the script a try. Based on other things I've seen with this app I
would not be surprised if they are doing something similar.
Thanks again,
Wayne
"Jacco Schalkwijk" <NOSPAMjaccos@.eurostop.co.uk> wrote in message
news:%23m6mO%23qLEHA.3516@.TK2MSFTNGP11.phx.gbl...[vbcol=seagreen]
> I have worked with one third party application whose idea of connection
> pooling was to open up 100 connections on start-up, even though it never
> used more than 2 during the time we used it. Your third party application
> might have been designed by a similarly brilliant and knowledgeable
> developer.
> You can't set a timeout for the connections, but you can schedule a job to
> run the following script on a regular basis. This example kills all
> connections that have not been used for 6 hours:
> DECLARE @.sql varchar(4000)
> WHILE 1=1
> BEGIN
> SET @.sql = (SELECT TOP 1 'KILL ' + CAST(spid AS VARCHAR(10))
> FROM master.dbo.sysprocesses WHERE DATEDIFF(hh, last_batch,
> GETDATE()) >= 6
> AND spid <> @.@.spid AND spid >= 50)
> IF @.sql IS NULL BREAK
> EXEC (@.sql)
> END
>
> --
> Jacco Schalkwijk
> SQL Server MVP
>
> "Wayne Antinore" <wantinore@.veramark.com> wrote in message
> news:OPecmwqLEHA.1340@.TK2MSFTNGP12.phx.gbl...
the[vbcol=seagreen]
> are
has[vbcol=seagreen]
> aren't
> BOL
timeout[vbcol=seagreen]
> worried
that
> this
>
|||Ok, don't be surprised though if the application either fails to work when
it's 100 or so connections aren't there, or just recreates them on a regular
basis after you have killed them....
Jacco Schalkwijk
SQL Server MVP
"Wayne Antinore" <wantinore@.veramark.com> wrote in message
news:uJQkvJrLEHA.3904@.TK2MSFTNGP09.phx.gbl...
> Thanks Jacco,
> I'll give the script a try. Based on other things I've seen with this app
I[vbcol=seagreen]
> would not be surprised if they are doing something similar.
> Thanks again,
> Wayne
>
> "Jacco Schalkwijk" <NOSPAMjaccos@.eurostop.co.uk> wrote in message
> news:%23m6mO%23qLEHA.3516@.TK2MSFTNGP11.phx.gbl...
application[vbcol=seagreen]
to[vbcol=seagreen]
> the
There[vbcol=seagreen]
> has
in
> timeout
> that
>
Friday, March 9, 2012
Processes seen in enterprise manager
We are using a new third party application that has SQL Server 2000 as the
database. It is an ASP page front end and uses ODBC to connect. There are
about 20 people who use it during the day. When I look in EM at the
processes there are well over 100. Even in the morning after everyone has
logged out the night before. All the processes are sleeping so they aren't
using any resources. I feel kind of dumb here but is there a server
property setting where I can set a value for these to expire? Looked in BOL
and in my other books but this doesn't seem to be available. Only timeout
settings when waiting for a connection or running a query. I wasn't worried
about these thinking SQL Server was managing them but then I noticed that
our in house application that uses the same type of setup doesn't have this
problem.
Thanks,
WayneI have worked with one third party application whose idea of connection
pooling was to open up 100 connections on start-up, even though it never
used more than 2 during the time we used it. Your third party application
might have been designed by a similarly brilliant and knowledgeable
developer.
You can't set a timeout for the connections, but you can schedule a job to
run the following script on a regular basis. This example kills all
connections that have not been used for 6 hours:
DECLARE @.sql varchar(4000)
WHILE 1=1
BEGIN
SET @.sql = (SELECT TOP 1 'KILL ' + CAST(spid AS VARCHAR(10))
FROM master.dbo.sysprocesses WHERE DATEDIFF(hh, last_batch,
GETDATE()) >= 6
AND spid <> @.@.spid AND spid >= 50)
IF @.sql IS NULL BREAK
EXEC (@.sql)
END
Jacco Schalkwijk
SQL Server MVP
"Wayne Antinore" <wantinore@.veramark.com> wrote in message
news:OPecmwqLEHA.1340@.TK2MSFTNGP12.phx.gbl...
> Hi,
> We are using a new third party application that has SQL Server 2000 as the
> database. It is an ASP page front end and uses ODBC to connect. There
are
> about 20 people who use it during the day. When I look in EM at the
> processes there are well over 100. Even in the morning after everyone has
> logged out the night before. All the processes are sleeping so they
aren't
> using any resources. I feel kind of dumb here but is there a server
> property setting where I can set a value for these to expire? Looked in
BOL
> and in my other books but this doesn't seem to be available. Only timeout
> settings when waiting for a connection or running a query. I wasn't
worried
> about these thinking SQL Server was managing them but then I noticed that
> our in house application that uses the same type of setup doesn't have
this
> problem.
> Thanks,
> Wayne
>|||Thanks Jacco,
I'll give the script a try. Based on other things I've seen with this app I
would not be surprised if they are doing something similar.
Thanks again,
Wayne
"Jacco Schalkwijk" <NOSPAMjaccos@.eurostop.co.uk> wrote in message
news:%23m6mO%23qLEHA.3516@.TK2MSFTNGP11.phx.gbl...
> I have worked with one third party application whose idea of connection
> pooling was to open up 100 connections on start-up, even though it never
> used more than 2 during the time we used it. Your third party application
> might have been designed by a similarly brilliant and knowledgeable
> developer.
> You can't set a timeout for the connections, but you can schedule a job to
> run the following script on a regular basis. This example kills all
> connections that have not been used for 6 hours:
> DECLARE @.sql varchar(4000)
> WHILE 1=1
> BEGIN
> SET @.sql = (SELECT TOP 1 'KILL ' + CAST(spid AS VARCHAR(10))
> FROM master.dbo.sysprocesses WHERE DATEDIFF(hh, last_batch,
> GETDATE()) >= 6
> AND spid <> @.@.spid AND spid >= 50)
> IF @.sql IS NULL BREAK
> EXEC (@.sql)
> END
>
> --
> Jacco Schalkwijk
> SQL Server MVP
>
> "Wayne Antinore" <wantinore@.veramark.com> wrote in message
> news:OPecmwqLEHA.1340@.TK2MSFTNGP12.phx.gbl...
the[vbcol=seagreen]
> are
has[vbcol=seagreen]
> aren't
> BOL
timeout[vbcol=seagreen]
> worried
that[vbcol=seagreen]
> this
>|||Ok, don't be surprised though if the application either fails to work when
it's 100 or so connections aren't there, or just recreates them on a regular
basis after you have killed them....
Jacco Schalkwijk
SQL Server MVP
"Wayne Antinore" <wantinore@.veramark.com> wrote in message
news:uJQkvJrLEHA.3904@.TK2MSFTNGP09.phx.gbl...
> Thanks Jacco,
> I'll give the script a try. Based on other things I've seen with this app
I
> would not be surprised if they are doing something similar.
> Thanks again,
> Wayne
>
> "Jacco Schalkwijk" <NOSPAMjaccos@.eurostop.co.uk> wrote in message
> news:%23m6mO%23qLEHA.3516@.TK2MSFTNGP11.phx.gbl...
application[vbcol=seagreen]
to[vbcol=seagreen]
> the
There[vbcol=seagreen]
> has
in[vbcol=seagreen]
> timeout
> that
>
Processes seen in enterprise manager
We are using a new third party application that has SQL Server 2000 as the
database. It is an ASP page front end and uses ODBC to connect. There are
about 20 people who use it during the day. When I look in EM at the
processes there are well over 100. Even in the morning after everyone has
logged out the night before. All the processes are sleeping so they aren't
using any resources. I feel kind of dumb here but is there a server
property setting where I can set a value for these to expire? Looked in BOL
and in my other books but this doesn't seem to be available. Only timeout
settings when waiting for a connection or running a query. I wasn't worried
about these thinking SQL Server was managing them but then I noticed that
our in house application that uses the same type of setup doesn't have this
problem.
Thanks,
WayneI have worked with one third party application whose idea of connection
pooling was to open up 100 connections on start-up, even though it never
used more than 2 during the time we used it. Your third party application
might have been designed by a similarly brilliant and knowledgeable
developer.
You can't set a timeout for the connections, but you can schedule a job to
run the following script on a regular basis. This example kills all
connections that have not been used for 6 hours:
DECLARE @.sql varchar(4000)
WHILE 1=1
BEGIN
SET @.sql = (SELECT TOP 1 'KILL ' + CAST(spid AS VARCHAR(10))
FROM master.dbo.sysprocesses WHERE DATEDIFF(hh, last_batch,
GETDATE()) >= 6
AND spid <> @.@.spid AND spid >= 50)
IF @.sql IS NULL BREAK
EXEC (@.sql)
END
Jacco Schalkwijk
SQL Server MVP
"Wayne Antinore" <wantinore@.veramark.com> wrote in message
news:OPecmwqLEHA.1340@.TK2MSFTNGP12.phx.gbl...
> Hi,
> We are using a new third party application that has SQL Server 2000 as the
> database. It is an ASP page front end and uses ODBC to connect. There
are
> about 20 people who use it during the day. When I look in EM at the
> processes there are well over 100. Even in the morning after everyone has
> logged out the night before. All the processes are sleeping so they
aren't
> using any resources. I feel kind of dumb here but is there a server
> property setting where I can set a value for these to expire? Looked in
BOL
> and in my other books but this doesn't seem to be available. Only timeout
> settings when waiting for a connection or running a query. I wasn't
worried
> about these thinking SQL Server was managing them but then I noticed that
> our in house application that uses the same type of setup doesn't have
this
> problem.
> Thanks,
> Wayne
>|||Thanks Jacco,
I'll give the script a try. Based on other things I've seen with this app I
would not be surprised if they are doing something similar.
Thanks again,
Wayne
"Jacco Schalkwijk" <NOSPAMjaccos@.eurostop.co.uk> wrote in message
news:%23m6mO%23qLEHA.3516@.TK2MSFTNGP11.phx.gbl...
> I have worked with one third party application whose idea of connection
> pooling was to open up 100 connections on start-up, even though it never
> used more than 2 during the time we used it. Your third party application
> might have been designed by a similarly brilliant and knowledgeable
> developer.
> You can't set a timeout for the connections, but you can schedule a job to
> run the following script on a regular basis. This example kills all
> connections that have not been used for 6 hours:
> DECLARE @.sql varchar(4000)
> WHILE 1=1
> BEGIN
> SET @.sql = (SELECT TOP 1 'KILL ' + CAST(spid AS VARCHAR(10))
> FROM master.dbo.sysprocesses WHERE DATEDIFF(hh, last_batch,
> GETDATE()) >= 6
> AND spid <> @.@.spid AND spid >= 50)
> IF @.sql IS NULL BREAK
> EXEC (@.sql)
> END
>
> --
> Jacco Schalkwijk
> SQL Server MVP
>
> "Wayne Antinore" <wantinore@.veramark.com> wrote in message
> news:OPecmwqLEHA.1340@.TK2MSFTNGP12.phx.gbl...
> > Hi,
> > We are using a new third party application that has SQL Server 2000 as
the
> > database. It is an ASP page front end and uses ODBC to connect. There
> are
> > about 20 people who use it during the day. When I look in EM at the
> > processes there are well over 100. Even in the morning after everyone
has
> > logged out the night before. All the processes are sleeping so they
> aren't
> > using any resources. I feel kind of dumb here but is there a server
> > property setting where I can set a value for these to expire? Looked in
> BOL
> > and in my other books but this doesn't seem to be available. Only
timeout
> > settings when waiting for a connection or running a query. I wasn't
> worried
> > about these thinking SQL Server was managing them but then I noticed
that
> > our in house application that uses the same type of setup doesn't have
> this
> > problem.
> >
> > Thanks,
> > Wayne
> >
> >
>|||Ok, don't be surprised though if the application either fails to work when
it's 100 or so connections aren't there, or just recreates them on a regular
basis after you have killed them....
--
Jacco Schalkwijk
SQL Server MVP
"Wayne Antinore" <wantinore@.veramark.com> wrote in message
news:uJQkvJrLEHA.3904@.TK2MSFTNGP09.phx.gbl...
> Thanks Jacco,
> I'll give the script a try. Based on other things I've seen with this app
I
> would not be surprised if they are doing something similar.
> Thanks again,
> Wayne
>
> "Jacco Schalkwijk" <NOSPAMjaccos@.eurostop.co.uk> wrote in message
> news:%23m6mO%23qLEHA.3516@.TK2MSFTNGP11.phx.gbl...
> > I have worked with one third party application whose idea of connection
> > pooling was to open up 100 connections on start-up, even though it never
> > used more than 2 during the time we used it. Your third party
application
> > might have been designed by a similarly brilliant and knowledgeable
> > developer.
> >
> > You can't set a timeout for the connections, but you can schedule a job
to
> > run the following script on a regular basis. This example kills all
> > connections that have not been used for 6 hours:
> >
> > DECLARE @.sql varchar(4000)
> > WHILE 1=1
> > BEGIN
> > SET @.sql = (SELECT TOP 1 'KILL ' + CAST(spid AS VARCHAR(10))
> > FROM master.dbo.sysprocesses WHERE DATEDIFF(hh, last_batch,
> > GETDATE()) >= 6
> > AND spid <> @.@.spid AND spid >= 50)
> > IF @.sql IS NULL BREAK
> > EXEC (@.sql)
> > END
> >
> >
> > --
> > Jacco Schalkwijk
> > SQL Server MVP
> >
> >
> > "Wayne Antinore" <wantinore@.veramark.com> wrote in message
> > news:OPecmwqLEHA.1340@.TK2MSFTNGP12.phx.gbl...
> > > Hi,
> > > We are using a new third party application that has SQL Server 2000 as
> the
> > > database. It is an ASP page front end and uses ODBC to connect.
There
> > are
> > > about 20 people who use it during the day. When I look in EM at the
> > > processes there are well over 100. Even in the morning after everyone
> has
> > > logged out the night before. All the processes are sleeping so they
> > aren't
> > > using any resources. I feel kind of dumb here but is there a server
> > > property setting where I can set a value for these to expire? Looked
in
> > BOL
> > > and in my other books but this doesn't seem to be available. Only
> timeout
> > > settings when waiting for a connection or running a query. I wasn't
> > worried
> > > about these thinking SQL Server was managing them but then I noticed
> that
> > > our in house application that uses the same type of setup doesn't have
> > this
> > > problem.
> > >
> > > Thanks,
> > > Wayne
> > >
> > >
> >
> >
>
processes problem
log indicates Maximum number of DBPROCESSes already
allocated and I can see that I have 250 sleeping processes in their
SQL Server process information screen. My application is set to
connect 1 times to the database and maintains these connection
persistently while it is running which is basically all the time, so I
cannot explain how it has 250 processes.
Thank you for your help!
VirgilWhat version of SQL Server are you using. SELECT @.@.VERSION
--
HTH
Ryan Waight, MCDBA, MCSE
"Virgil Trasca" <vtrasca@.totalsoft.ro> wrote in message
news:ug0JTnRfDHA.3324@.TK2MSFTNGP11.phx.gbl...
> I have a client using my application written in Delphi with SQL Server. My
> log indicates Maximum number of DBPROCESSes already
> allocated and I can see that I have 250 sleeping processes in their
> SQL Server process information screen. My application is set to
> connect 1 times to the database and maintains these connection
> persistently while it is running which is basically all the time, so I
> cannot explain how it has 250 processes.
> Thank you for your help!
> Virgil
>
Process with status SLEEPING.
Hi all,
We have a web application with multiple users connecting to SQL Server 2005 database.
Once the users start using the system, I could see in the Process Info from the activity monitor with a several process with status as sleeping and command as Awaiting Command.
I have few questions regarding this for which simple answers would help me ( I searched and couldnt understand from the pages that explained the process information )
My questions are,
1. Does the processes with status sleeping and command as Awaiting Command are needed for the application even after the operations specific to them are complete?
2. Does these process affect the performance ?
3. Does killing these process would affect the application connectivity ?
4. Why do we get several process with status sleeping and command as Awaiting Command? Is this because of the front end programming errors ?
5. What should we do to avoid the increasing number of process with status sleeping and command as Awaiting Command?
Any help would be appreciated.
Thanks in advance,
DBLearner.
Hi DBLearner,
1. Does the processes with status sleeping and command as Awaiting Command are needed for the application even after the operations specific to them are complete?
-- No
2. Does these process affect the performance ?
-- It will if you have left thousand connections open. Connections need resources.
3. Does killing these process would affect the application connectivity ?
-- You shouldn't have to go around killing these processes. I don't think it would affect. More work for you.
4. Why do we get several process with status sleeping and command as Awaiting Command? Is this because of the front end programming errors ?
-- Web app doesnot close the connection after the work has been done.
5. What should we do to avoid the increasing number of process with status sleeping and command as Awaiting Command?
-- Your web application needs to be configured or modified so that whenever it needs to do any work on SQL Server it does the following:
1. Opens a connection.
2. Do the SQL work e.g. execute a stored procedure or select some data back.
3. Close the connection.
regards
Jag
|||Most web applications use a "connection pool" for SQL connections. This is a normal operation. Leave it alone.Openning and closing connections is very time consuming. You do NOT want to open and close several thousand connections per min.
|||
Thanks Jag & Tom. But what should I do to optimise my connections and applications ?
DBLearner
|||It depends on your web application. You will need to look and see what mechanisim it is using to access the SQL server.|||
Agree with Tom, if it is using Connection pooling then the connections should be left alone.
But if there is no connection pooling present, then the web application should be closing there connection after the work has been completed.
regards
Jag
|||Hi,
Actually I am having a same problem where there are quite a number of process with sleeping status in the database. And I noticed that all these processes are called by the crystal report (using store procedures to get the data from db). FYI, I am using VS.Net 2003 and crystal report 9.0. Does anyone have idea on the solution for the this problem? Thanks.
|||As Jag and Tom say - if this is connection pooling then you are best to leave it alone.
What you are seeing is one sleeping process for each active pool connection. They are waiting, ready to respond quickly when needed (without logging in again). The only time you have a problem is if the number of these sleeping connections does not hold steady but instead rises dramatically (implying that either it is not pooling somewhere or the pooling is failing).
The pool of connections means that the application can be responsive, and if you start killing them then there will be a reduction in that responsiveness (and servicing requests is the database's function). Even worse if you manage to kill a connection just as it is activated to service a request you could cause all kinds of problems (hopefully just longer delays).
|||This is not a "problem", this is how it WORKS. As said before, leave it alone unless you are seeing hundreds of sleeping processes overloading your SQL server.Generally it opens new pipes when other pipes are busy. So if you have 10 sleeping processes, it is because you NEEDED THEM sometime before. It should timeout the pipe and close them after 60 mins or some time of inactivity.
Crystal does have some options to change the min/max connections, but I would leave them the default unless you are seriously having a problem.
|||
I have the same problem but i don't have hundread of conn just about 40.
These 40 sleeping connections thought eat me about 90% from the CPU and reset users Session and they loose their products before ariving to the payment.
I did close all the recordsets and connections and still appear new sleeping connections.
Any suggestions?
i used for any recordset opened
rs.close
set rs = nothing
still make me these problems i don't know what to do anymore
Any help will be appreciated
thank you
Process with status SLEEPING.
Hi all,
We have a web application with multiple users connecting to SQL Server 2005 database.
Once the users start using the system, I could see in the Process Info from the activity monitor with a several process with status as sleeping and command as Awaiting Command.
I have few questions regarding this for which simple answers would help me ( I searched and couldnt understand from the pages that explained the process information )
My questions are,
1. Does the processes with status sleeping and command as Awaiting Command are needed for the application even after the operations specific to them are complete?
2. Does these process affect the performance ?
3. Does killing these process would affect the application connectivity ?
4. Why do we get several process with status sleeping and command as Awaiting Command? Is this because of the front end programming errors ?
5. What should we do to avoid the increasing number of process with status sleeping and command as Awaiting Command?
Any help would be appreciated.
Thanks in advance,
DBLearner.
Hi DBLearner,
1. Does the processes with status sleeping and command as Awaiting Command are needed for the application even after the operations specific to them are complete?
-- No
2. Does these process affect the performance ?
-- It will if you have left thousand connections open. Connections need resources.
3. Does killing these process would affect the application connectivity ?
-- You shouldn't have to go around killing these processes. I don't think it would affect. More work for you.
4. Why do we get several process with status sleeping and command as Awaiting Command? Is this because of the front end programming errors ?
-- Web app doesnot close the connection after the work has been done.
5. What should we do to avoid the increasing number of process with status sleeping and command as Awaiting Command?
-- Your web application needs to be configured or modified so that whenever it needs to do any work on SQL Server it does the following:
1. Opens a connection.
2. Do the SQL work e.g. execute a stored procedure or select some data back.
3. Close the connection.
regards
Jag
|||Most web applications use a "connection pool" for SQL connections. This is a normal operation. Leave it alone.Openning and closing connections is very time consuming. You do NOT want to open and close several thousand connections per min.
|||
Thanks Jag & Tom. But what should I do to optimise my connections and applications ?
DBLearner
|||It depends on your web application. You will need to look and see what mechanisim it is using to access the SQL server.|||
Agree with Tom, if it is using Connection pooling then the connections should be left alone.
But if there is no connection pooling present, then the web application should be closing there connection after the work has been completed.
regards
Jag
|||Hi,
Actually I am having a same problem where there are quite a number of process with sleeping status in the database. And I noticed that all these processes are called by the crystal report (using store procedures to get the data from db). FYI, I am using VS.Net 2003 and crystal report 9.0. Does anyone have idea on the solution for the this problem? Thanks.
|||As Jag and Tom say - if this is connection pooling then you are best to leave it alone.
What you are seeing is one sleeping process for each active pool connection. They are waiting, ready to respond quickly when needed (without logging in again). The only time you have a problem is if the number of these sleeping connections does not hold steady but instead rises dramatically (implying that either it is not pooling somewhere or the pooling is failing).
The pool of connections means that the application can be responsive, and if you start killing them then there will be a reduction in that responsiveness (and servicing requests is the database's function). Even worse if you manage to kill a connection just as it is activated to service a request you could cause all kinds of problems (hopefully just longer delays).
|||This is not a "problem", this is how it WORKS. As said before, leave it alone unless you are seeing hundreds of sleeping processes overloading your SQL server.Generally it opens new pipes when other pipes are busy. So if you have 10 sleeping processes, it is because you NEEDED THEM sometime before. It should timeout the pipe and close them after 60 mins or some time of inactivity.
Crystal does have some options to change the min/max connections, but I would leave them the default unless you are seriously having a problem.
|||
I have the same problem but i don't have hundread of conn just about 40.
These 40 sleeping connections thought eat me about 90% from the CPU and reset users Session and they loose their products before ariving to the payment.
I did close all the recordsets and connections and still appear new sleeping connections.
Any suggestions?
i used for any recordset opened
rs.close
set rs = nothing
still make me these problems i don't know what to do anymore
Any help will be appreciated
thank you
Process throttling
We have an application accessing an SQL Database. The problem is that due to
a flaw in design, when queries are submitted we get 100% cpu usage on the
server. Is there any way to limit processing power for specific access?
Thanks
NichHi,
Try to identify the SQL's which is doing a table scan. Then based on the
where condition in the select statement
create useful indexes, this will definitely reduce the Disk reads, which in
turn reduces the CPU usage.
Thanks
Hari
MCDBA
"Microsoft News - SQL Server" <naquilina@.gfi.com> wrote in message
news:O5yHsJP5DHA.1040@.TK2MSFTNGP10.phx.gbl...
quote:
> Hi,
> We have an application accessing an SQL Database. The problem is that due
to
quote:|||No.
> a flaw in design, when queries are submitted we get 100% cpu usage on the
> server. Is there any way to limit processing power for specific access?
> Thanks
> Nich
>
Mike Kruchten
"Microsoft News - SQL Server" <naquilina@.gfi.com> wrote in message
news:O5yHsJP5DHA.1040@.TK2MSFTNGP10.phx.gbl...
quote:
> Hi,
> We have an application accessing an SQL Database. The problem is that due
to
quote:|||Hi Hari,
> a flaw in design, when queries are submitted we get 100% cpu usage on the
> server. Is there any way to limit processing power for specific access?
> Thanks
> Nich
>
Thanks, we will be using the Index tune-up wizard in fact, but does any one
know if a physical cpu usage limit can be set in any way apart from using
indexes to maximize table access speed
Thanks
Nich
"Hari Prasad" <hari_prasad_k@.hotmail.com> wrote in message
news:OMVWVMP5DHA.360@.TK2MSFTNGP12.phx.gbl...
quote:
> Hi,
> Try to identify the SQL's which is doing a table scan. Then based on the
> where condition in the select statement
> create useful indexes, this will definitely reduce the Disk reads, which
in
quote:|||if you have a multiprocessor machine, you could limit sql server to a subset
> turn reduces the CPU usage.
> Thanks
> Hari
> MCDBA
> "Microsoft News - SQL Server" <naquilina@.gfi.com> wrote in message
> news:O5yHsJP5DHA.1040@.TK2MSFTNGP10.phx.gbl...
due[QUOTE]
> to
the[QUOTE]
>
of
your processors. that would leave the other processors free to do other stu
ff.
you could also try lowering the priority of the sqlserver process.
i think it would be nice if we could set priority levels for db user account
s
so that certain users couldn't hog db resources or certain users' queries wo
uld
get higher priority than others.
Microsoft News - SQL Server wrote:
[QUOTE]
> Hi Hari,
> Thanks, we will be using the Index tune-up wizard in fact, but does any on
e
> know if a physical cpu usage limit can be set in any way apart from using
> indexes to maximize table access speed
> Thanks
> Nich
> "Hari Prasad" <hari_prasad_k@.hotmail.com> wrote in message
> news:OMVWVMP5DHA.360@.TK2MSFTNGP12.phx.gbl...
> in
> due
> the
Process throttling
We have an application accessing an SQL Database. The problem is that due to
a flaw in design, when queries are submitted we get 100% cpu usage on the
server. Is there any way to limit processing power for specific access?
Thanks
NichHi,
Try to identify the SQL's which is doing a table scan. Then based on the
where condition in the select statement
create useful indexes, this will definitely reduce the Disk reads, which in
turn reduces the CPU usage.
Thanks
Hari
MCDBA
"Microsoft News - SQL Server" <naquilina@.gfi.com> wrote in message
news:O5yHsJP5DHA.1040@.TK2MSFTNGP10.phx.gbl...
> Hi,
> We have an application accessing an SQL Database. The problem is that due
to
> a flaw in design, when queries are submitted we get 100% cpu usage on the
> server. Is there any way to limit processing power for specific access?
> Thanks
> Nich
>|||No.
Mike Kruchten
"Microsoft News - SQL Server" <naquilina@.gfi.com> wrote in message
news:O5yHsJP5DHA.1040@.TK2MSFTNGP10.phx.gbl...
> Hi,
> We have an application accessing an SQL Database. The problem is that due
to
> a flaw in design, when queries are submitted we get 100% cpu usage on the
> server. Is there any way to limit processing power for specific access?
> Thanks
> Nich
>|||Hi Hari,
Thanks, we will be using the Index tune-up wizard in fact, but does any one
know if a physical cpu usage limit can be set in any way apart from using
indexes to maximize table access speed
Thanks
Nich
"Hari Prasad" <hari_prasad_k@.hotmail.com> wrote in message
news:OMVWVMP5DHA.360@.TK2MSFTNGP12.phx.gbl...
> Hi,
> Try to identify the SQL's which is doing a table scan. Then based on the
> where condition in the select statement
> create useful indexes, this will definitely reduce the Disk reads, which
in
> turn reduces the CPU usage.
> Thanks
> Hari
> MCDBA
> "Microsoft News - SQL Server" <naquilina@.gfi.com> wrote in message
> news:O5yHsJP5DHA.1040@.TK2MSFTNGP10.phx.gbl...
> > Hi,
> >
> > We have an application accessing an SQL Database. The problem is that
due
> to
> > a flaw in design, when queries are submitted we get 100% cpu usage on
the
> > server. Is there any way to limit processing power for specific access?
> >
> > Thanks
> >
> > Nich
> >
> >
>|||if you have a multiprocessor machine, you could limit sql server to a subset of
your processors. that would leave the other processors free to do other stuff.
you could also try lowering the priority of the sqlserver process.
i think it would be nice if we could set priority levels for db user accounts
so that certain users couldn't hog db resources or certain users' queries would
get higher priority than others.
Microsoft News - SQL Server wrote:
> Hi Hari,
> Thanks, we will be using the Index tune-up wizard in fact, but does any one
> know if a physical cpu usage limit can be set in any way apart from using
> indexes to maximize table access speed
> Thanks
> Nich
> "Hari Prasad" <hari_prasad_k@.hotmail.com> wrote in message
> news:OMVWVMP5DHA.360@.TK2MSFTNGP12.phx.gbl...
> > Hi,
> >
> > Try to identify the SQL's which is doing a table scan. Then based on the
> > where condition in the select statement
> > create useful indexes, this will definitely reduce the Disk reads, which
> in
> > turn reduces the CPU usage.
> >
> > Thanks
> > Hari
> > MCDBA
> >
> > "Microsoft News - SQL Server" <naquilina@.gfi.com> wrote in message
> > news:O5yHsJP5DHA.1040@.TK2MSFTNGP10.phx.gbl...
> > > Hi,
> > >
> > > We have an application accessing an SQL Database. The problem is that
> due
> > to
> > > a flaw in design, when queries are submitted we get 100% cpu usage on
> the
> > > server. Is there any way to limit processing power for specific access?
> > >
> > > Thanks
> > >
> > > Nich
> > >
> > >
> >
> >