Viewing 15 posts - 361 through 375 (of 427 total)
select stuff((
select N', ' + cols.COLUMN_NAME as [text()]
from INFORMATION_SCHEMA.COLUMNS cols
Where cols.TABLE_NAME=...
August 8, 2011 at 8:53 am
I know, since they were created over 2 years ago, that I would probably implement parts of the scripts differently now (f.e. converting the password binaries into hex can probably...
August 8, 2011 at 8:38 am
I know, this was the only one I knew for sure where it was online. 🙂
In the attachment is the complete set of scripts.
- logins,
- server permissions
- server role members
-...
August 5, 2011 at 6:31 am
I had overlooked the contest comment (or better: I incorrectly interpreted the implications). Luckily I wasn't too complete in my answer :-D. Then again, all information you may need is...
August 5, 2011 at 6:20 am
Back in 2009 I created a set of scripts to generate T-SQL statements for all server and database principals and their rights from an existing server/database. The generated statements can...
August 5, 2011 at 12:06 am
You've got a cross join in your cte.
Change the recursive part like this and you're done:
SELECT m.ID,
DATEADD(dd,1,c.TheDATE),
...
August 4, 2011 at 3:41 pm
Ah, then that's a different problem than I assumed it was: I was thinking you wanted the "greater than" symbol in your output, but found that it got filtered out...
August 4, 2011 at 1:24 pm
The > is most likely exported by SQL server. It's probably one of the layers above that which filters the text from your output. You haven't however given us any...
August 4, 2011 at 12:33 pm
Ok, a cross-tab implementation. It is faster and enables more possibilities than the Pivot implementation. Enough reasons to choose the cross-tab version. Even though I personally don't share the ideas...
August 4, 2011 at 11:52 am
You're looking for the "pivot" operator:
SELECT t.*
,x.*
FROM PS_TestForOnline t
CROSS APPLY (
select pvt.[1]
,pvt.[2]
...
August 4, 2011 at 8:11 am
Hi SwePeso,
Unless something drastic happens, this will be my last posting in this topic. I found and fixed a bug in the precedence detection and to my surprise your...
August 4, 2011 at 5:04 am
Thanks a lot Peso, I'll have a look at your "pattern-approach". My initial impression though is that it will not work when we encounter other expressions like for example a.col1...
August 4, 2011 at 2:18 am
I am not completely sure yet that I understand you correctly. Are you saying that there is another algorithm, producing slightly different RPN expressions -but still valid RPN-, which evaluate...
August 3, 2011 at 10:31 pm
Hi SwePeso,
Thanks for the response, but I don't yet see how that helps me?
I think it doesn't help me because your RPN representation is not exactly the same expression any...
August 3, 2011 at 5:41 pm
Searching for rows for which more than one with the same value exists by using a "having count() > 1" is going to be slower the bigger your data set...
July 24, 2011 at 1:06 am
Viewing 15 posts - 361 through 375 (of 427 total)