Forum Replies Created

Viewing 7 posts - 391 through 397 (of 397 total)

  • RE: Dynamically Getting Stored Proc Name

    create proc spname as

    select object_name(@@PROCID) procname

    go

    exec spname

  • RE: XML return output

    One of ways I use to output xml to file.

    output query (stored procedure etc) result in xml format to url

    use wsh take the url as input and output to file.

    Check...

  • RE: HOW TO view 'real' field not in "xxx.xxExx"style

    convert(decimal(12,1))

  • RE: Using osql

    There is better way of doing this.

    isqlw with -C option.

    It can be used just like osql from console.

  • RE: are FKs a detriment to performance?

    foreign key does not auto create index on the column. This indicates no performance impact.

    In my experiece, index is needed for speeding search.

  • RE: SQL XML Generator

    xslt could be a way for the translation.

    I am using sqlxml <sql:query> option and redirect output steam to xslt to get final result.

  • RE: Running value based on previous row

    Use function is a way.

    Here is the test case.

    Change Price to money for accurate result.

    create table tdata(DateOnData datetime, Item varchar(10), ClosingPrice money)

    insert tdata values('1-Jan-01','sugar',400)

    insert tdata values('1-Jan-01','salt',450)

    insert tdata values('1-Jan-01','coffee',700)

    insert tdata values('2-Jan-01','sugar',425)

    insert...

Viewing 7 posts - 391 through 397 (of 397 total)