Viewing 15 posts - 16 through 30 (of 31 total)
I figured it out
here is the sql u have to do just if some 1 has this kind of a question
select name,disposition,sum(TCDatabase1), sum(TCDatabase2),
sum(TCDatabase3) , sum(TCDatabase......
from
(
SELECT LocalUserId as [name],disposition,
COUNT(*) AS...
April 3, 2009 at 2:34 pm
This is what i have right now but it is not working fully
example data is Date is 11/19/2007
id=1
starting_time= 11/19/2007 3:00:00 AM
ending_time = 11/19/2007 4:00:00 AM
DECLARE @STARTing_time DATETIME
DECLARE...
November 16, 2007 at 12:37 pm
do u have an example code for that. I am k with sql no that good.
Thanks
November 15, 2007 at 3:42 pm
it is not giving the right results. IN my frist proc i pass the username to get what the user have access to what servers. He can have access to...
October 10, 2007 at 11:07 am
Thanks for your help. I had made the lookup table how to use it was the problem.
One more question if i want to show only the the abbrev for the...
July 25, 2007 at 3:21 pm
Thanks for your help. used it in the where clause.
February 1, 2007 at 4:22 pm
Actually there are 11 whens in the statement. i get an error Case expressions may only be nested to level 10.
Here is the Query. I have hardcodded some stuff....
November 16, 2006 at 9:44 am
I had to change my query. i used a subquery. But still i am baffeled why it was not working. i am using a link server to update probably thats why. It woked...
October 24, 2006 at 11:37 am
When i run this query i get only 1 row. The user table has three rows for for eachid. The first rowid is always 1 the second rowid is always...
October 24, 2006 at 9:43 am
Thanks i got till here. When i run select @userid, @username in my stored proc i get 3 records example
userd=1 username - king@yahoo.com
userid=2 username -= king2@yahoo.com
Userid=3 username =
October 13, 2006 at 4:22 pm
This is the SQl i am geting the domian from an email address. This sql is only used to get the domain from an email address
Declare @usersemail varchar(50)
SELECT @usersemail=(SUBSTRING(loc_bus_email,NULLIF(CHARINDEX('@',...
October 13, 2006 at 12:18 pm
Thanks
Have a nic e day.
August 29, 2006 at 12:04 pm
Viewing 15 posts - 16 through 30 (of 31 total)