Showing posts with label real. Show all posts
Showing posts with label real. Show all posts

Friday, March 30, 2012

Launch a URL from TSQL code [URGENT]

Hi Folks,

I am a SQL Server DBA but I am new to real TSQL programming. I have a question as explained below and any help (soon) will be appreciated.

I want to invoke a web page from within a TSQL code:
1) Is it possible to do this?
2) If yes, how?
3) Can I call a web page from command prompt?

Please help me on this - this is quite urgent for me.

Thanks a lot!

Astha1) I was able to invoke the webpage by typing this at the command prompt

c:\Program Files\Internet Explorer\iexplore.exe" http://www.google.com

however somehow the same not working when i tried it using xp_cmdshell ...

SQL gurus ... any ideas why ??|||Thanks Enigma :)

This really helped and was fine with what I needed. However, when running this from xp_cmdshell - I guess you should use with CMD .

Thanks again.

Astha

Monday, March 26, 2012

lastwaittype

Hi,
Can anyone please tell me what's the real purpose of
lastwaittype column in sysprocesses if any?
--
Thanks,
OskarOskar,
Lastwaittype is the same as waittype if waittime = 0. If waittime > 0,
lastwaittype is the waittype causing the wait. In other words, lastwaittype
is the resource type we are waiting on, if we are waiting.
Jon Jahren
"Oskar" <anonymous@.discussions.microsoft.com> wrote in message
news:596b01c4cb03$ec7641d0$a401280a@.phx.gbl...
> Hi,
> Can anyone please tell me what's the real purpose of
> lastwaittype column in sysprocesses if any?
> --
> Thanks,
> Oskar
>|||Thanks Jon! That was very clear.
Seems like it is very difficult with some types of
waittypes to see the waittime larger than a few
miliseconds. So apparently you have to rely on lastwaittype.
>--Original Message--
>Oskar,
>Lastwaittype is the same as waittype if waittime = 0. If
waittime > 0,
>lastwaittype is the waittype causing the wait. In other
words, lastwaittype
>is the resource type we are waiting on, if we are waiting.
>Jon Jahren
>"Oskar" <anonymous@.discussions.microsoft.com> wrote in message
>news:596b01c4cb03$ec7641d0$a401280a@.phx.gbl...
>> Hi,
>> Can anyone please tell me what's the real purpose of
>> lastwaittype column in sysprocesses if any?
>> --
>> Thanks,
>> Oskar
>
>.
>|||You can get better aggregations of waittime using DBCC SQLPERF(WAITSTATS).
Tom Davidson has a nice article on this in SQL Server Magazine.
--
Brian Moran
Principal Mentor
Solid Quality Learning
SQL Server MVP
http://www.solidqualitylearning.com
"Oskar" <anonymous@.discussions.microsoft.com> wrote in message
news:0c7f01c4cb22$c40f7350$a501280a@.phx.gbl...
> Thanks Jon! That was very clear.
> Seems like it is very difficult with some types of
> waittypes to see the waittime larger than a few
> miliseconds. So apparently you have to rely on lastwaittype.
> >--Original Message--
> >Oskar,
> >Lastwaittype is the same as waittype if waittime = 0. If
> waittime > 0,
> >lastwaittype is the waittype causing the wait. In other
> words, lastwaittype
> >is the resource type we are waiting on, if we are waiting.
> >
> >Jon Jahren
> >
> >"Oskar" <anonymous@.discussions.microsoft.com> wrote in message
> >news:596b01c4cb03$ec7641d0$a401280a@.phx.gbl...
> >> Hi,
> >>
> >> Can anyone please tell me what's the real purpose of
> >> lastwaittype column in sysprocesses if any?
> >>
> >> --
> >> Thanks,
> >> Oskar
> >>
> >
> >
> >.
> >

lastwaittype

