Forum Replies Created

Viewing 15 posts - 1 through 15 (of 111 total)

  • RE: New toys in SQL Server 2012

    Jeff Moden (5/15/2012)


    I'm not sure why this article is getting such low marks.

    I would guess it may be because of the more sensationalized headline for the article. Also from a...

  • RE: Variable based JOIN

    Sean Lange (3/29/2012)


    Of course your join also has nothing to actually join tableA and tableB. :w00t:

    Thanks for confirming.

    I simplified the query that is in there but this had me pondering...

  • RE: Making a SQL query box on ASP & Dropdown List issues

    Your query doesn't seem right and it's invocation too. It has nothing to do with ISNULL or the GROUPBY clause.

    Some discrepancies I can see from your post

    a.) Number of parameters...

  • RE: Making a SQL query box on ASP & Dropdown List issues

    ichiyo85 (2/23/2011)


    1. make a SQL query box on a page so that it links to the database and users can make their own queries from ASP. Is that possible?

    Since we...

  • RE: Getting actual error to be part of email

    This is what I do. For the component I would trap the OnError event and put a Script task. The script will essentially copy the error message into a user...

  • RE: temp table (#) Vs Dynamic Table (@)

    I second @leo.Miller. In one of my queries the performance radically improved once I replaced a table variable with #temp table. From what I remember, I was trying...

  • RE: What will happen?

    Hugo Kornelis (9/1/2010)


    Oleg Netchaev (9/1/2010)


    ...

    select dateadd(day, datediff(day, 0, current_timestamp), 0);

    Why faster is because how datetime is stored internally (4 bytes for number of days from zero date and 4 bytes...

  • RE: SQL 6.5 and Y2K

    cengland0 (8/13/2010)


    Although I did get the answer right, I had to pick the closest response to the correct answer.

    Technically, it was version 6.50.339 that fixed the Y2K issue. Then,...

  • RE: Removing duplicates

    For a sample data with 60 rows and 31 columns

    ...

  • RE: Removing duplicates

    scott.pletcher (8/9/2010)


    select dataId, code, imageName, min(loadid)

    from @t1

    group by dataId, code, imageName

    I have to admit it didn't occur to me that grouping will work.

    I would assume since the "group by"...

  • RE: Procedure to select and insert

    transfering (8/10/2010)


    in oracle I use:

    merge into MonthsImports MI using (select...) I on MI.id = I.id

    when matched then update set MI.id = I.id ...

    when not matched then Insert MI.id... values(I.id...)

    I dont...

  • RE: Procedure to select and insert

    bteraberry (8/9/2010)


    While you can't do that in 2K5 in one specific SQL statement, you can do both within one block of code in a stored procedure.

    Agreed; didn't want to...

  • RE: Removing duplicates

    Thank you for weighing in on the idea.

    The 60 columns will never be in a single table; they are spread across 6 tables with one having 5 columns and the...

  • RE: Removing duplicates

    Thanks Kingston.

    I was mulling over the use of RANK & Partition By, the only thing that held me back was the number of columns I would have to put in...

  • RE: Update time from a datetime column, using another datetime column.

    Mike Menser (8/9/2010)


    ...the output of the new column is correct:

    Jan 6 2005 9:45PM

    I could be able to convert this varchar column to a datetime column now that I have...

Viewing 15 posts - 1 through 15 (of 111 total)