Viewing 15 posts - 916 through 930 (of 1,193 total)
Hi Ian,
As far as I can tell, you'll need something like a SUM with a CASE, like this:
SELECT ColumnA,
SUM(CASE WHEN ColumnB BETWEEN StartDate AND EndDate THEN 1 ELSE 0 END)
FROM...
July 23, 2012 at 9:14 am
Lynn Pettis (7/19/2012)
Koen Verbeeck (7/19/2012)
Don't get me wrong, I love to read (read the whole...
July 20, 2012 at 9:38 am
Phil Parkin (7/20/2012)
Gazareth (7/20/2012)
anthony.green (7/20/2012)
Good spot Phil. I shall ammend.Amend? :hehe:
i assumed that was deliberate!
Me too. Mostly.
Muphry's Law always good for a laugh, whether deliberate or not 🙂
July 20, 2012 at 9:24 am
Hi mate,
2GB is definitely low!
As this is 64-bit Windows & SQL you can ignore AWE.
With 8GB I'd be looking at setting max memory to 5-6GB if there's no other applications...
July 20, 2012 at 9:15 am
Yep, not exists would capture new rows based on a suitable identifier, but won't get updates to extant rows.
Unless that's all you need 🙂
July 20, 2012 at 9:07 am
anthony.green (7/20/2012)
Good spot Phil. I shall ammend.
Amend? :hehe:
July 20, 2012 at 9:05 am
Interesting, I didn't know you could call functions using EXECUTE!
July 20, 2012 at 5:26 am
Koen Verbeeck (7/20/2012)
I like the intent of the question, but alas poorly executed.
Agreed.
July 20, 2012 at 2:58 am
I looked into this a few months ago, and I remember I found that you can't reduce licensing costs this way.
Will try and find some more info for you to...
July 19, 2012 at 3:37 am
Good question. Interesting point made by some that you can, if you delete the other snapshots.
July 19, 2012 at 2:38 am
Hi,
Is TCP/IP enabled for the named instance?
Check in SQL Server Configuration Manager -> SQL Server Network Configuration -> Protocols for instancename
Cheers
July 18, 2012 at 10:22 am
Thanks, hope it helps. Agree it's a strange one!
July 18, 2012 at 6:43 am
Hi, more a workaround than a solution, but could you change the query to union the two selects together?
Should help performance while you're looking for something more permanent.
When you said...
July 18, 2012 at 4:00 am
Yes, you'll need a user/group in the other database and select permission on any tables that the view references.
You only need select on the view when all tables are in...
July 17, 2012 at 10:39 am
Best case scenario, if you know the table name & column names & it's an exact match on the string, it's a fairly simple query:
select *
from table
where 'CDT' in (column1,...
July 17, 2012 at 10:10 am
Viewing 15 posts - 916 through 930 (of 1,193 total)