Forum Replies Created

Viewing 15 posts - 19,261 through 19,275 (of 26,490 total)

  • RE: Recursive Querry to get all Childs

    Hope this gets you started in the right direction. All I did was mimic the sample code from BOL (Books Online).

    create table #t1 (id int,pid int,s varchar(100))

    insert into #t1...

  • RE: NewBie Help - Group by

    To get help faster and get working tested code, please read the first article I reference in my signature block regarding asking for assistance.

    To really help you, we need the...

  • RE: SQL w/ MAX function does not work

    Why not change this:

    AND (VV.Fund_Valuation_Date = (SELECT MAX (Fund_Valuation_Date)

    FROM dbo.Fund_Valuation VVV

    WHERE VVV.Fund_Valuation_Date < '2006-09-01'

    AND VVV.Fund_Number = V.Fund_Number

    AND VVV.Class_Type_Abbr_Name = V.Class_Type_Abbr_Name

    AND VVV.Class_Type_Category = V.Class_Type_Category))

    to this:

    AND VV.Fund_Valuation_Date = (SELECT MAX (Fund_Valuation_Date)

    FROM dbo.Fund_Valuation...

  • RE: Script Task to Configure FTP Connection

    Actually, I may have figured it out. Took a lot of digging and guess work. Preliminary testing looks good, but it is late, and I really don't feel...

  • RE: PIVOT problem : produces multiple lines

    drew.allen (8/11/2009)


    alef (8/11/2009)


    I've tried the solution of SSCrazy Eights and this solution is perfect.

    Is there an explanation why your solution is working and mine not?

    I think that this line from...

  • RE: SQLServerCentral Editorial Policy - Article Publication

    Fal (8/11/2009)


    ... some have already been done and don’t need doing again, ...

    S.

    I have to disagree with this statement. Just because a topic has already been covered in an...

  • RE: Twenty tips to write a good stored procedure

    Not all posts are related to the article itself. That is one of the benefits of this community and where you actually learn new things or ideas.

  • RE: converting String to Number

    Have you tried casting both sides to INT? Can you add two columns to the tables, computed columns that convert the values to INT and then index the computed...

  • RE: SQLServerCentral Editorial Policy - Article Publication

    timothyawiseman (8/11/2009)


    Steve Jones - Editor (8/11/2009)


    What I would be happy to do is publish a list of "reviewers" on the writer's page and allow authors the ability to private message...

  • RE: unwanted Order By side effect

    Also, the following works:

    declare @ EnableStr varchar(max);

    select

    @ EnableStr = (select 'alter login ' + [name] + ' enable;'

    ...

  • RE: unwanted Order By side effect

    I'd have to say it isn't a bug as sorting by ordinal works fine with a normal query. Probably has to do more with the concatination process.

  • RE: SQLServerCentral Editorial Policy - Article Publication

    jacroberts (8/11/2009)


    Kit G (8/11/2009)


    jacroberts (8/11/2009)


    I feel that's fine as a policy but there is no warning of this within the articles, they can look like they've been reviewed and properly...

  • RE: unwanted Order By side effect

    But if you change the ORDINAL (1) to [name] it works.

    You really should start using the column name(s) in your order by clauses.

  • RE: PIVOT problem : produces multiple lines

    Like Jeff said, your code was wrong. Other than that, I have no explaination. All I did was build the query in pieces following the sample code in...

  • RE: SQLServerCentral Editorial Policy - Article Publication

    I have also heard this: "You learn more from failure than success."

    If you never fail, what do you learn? It's the mistakes one makes that you learn from, not...

Viewing 15 posts - 19,261 through 19,275 (of 26,490 total)