Forum Replies Created

Viewing 10 posts - 6,031 through 6,041 (of 6,041 total)

  • RE: Need help with the query. Can not filter out data

    Would simply adding this additional condition give you what you need?

    .. and right(origin_tracer_no,2) <> 'No'

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: Would You Like a Stay Interview?

    Management in the IT industry is different from other industries. If you look at the resume of IT managers, you'll see that most of them actually do not have a...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: One database - two schemas - one has slow inserts/updates/deletes

    A clustered index on column(s) containing non-sequential data is one explanation for extremely poor performing inserts and updates. With a clustered table, SQL Server clusters the data pages (basically like,...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: Deleting records with foreign keys

    I've never liked the idea of creating foreign key constraints with the cascade UPDATE/DELETE option. Let's assume that a misguided developer is trying to insert/update data in the INV_STATUS dimension...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: How To Get Last Inserted Record Value In SQL Server

    The technical puzzle proposed in this discussion is interesting, but it has obviously run it's course. I'm interested about why you would need to know the "last" value inserted into...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: Join via String of Integers

    Here is a well illustrated primer on SQL joins by Pinal Dave, one of the best SQL Server bloggers.

    http://blog.sqlauthority.com/2009/04/13/sql-server-introduction-to-joins-basic-of-joins/

    The specific situation you present here, which is parsing out a...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: creating a view for one big table

    Yes, you can index a partitioned view. There are some requirements, like all tables must be in the same database and there must be a unique clustered index, which you...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: how to avoid locks

    You are always going to have locks of one type or another. I guess the real problem you're wanting to describe is that you're encountering blocks on your DML statements....

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: Join via String of Integers

    Simply get the IDs into a table variable, and then the problem is solved.

    I encounter this scenario a lot with stored procedures, typically developed for reporting purposes, which accept a...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: How To Get Last Inserted Record Value In SQL Server

    The last value inserted into your table was 'Snoopy'. Prove me wrong.

    Seriously, without a date/time column, or at least a sequential identifier, there is no deterministic way to know...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

Viewing 10 posts - 6,031 through 6,041 (of 6,041 total)