Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: agar
  • Content: Threads
  • Order by date
  1. agar

    RAND() function

    What the h*** is going on with the RAND() function? The way RNG's are supposed to work is you seed it first, then make subsequent calls to retrieve the subsequent numbers in the random sequence. The RAND() function has an optional argument -- the seed. From this you might guess that you're...
  2. agar

    Deleting tables with FK constraints

    Hi all, This may be old news to some but I thought I would post this code in case it would be helpful to someone. Basically the problem I had to deal with was this: we are developing a database application iteratively and every so often need to install a new version at the client site. As you...
  3. agar

    select top N with order by, N is dynamic

    Hi all, Does anybody know of an easy way to select the top N records of a table, where the select uses an order by clause, and N is dynamic (for example, is passed as a parameter to the stored procedure)? The "SELECT TOP" syntax must be hardcoded, and "SET ROWCOUNT&quot...
  4. agar

    question: row locking w/ triggers

    Question: how do transactions and locking work w/ triggers? Let's say I have a table with an update trigger defined on it. I execute a query that updates row N in that table. Which, if any, of the following occur, and if none than what does occur? Scenario A 1. begin transaction 2. the job...
  5. agar

    undocumented feature in SQL Server 7.0

    I just discovered that if you are using sp_executesql, in addition to passing parameters INTO the statement you are dynamically building, you can also use output parameters. This is undocumented in SQL Server 7.0 but it works. I'm probably not the first person to figure this out, but I thought...
  6. agar

    Deadlock problem

    I've been stuck on this for over a day and I want to move on. Why do I keep getting deadlocks when the concurrent batches that are deadlocking should only be contending for one object to begin with (a single row in a single table)? I thought a deadlock happened only when process A has a lock...

Part and Inventory Search

Back
Top