Forum Replies Created

Viewing 15 posts - 106 through 120 (of 311 total)

  • RE: Delete record without using Delete keyword

    Lowell (10/16/2010)


    jaffrey (10/16/2010)


    Hai guys,

    Is it possible, Delete a record without using Delete keyword?

    a single record? no...the TRUNCATE TABLE [TABLENAME] command will delete all records in a table. so that deletes...

  • RE: Complicated pivot query

    BTW, why did you started a new thread on the answer I gave you?

  • RE: Complicated pivot query

    scottichrosaviakosmos (10/15/2010)


    yes, this is what i want, but what i wanted is to the column A and B the values in @tblmonth be added.

    i.e row of a like 10+20+40.. to...

  • RE: Complicated pivot query

    Do you mean something like this?

    declare @tblmonth table(stdid int, code char(1), jan int, feb int, march int, april int, may int)

    declare @tbldate table(stdid int, sdate date, eddate date)

    insert into @tblmonth

    values...

  • RE: XML "CSV" Splitter

    Paul White NZ (9/18/2010)


    Hmm. How'd I miss this thread? :w00t:

    Because of being busy writing those great optimizer articles?

  • RE: XML "CSV" Splitter

    Jeff Moden (9/16/2010)


    Wow... I guess my machine doesn't like XML so much. I stopped the test after 10 minutes on a 10K by 100 run.

    Like Steve already pointed out,...

  • RE: Very slow query with only 2 joins

    frharkonnen (9/13/2010)


    In the INNER JOIN (94%) I have the following warning : NO JOIN PREDICATE. Why ?

    The top input of the inner join contains an index seek on Topic.t_id =...

  • RE: XML "CSV" Splitter

    steve-893342 (9/13/2010)


    WayneS (9/13/2010)


    Test code:

    SET NOCOUNT ON;

    print replicate('*',30);

    Print 'Jeff''s function';

    print replicate('*',30);

    SET STATISTICS IO,TIME ON;

    select

    count(*)

    from

    CsvTest

    cross apply

    dbo.Split8KX(CsvParameter, ',');

    SET STATISTICS IO,TIME OFF;

    print replicate('*',30);

    print 'Inline table valued function';

    print replicate('*',30);

    SET...

  • RE: XML "CSV" Splitter

    I am not an XML Ninja either, but you can try a inline table valued function

    CREATE FUNCTION dbo.Split8KX_Inline(@Parameter VARCHAR(MAX), @Delimiter VARCHAR(1))

    RETURNS TABLE

    WITH SCHEMABINDING

    AS

    RETURN

    SELECT...

  • RE: BULK INSERT a file produced from a UNIX machine - SQL 2005

    Lowell (8/26/2010)


    ok, I just realized that the shortcut command you needed was for {slash L}, not {slash R]

    ROWTERMINATOR =

    vbCrLf = CHAR(13) + CHAR(10) = \n

    vbCr = CHAR(13) = \r

    vbLf...

  • RE: BULK INSERT a file produced from a UNIX machine - SQL 2005

    Oops, posted twice.

  • RE: BULK INSERT a file produced from a UNIX machine - SQL 2005

    BravehearT1326 (8/26/2010)


    BULK INSERT TEST.dbo.NA_BANKACCTTYPELOOKUP

    FROM 'C:\TEST\test.txt'

    WITH

    (

    FIELDTERMINATOR ='|',

    ...

  • RE: Correlated MAX query in where clause, when there are more than one max value

    Is this what you want?

    ;with OrderedProbability as

    (

    select

    ConstructNo, ImportanceBands, Probability,

    row_number() over (partition by ConstructNo order by Probability desc, ImportanceBands desc)...

  • RE: How to get First, Middle & last words

    deepthik (8/12/2010)


    Hi...

    Am using the below function as you mentioned. At that time, there is no data, so i habve tested on test data and is working fine.

    now, my report is...

  • RE: Formatting Dates

    You are using the wrong expression for the format. Given a date of 2/3/2009, your expression

    =Format (<datetime field from dataset>, "dd-MMM-yyyy").

    evaluates to "3-Feb-2009" which is then used to format...

Viewing 15 posts - 106 through 120 (of 311 total)