Forum Replies Created

Viewing 15 posts - 2,671 through 2,685 (of 3,544 total)

  • RE: Performing calculations

    Few questions

    Do you want the sums (revenue, expenses etc) as well as calculated totals?

    Is there a fixed number (and name) of sums and totals?

    Do you want the results in rows or columns...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: catch 22 query

    Sorry, errors in my post, should be

    update a

    set a.b = ah.b,

    a.seq = m.maxseq,

    a.c = ah.c,

    a.d = ah.d

    from tablea a

    inner join (select id, max([seq]) as...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: catch 22 query

    How about this

    (Removed at posters request)

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: catch 22 query

    Difficult to answer due to awkward table names but is this what your're after

    update a

    set a.a = b.a, a.b = b.b, a.c = b.c

    from (select max(seq) as [seq]...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: osql security best practices

    As long as the account can login into sql and as you stated has execute permissions on the proc then it should work. The best way is to try it...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: osql security best practices

    Use trusted whenever possible, most secure.

    Never use sa (even if password hidden), if you have to use sql login create specific login with minimum access.

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Where is it best to place "where conditions" in the join or inthe final where statement

    quoteis a left outer join faster than NOT EXISTS then ?

    Generally yes but not always. I depends on...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Crosstab aggregate error, A Stumper!

    I think it is a bug (sorry feature ) in SQL7. It works OK in  SQL2K.

    The only way I found to get it to...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: How to align selection of numbers?

    Paul is correct, this sort of formatting is normally done in the user app.

    However if you want to right align with leading spaces you can use

    SELECT STR(12,10,0)

    which will produce a...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: GRANT ALL

    If you want to do it for all tables in a database you could use

    sp_msforeachtable

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: GRANT ALL

    GRANT ALL TO PUBLIC

    grants statement access to public, where statement is CREATE DATABASE,CREATE DEFAULT etc. So you have allowed a member of public to create databases !

    To grant at...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Linked Access MDB Question

    The only time I have seen it is when attempting INSERT / UPDATE via OPENQUERY

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Help with Text Field "concatenation"

    Here's a sample that may help

    create table results ([ID] int, result text)

    create table comments ([ID] int, CID int, CDate datetime, comment text)

    insert into results values (123,'')

    insert into...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: serious problem

    Difficult to give exact answer without procedure listing but this would work.

    declare @EchVPoin as decimal(18,2)

    declare @noofVisits as int

    set @noofVisits = 2

    set @EchVPoin = 1.0 / @noofVisits

    Update RMCPL_DAILY_ACTIVITY...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Stored procedure design and code generation

    1.

    I do not know of any personally, but like you would be interested to know of any.

    2.

    All my sp's are generated from txt files. I may use QA...

    Far away is close at hand in the images of elsewhere.
    Anon.

Viewing 15 posts - 2,671 through 2,685 (of 3,544 total)