Hi,
Can anyone please tell me what's the real purpose of
lastwaittype column in sysprocesses if any?
Thanks,
OskarOskar,
Lastwaittype is the same as waittype if waittime = 0. If waittime > 0,
lastwaittype is the waittype causing the wait. In other words, lastwaittype
is the resource type we are waiting on, if we are waiting.
Jon Jahren
"Oskar" <anonymous@.discussions.microsoft.com> wrote in message
news:596b01c4cb03$ec7641d0$a401280a@.phx.gbl...
> Hi,
> Can anyone please tell me what's the real purpose of
> lastwaittype column in sysprocesses if any?
> --
> Thanks,
> Oskar
>|||Thanks Jon! That was very clear.
Seems like it is very difficult with some types of
waittypes to see the waittime larger than a few
miliseconds. So apparently you have to rely on lastwaittype.

>--Original Message--
>Oskar,
>Lastwaittype is the same as waittype if waittime = 0. If
waittime > 0,
>lastwaittype is the waittype causing the wait. In other
words, lastwaittype
>is the resource type we are waiting on, if we are waiting.
>Jon Jahren
>"Oskar" <anonymous@.discussions.microsoft.com> wrote in message
>news:596b01c4cb03$ec7641d0$a401280a@.phx.gbl...
>
>.
>|||You can get better aggregations of waittime using DBCC SQLPERF(WAITSTATS).
Tom Davidson has a nice article on this in SQL Server Magazine.
Brian Moran
Principal Mentor
Solid Quality Learning
SQL Server MVP
http://www.solidqualitylearning.com
"Oskar" <anonymous@.discussions.microsoft.com> wrote in message
news:0c7f01c4cb22$c40f7350$a501280a@.phx.gbl...[vbcol=seagreen]
> Thanks Jon! That was very clear.
> Seems like it is very difficult with some types of
> waittypes to see the waittime larger than a few
> miliseconds. So apparently you have to rely on lastwaittype.
>
> waittime > 0,
> words, lastwaittype

lastwaittype

Hi,
Can anyone please tell me what's the real purpose of
lastwaittype column in sysprocesses if any?
Thanks,
Oskar
Oskar,
Lastwaittype is the same as waittype if waittime = 0. If waittime > 0,
lastwaittype is the waittype causing the wait. In other words, lastwaittype
is the resource type we are waiting on, if we are waiting.
Jon Jahren
"Oskar" <anonymous@.discussions.microsoft.com> wrote in message
news:596b01c4cb03$ec7641d0$a401280a@.phx.gbl...
> Hi,
> Can anyone please tell me what's the real purpose of
> lastwaittype column in sysprocesses if any?
> --
> Thanks,
> Oskar
>
|||Thanks Jon! That was very clear.
Seems like it is very difficult with some types of
waittypes to see the waittime larger than a few
miliseconds. So apparently you have to rely on lastwaittype.

>--Original Message--
>Oskar,
>Lastwaittype is the same as waittype if waittime = 0. If
waittime > 0,
>lastwaittype is the waittype causing the wait. In other
words, lastwaittype
>is the resource type we are waiting on, if we are waiting.
>Jon Jahren
>"Oskar" <anonymous@.discussions.microsoft.com> wrote in message
>news:596b01c4cb03$ec7641d0$a401280a@.phx.gbl...
>
>.
>
|||You can get better aggregations of waittime using DBCC SQLPERF(WAITSTATS).
Tom Davidson has a nice article on this in SQL Server Magazine.
Brian Moran
Principal Mentor
Solid Quality Learning
SQL Server MVP
http://www.solidqualitylearning.com
"Oskar" <anonymous@.discussions.microsoft.com> wrote in message
news:0c7f01c4cb22$c40f7350$a501280a@.phx.gbl...[vbcol=seagreen]
> Thanks Jon! That was very clear.
> Seems like it is very difficult with some types of
> waittypes to see the waittime larger than a few
> miliseconds. So apparently you have to rely on lastwaittype.
> waittime > 0,
> words, lastwaittype