Forum Replies Created

Viewing 15 posts - 8,491 through 8,505 (of 26,490 total)

  • RE: compare data row by row

    Create us a sandbox. A couple (perhaps 2 to 4) of tables, some sample data for the tables (not a lot, just enough to cover the problem domain), and...

  • RE: IF EXISTS doesn't work for me

    Biank (3/13/2013)


    I'm trying to chekck the existance of a table first and then get a value ONLY IF when the table is there. So, I tried this;

    if exists (select...

  • RE: Convert String to Time Format

    Or:

    DECLARE @time TABLE (StringTime VARCHAR(6))

    INSERT @time

    SELECT '112345'

    UNION SELECT '12345'

    UNION SELECT '2345'

    UNION...

  • RE: SQL Query

    Sean Lange (3/13/2013)


    tn_350z (3/13/2013)


    Hopefully, I am posting this in a right area if not I am sorry. Dont mind the $$$$,#### and ****

    I am trying to get the last...

  • RE: date column behaving strangely

    I can't figure out what your problem is here.

  • RE: sqlcode vs sp

    fmuzul (3/13/2013)


    Lynn Pettis (3/13/2013)


    Nothing here to work with. Many of us have optimized SQL to perform similar calculations in the database reducing processing time from hours (or longer) to...

  • RE: sql2005

    Look at the table sys.objects, it has the columns create_date and modify_date. This won't tell you the last table data in a table was updated or when a stored...

  • RE: sqlcode vs sp

    fmuzul (3/13/2013)


    Eugene Elutin (3/11/2013)


    ...

    But, the most important thing, is that making the change in a C++ procedure let me use the full power of the C++ language. Can't be beaten...

  • RE: supplying a schema in queries, performance?

    ryan.mcatee (3/13/2013)


    To demonstrate this behavior:

    CREATE SCHEMA testA

    GO

    CREATE SCHEMA testB

    GO

    CREATE TABLE dbo.Cities (city varchar(50))

    GO

    CREATE TABLE testA.Cities (city varchar(50))

    GO

    CREATE TABLE testB.Cities (city varchar(50))

    GO

    INSERT INTO dbo.Cities VALUES ('Chicago')

    INSERT INTO testA.Cities VALUES ('Cairo')

    INSERT INTO...

  • RE: Single Update Query - Required

    Sean Lange (3/12/2013)


    robertd 77391 (3/12/2013)


    A simple way to do this:

    update #Table1

    set #Table1.SID = #Table2.aID

    from #Table2

    where #Table1.Sno = #Table2.Sno ;

    I can't for the life me remember the details but there is...

  • RE: SQL concatenate

    Sean Lange (3/12/2013)


    You have enough points that I can assume you are not around here. Please post ddl, sample data and desired output. I suspect you want a cross tab....

  • RE: supplying a schema in queries, performance?

    Lynn Pettis (3/12/2013)


    ryan.mcatee (3/12/2013)


    The behavior is different within a stored procedure.

    Will have to research further later.

    It is interesting behaviour.

    Especially when you deal with ownership chaining.

  • RE: supplying a schema in queries, performance?

    ryan.mcatee (3/12/2013)


    The behavior is different within a stored procedure.

    Will have to research further later.

    It is interesting behaviour.

  • RE: supplying a schema in queries, performance?

    Ed Wagner (3/12/2013)


    The dbo schema first, then default. Thank you, Lowell. I just learned something.

    Actually, if you do not provide the schema for the object it will look...

  • RE: Complex SQL QUERY with DateDIFF

    Never mind on mine at the moment, needs more work. Have to look at it tonight.

Viewing 15 posts - 8,491 through 8,505 (of 26,490 total)