Forum Replies Created

Viewing 15 posts - 3,481 through 3,495 (of 6,486 total)

  • RE: Primary key vs NOT NULL unique key..

    Tomm Carr (4/29/2008)


    The problem with any candidate key is that someone can come in afterwards and "what if" it to death. You can take any attribute and keep expanding the...

  • RE: Scripts/CLR integration

    what error do you get?

    Assuming the objects are actually out there - that code looks like it would work....

  • RE: Aggregate counting - monthly totals

    Your initial (access) query failed because you changed the date around only in the select part of the query, not in the GROUP BY. you're still grouping by the...

  • RE: Aggregate counting - monthly totals

    add the count() aggregation to the query

    SELECT MONTH(DateShipped) as 'Month',

    YEAR(DateShipped) as 'Year',

    ...

  • RE: Report Server Temp DB size

    In addition to GSquared's point - be sure to make the ReportingServicesTempDB BIG. Just like giving tempDB a big playground, ReportingServicesTempDB is going to take up a substantial portion...

  • RE: Help with percentage calculation

    select sum(case when colSector ='02' then colMkt else 0 end)/sum(case when colSector ='TF' then colMkt else 0 end) as percentage

    from tblreturn

  • RE: Poor Performance with Views

    The reason why views aren't directly affected by sp_recompiled is that views aren't "compiled" in the traditional sense.

    Let's try to explain that further

    - "regular" views don't get their own...

  • RE: Find first non-numeric Charater in a string

    Assuming you mean "not 0 through 9" when you say non-numeric (i.e. not trying to figure out decimal points, signs, etc...), then

    substring(refnum,patindex('%[^1-9]%',Refnum),1)

    should do the trick.

  • RE: Set trigger firing order

    Q (4/29/2008)


    When I read the question the first time, I believe I read it as the author intended; however,

    Jeff's response made me think about a couple of possibilities. ...

  • RE: Options for data access forms?

    rbarryyoung (4/29/2008)


    RBYoung (4/29/2008)


    Yes, that approach requires either MOSS or Forms Services as a server. I beleive that you can alternatively install (& license) the InfoPath 2007 client on each...

  • RE: Column Level Synonym

    Michael Earl (4/29/2008)


    You could add a calculated field to a table to have two fields in the table with the same data and two different names. Or, you could...

  • RE: passing parameters to function w/ inner join

    1. are there any rows in ZIPUSA for zip code '45053'? if not - that will never return anything.

    2. if 1. does have data, then the function is messed...

  • RE: Extracting Rows from Delimited Strings

    n1pcman (4/29/2008)


    That worked Thanks All,

    Now one more missing peice...

    I copy good data into a new table then I run the parsing query which seperates my data the way I...

  • RE: passing parameters to function w/ inner join

    Gail (4/29/2008)


    matt the appoximation query from gsquared worked, the other one you gave me that calls the function still gives me no results with cross apply and only one zip...

  • RE: User Defined Function - Passing and Processing a Table

    Median is mathematically not an aggregate function per se - it's more of a windowing function (meaning - it's pulling out unchanged a speicific value in a sequence). You REALLY...

Viewing 15 posts - 3,481 through 3,495 (of 6,486 total)