Viewing 15 posts - 31 through 45 (of 210 total)
Roy, nary and tnk,
My question remains the same. New user with this database role would be able to see through my dmvs... Could you read my question once again...
-Lucky
August 8, 2010 at 2:20 pm
SELECT TOP 1*
FROM
(SELECT FirstName, Lastname, Dates As LatestDate
FROM computert1
INNER JOIN computert2
ON computert1.id = computert2.id)tmp
ORDER BY tmp.LatestDate desc
August 8, 2010 at 1:45 pm
Without variable
SELECT FirstName, Lastname, Dates As LatestDate
FROM computert1
INNER JOIN computert2
ON computert1.id = computert2.id
WHERE dates = (SELECT MAX(dates) FROM computert2)
-Lucky
August 8, 2010 at 1:42 pm
DECLARE @Date DATETIME
SELECT @Date = MAX(dates) FROM computert2
SELECT FirstName, Lastname, Dates As LatestDate
FROM computert1
INNER JOIN computert2
ON computert1.id = computert2.id
WHERE dates = @Date
-Lucky
August 8, 2010 at 1:39 pm
Ur following query is incorrect...
select empdate, count(id),category from table
group by category order by empdate
Pivot is a correct option to get this kind of result
August 6, 2010 at 11:46 pm
Sql server doesn't support nano seconds as far as I know. You can to use VARCHAR columns to get this info. But as soon as you CONVERT them in date...
August 6, 2010 at 11:34 pm
You can't take the backup of DB which is in the restoring state. Create a job which takes the backup of only principal DB. This can be found from database_mirroring...
August 6, 2010 at 11:09 pm
Roy,nary
HERE IS THE PROBLEM!!!
This kind of user would be able to see your all the system views though. Is there anyway to bar him from seeing system views as well.
(I...
August 6, 2010 at 10:30 pm
INDUCEDTRANSFORMFAILUREONERROR itself says that pdf can't be imported.
July 22, 2010 at 12:34 am
Even though DATETIME saves the space in comparison to INT, this should not be the only reason to save the data in DATETIME and not in INT. I would focus...
June 25, 2010 at 2:56 pm
Yes this worked Michael. But i want to do the same with Google Software Updater (gusvc). This didn't get started :(. can anyone hellp out here?
PS C:\Windows\system32> Get-Service | Where-Object...
June 20, 2010 at 11:20 pm
No Kingston. This didn't work. Even when I tried as follows:
and sk.level1name like LTRIM(RTRIM(@ucf)) +'%' :(This didn't work.
May 28, 2010 at 5:29 am
Practically you should not have more than 5-10 nonclustered indexes per table. This would really degrade the performance if ur database is in OLTP environment. OLAP is fine having more...
May 26, 2010 at 4:43 am
Viewing 15 posts - 31 through 45 (of 210 total)