Forum Replies Created

Viewing 15 posts - 5,161 through 5,175 (of 6,486 total)

  • RE: data dictionary tool

    I saw your questions last night, and...I washed my own mouth out with soap. Table commenting has been a weakness here (actually - that's a misnomer, because that would...

  • RE: Member Function Concept.

    Unless someone is trying to teach that god-awful four-letter instruction I will not repeat here.

    Why someone would ever bring that directive back in, and into SQL Server...

  • RE: help-how to generate date backward from end to start

    Cool - that's great Midan. I just didn't want to get YOU in trouble by giving you more than you can "handle". I've been handed those scenarios (having...

  • RE: How do I increment a DB id

    a few quick things:

    - first one is - it doesn't have to be RBAR, since it's the same virtual table we've all come to know and love from...

  • RE: data dictionary tool

    Right - there are lots of tools/resources to pull in the basic info/metadata. What doesn't make it in there is the WHAT/WHY/HOW (WHAT should be in the field, WHY...

  • RE: help-how to generate date backward from end to start

    Jeff Moden (1/17/2008)


    I wondered when you were going to get to that point...

    Ahem - yup. It's that fine line where you want to help someone learn how to swim,...

  • RE: help-how to generate date backward from end to start

    Midan -

    No disrespect intended - but I think you ought to take a crack at it. All of the pieces are right there. The reason being -...

  • RE: How to count how many columns in a row are NULL?

    Try this trick on:

    select count(*)-count(col1) as Col1Blank,

    count(*)-count(col2) as Col2Blank,

    count(*)-count(col3) as Col3Blank,

    ...

  • RE: Delay in job completion

    I've seen something like it as well when running stuff in SSMS. The time seems to tick well past what it tells me it took to run. So...

  • RE: Can you get an index scan with an optional parameter?

    One issue you're going to have with trying to test for seeks IS the select * (unfortunately:)). It's going to skew your results away from seeks. Also -...

  • RE: Subquery syntax?

    Sorry - I've been getting acquainted with them as well.

    Look up Common Table Expressions in BOL to get a primer on how they work. Not bad for some...

  • RE: Subquery syntax?

    This kind of CTE would do the trick:

    With myCTE (nameID, name, address, etc,RN) AS

    (

    Select MT.nameid,

    ...

  • RE: Specify Owner of object to Improve performance?

    GSquared (1/17/2008)


    we7313 (1/15/2008)


    select dbo.table1.col1, dbo.table1.col2, dbo.table2.col1

    from dbo.table1

    inner join dbo.table2

    on dbo.table1.col3 = dbo.table2.col2

    where dbo.table1.col4 = 'widget'

    Is serious overkill with no performance gain at all over:

    And (like...

  • RE: Specify Owner of object to Improve performance?

    colin Leversuch-Roberts (1/17/2008)


    2 part naming in select lists has nothing to do with this. Issues specifically arise when stored procs are called without an owner e.g. exec myproc...

  • RE: Problem with Dynamic SQL

    I usually have to declare and pass in a variable to get something back

    so - this works for me:

    DECLARE @sql nvarchar(1000), @OutputDef nvarchar(1000),@val int

    SET @sql = 'SELECT @val = count...

Viewing 15 posts - 5,161 through 5,175 (of 6,486 total)