Viewing 15 posts - 7,666 through 7,680 (of 13,460 total)
here's the data in consumable format for other posters; I'm still trying to get my head around the requirements:
With MySampleData
(AgentID,State,StartTime,EndTime,Duration)
AS (
SELECT '1234','NotReady','04-05-2011 08:00:00','04-05-2011 08:00:05','5' UNION ALL
SELECT '1234','Ready','04-05-2011...
May 5, 2011 at 7:15 am
John I'm not saying this is the right way to do it, this just happens to be how I thought it might work;
how about creating a table CustomerAlias, and it...
May 5, 2011 at 7:01 am
yeah it requires, at a minimum, a new query window if you add a new keyboard shortcut; restarting is more than you needed, but it works too!

May 5, 2011 at 6:56 am
so does this give you the results you were looking for?
SELECT
TheDate,
USERS_COUNT,
CONNECTION_COUNT
FROM
(SELECT
DATEADD(dd, DATEDIFF(dd,0,RUN_TIME), 0) As TheDate,
...
May 5, 2011 at 6:42 am
oskargunn my apologies; i pasted the wrong script from my collection; I've edited the example above, which should do what you wanted for your example.
May 5, 2011 at 6:39 am
ok, it's possible in HTML, but how to inject it into a report is the part i cannot help with.
you can google "CSS highlight TR" for code examples, but essentially,...
May 4, 2011 at 3:24 pm
Mad-Dog (5/4/2011)
I've a table with those columns (datetime,int,int) in this table i insert every hour a record of getdate() and two int value.
my question is how i can write the...
May 4, 2011 at 12:59 pm
yeah, whatever you create, you have the right to destroy..that's what can be scary about granting db_owner...they can drop the database with that right/role.
so with ddl_admin, if you create...
May 4, 2011 at 11:06 am
Jason Tontz (5/4/2011)
I need to create a role that allows members to create tables in the database. I want to nest db_datareader, db_datawriter as well. This will allow db...
May 4, 2011 at 10:59 am
yes, absolutely correct. roles are cumulative, so if i belong to two roles, i get access to whatever was granted to each role.
grants are cumulative, and deny's/revokes top dog: if...
May 4, 2011 at 10:56 am
did you find out what it was? was it a job or a script or application that was running?
May 4, 2011 at 10:48 am
SKYBVI (5/4/2011)
From since then, I am getting errors in sql logs that
Login failed for user 'sa' ; client local...
May 4, 2011 at 8:10 am
per login = possible.
per database = not possible.
you can restrict the number of connections for a login, but not which databases they touch AFTER they complete the LOGON process; the...
May 4, 2011 at 5:08 am
you have to use the AND for subsequent AND join criteria:
SELECT *
FROM EMPLOYEE
INNER JOIN GEOGRAPHY
ON EMPLOYEE.CITYTBLKEY = GEOGRAPHY.CITYTBLKEY
AND EMPLOYEE.COUNTYTBLKEY= GEOGRAPHY.COUNTYTBLKEY
AND EMPLOYEE.STATETBLKEY= GEOGRAPHY.STATETBLKEY
May 3, 2011 at 1:05 pm
Viewing 15 posts - 7,666 through 7,680 (of 13,460 total)