Viewing 15 posts - 6,406 through 6,420 (of 7,185 total)
Robert
Please will you provide some DDL, sample data and expected results, since it's hard to see what you're trying to do.
Adding in that WHERE clause turns your OUTER JOIN into...
May 22, 2007 at 4:08 am
Yes, and he hasn't even had the courtesy to say thank you. No doubt you've already added him to your mental list of users that you won't bother helping again......
May 17, 2007 at 8:44 am
Krishna
I notice you still haven't posted the (exact) error message. However, from what you have said, I think I can help to point you in the right direction: you should...
May 17, 2007 at 4:02 am
Krishna
"Some prob" is too vague. And I don't see "curren_area" anywhere in the query. If there is an error message, please post it. If the query is not returning the...
May 17, 2007 at 2:09 am
Krishna
Care to tell us what the problems are?
John
May 17, 2007 at 1:25 am
Jorge
I think you need to study the SQL Server 2005 security model - there's plenty of material in Books Online. Good luck!
Also, I would try out sqldiag, which is part...
May 16, 2007 at 9:19 am
Jorge
Presumably this is the output of some health-checking tool that already exists? Does sqldiag.exe provide this?
John
May 16, 2007 at 8:51 am
Something like this?
SELECT Word FROM #RestrictedWords
WHERE CHARINDEX(Word, @TestWord) > 0
John
May 16, 2007 at 8:41 am
Jorge
I don't understand exactly what you require, then. Please will you give an example of how your report should look.
Thanks
John
May 16, 2007 at 8:27 am
Jorge
If you're using SQL Server 2000, use the code below. If you're on SQL Server 2005, use the sys.database_permissions view instead - you don't need a temp table. Full details...
May 16, 2007 at 8:02 am
Krishna
OK, that's different from what you gave before, but at least I understand it! Now, please will you confirm what version of SQL Server you're using? And WHY does your...
May 15, 2007 at 9:23 am
Mark
Is it possible that the SQL Server service has been stopped and started since the connection was made to the database?
John
May 15, 2007 at 9:09 am
Krishna
I think I might understand what you want... for each invoice, you want to populate the days_in_area column with the number of different days that invoice has appeared on, but...
May 15, 2007 at 9:08 am
Mark
Yes, a similar thing happens with your original sample data as well. Now we just need to see what happens when you get hold of all the extra data. What indexes do you...
May 15, 2007 at 8:35 am
Mark
OK, please let us know when you've done that. My inkling may have been wrong, since the query optimizer may not totally materialise the CTE anyway. If you SET STATISTICS...
May 15, 2007 at 7:40 am
Viewing 15 posts - 6,406 through 6,420 (of 7,185 total)