Viewing 15 posts - 1,501 through 1,515 (of 5,394 total)
Sqlism (8/7/2012)
Can a local system account(not AD account) pass windows authentication for logging into SQL Server?
If the account is on the same machine, yes.
If it's local system of a remote...
August 8, 2012 at 2:13 am
Looks like (bad) parameter sniffing in action.
Grant Fritchey wrote an excellent chapter of SQL Server MVP Deep Dives Vol. 2[/url] all about parameter sniffing and I strongly suggest buying this...
August 8, 2012 at 2:10 am
I see no attachment. Am I missing something?
August 8, 2012 at 1:54 am
sql-noob (8/8/2012)
i am sure that will work, but sys.dm_exec_sessions is not their in sql server 2000 !
In SQL 2000 you could use sysprocesses, which returns almost the same information.
August 8, 2012 at 1:53 am
Lynn Pettis (8/7/2012)
Gianluca Sartori (8/7/2012)
Dan Guzman has a couple of nice posts on the subject:
http://weblogs.sqlteam.com/DANG/archive/2008/08/30/Sliding-Window-Table-Partitioning.aspx
http://weblogs.sqlteam.com/dang/archive/2008/09.aspx
Setting up the partition scheme and rebuilding your indexes...
August 8, 2012 at 1:50 am
In SQL2008 you probably want to use sys.dm_exec_sessions and identify sessions that have been idle for the last 30 minutes:
DECLARE @idle_timeout int = 30; -- minutes
SELECT session_id
,status
,login_time
,host_name
,program_name
,host_process_id
,original_login_name
FROM sys.dm_exec_sessions
WHERE status...
August 7, 2012 at 8:52 am
You can order by the datetime column, even if you don't include it in the select list.
August 7, 2012 at 7:59 am
Not very different in SQL 2008.
Is there any chance to let the application do that?
August 7, 2012 at 7:57 am
Not sure what you mean.
The logon trigger is executed as part of the log on process. The session is established before the trigger runs, but the session is not available...
August 7, 2012 at 7:51 am
That's how I would do it.
Even if SQL Server 2000 had logon triggers, it would not help, as you would have to check for existing sessions, not for new ones.
August 7, 2012 at 7:39 am
If you just want to track database size, schedule a job to capture the information and store it into a table:
CREATE TABLE SizeHistory (
CaptureDate datetime,
...
August 7, 2012 at 7:37 am
Not easy to do in SQL 2000.
However, let me ask, why would you ever want to do this?
August 7, 2012 at 7:29 am
A sliding window partitioning strategy could help here.
Dan Guzman has a couple of nice posts on the subject:
http://weblogs.sqlteam.com/DANG/archive/2008/08/30/Sliding-Window-Table-Partitioning.aspx
http://weblogs.sqlteam.com/dang/archive/2008/09.aspx
Setting up the partition scheme and rebuilding your indexes on the partition scheme...
August 7, 2012 at 7:27 am
Very interesting Dwain!
A very nice read.
Thanks for sharing.
August 2, 2012 at 9:50 am
jcrawf02 (7/27/2012)
Gianluca Sartori (7/27/2012)
Jeff Moden (7/27/2012)
SQL Kiwi (7/27/2012)
Jeff Moden (7/27/2012)
I had an ephipany that just hit me like a ton of bricks....I see! Well that explains it
...
Man! ...
July 27, 2012 at 10:47 am
Viewing 15 posts - 1,501 through 1,515 (of 5,394 total)