Viewing 15 posts - 196 through 210 (of 253 total)
Thanks both of you for helping. What I was not understanding was the part where the first charindex is subtracted from the second.
I'll definitely be saving this example to...
November 10, 2010 at 2:24 pm
I've worked on this for hours and am completely stumped.
Thought that this would work:
declare @text varchar(250)
set @text = 'Login succeeded for user ''domain\user''. Connection made using Windows authentication. [CLIENT: xxx.xxx.xxx.xxx]'
select...
November 10, 2010 at 1:40 pm
nigelrivett (11/9/2010)
select substring(strtloc+1, charindex('''',str,strtloc+1) - strtloc - 1)from
(select str, strtloc=charindex('''',str) from tbl) a
Thanks for responding. I'm trying to impliment this but have not successed yet.
What I think...
November 10, 2010 at 12:46 pm
Thanks for responding Celko.
I was trying to avoid typing out and possibly misspelling SQL Server, Oracle, MySQL over and over again by using the foreign key approach. In this case,...
October 28, 2010 at 1:41 pm
When I have a cascading parameter, I understand that when the first is selected, the query must run to generate the list for the second parameter. Does it have...
October 28, 2010 at 12:21 pm
Thank you. I'll take a look.
Howard
October 28, 2010 at 11:56 am
This worked. Thanks a lot. There are now two drop down lists to set the parameters in SSRS but it seems to be working. Now I have to find...
October 27, 2010 at 3:19 pm
Thanks, I'm eager to try it. That scenario would be perfect.
October 27, 2010 at 2:13 pm
Thanks for responding. Your example is very good.
I should explain a little better. This query will go into SSRS so I think I am limited to a single variable which...
October 26, 2010 at 7:11 pm
Marcy, I think it is close to working.
Using your example, I tried to do it this way:
declare @Version int
set @Version = '10000'
SELECT DP.Name, DV.Version
FROM DatabaseProduct DP
JOIN DatabaseVersion DV
ON DP.DatabaseProductID...
October 26, 2010 at 5:55 pm
Thanks Marcy, I'll give this a try.
You are right, the datatypes are int so 'ALLSQLSERVER' will not work. I was doing the query in my head and didn't think...
October 26, 2010 at 5:43 pm
This is working now but I would like to make the unassigned slice white/transparent. The color pallet is bright pastel.
I thought of something like this as an expression but can't...
October 11, 2010 at 5:38 pm
Michael,
This worked perfectly. The technique that you used to create the join is something that I will no doubt need very regularly.
It really does make sense now...
October 11, 2010 at 3:46 pm
I got this working by creating a union query that adds a row that is 100 - sum(utilization). Not sure if there is a better way.
Thanks for your suggestion Doug.
October 11, 2010 at 11:10 am
Thank you Doug. That is what I would like to do. I may need help setting it up.
Howard
October 11, 2010 at 9:05 am
Viewing 15 posts - 196 through 210 (of 253 total)