Forum Replies Created

Viewing 15 posts - 2,581 through 2,595 (of 7,636 total)

  • RE: SET vs SELECT

    *sigh* I'm so misunderstood. 🙁

  • RE: Concurrency Question

    Paul White (5/8/2009)


    ...

    You are correct that two concurrent transaction could both conclude, from a SELECT at READ COMMITTED that no row exists, and both would attempt an INSERT.

    Absent a unique...

  • RE: SET vs SELECT

    Paul White (5/8/2009)


    RBarryYoung,

    How does that go with:

    Select @i = object_id from sys.objects

    ...?

    Paul

    (a confirmed SELECT-ite, mostly)

    Not sure what you're asking? That does behave differently, but then it should because it's...

  • RE: Create an SP?

    psangeetha (5/8/2009)


    I right click on the venc or vdec procedures, execute the procedure and give the input data.

    DECLARE@ret_value int,

    @out_data varchar(200)

    EXEC @ret_val = [dbo].[vdec]

    @in_data1 = N'0x008b16f1b5e3ea4eaba24e2348cbf9c501000000fc5b0d5c0',

    @in_data2 = N'e2f06f21ff1468953fe1047f3002e61eb0c4cb0e08bdf1ef56b',

    @in_data3 = N'80d19af6eecaa4db53e145db9bef3854becd28fb20a857bb6e87',

    @in_add_auth...

  • RE: How can I get an Execution Plan into a table column?

    Thanks folks. If anybody thinks of anything else, please let me know.

  • RE: Implementing a reporting database off a live database

    If you've got SANs and/or other high-end infrastructure, then one thing that you should seriously consider is Mirror-splitting. I have implemented Reporting Databases for a number of clients and...

  • RE: Create an SP?

    Do you know how to use your venc/vdec procedures from SQL? If so, can you provide an example?

  • RE: Understanding Execution Plans

    Wayne, questions:

    1) How many total rows are in the SCHT_obligations table?

    2) Have you used the time statistics to confirm if the QP estimates per statement are accurate (i.e., is the...

  • RE: SET vs SELECT

    Heh. Actually, SET is no more safe than SELECT, at least for the examples given here that I have seen so far.

    If you look at this code:

    Declare @i as...

  • RE: Matrix multiplication without cursors?

    Thanks Phil.

  • RE: Concurrency Question

    Paul White (5/8/2009)


    Bob Hovious (5/7/2009)


    Jamie, are you thinking that you have to somehow code the locks yourself?

    Jamie,

    At the same time as *not* necessarily recommending this as a solution in this...

  • RE: What is the best way to dynamically define columns in the WHERE clause and avoid dynamic SQL

    RBarryYoung (5/8/2009)


    ... because the optimizer does not know what columns will actually be used at run-time, it cannot tell ahead of time what indexes it should be using, so it...

  • RE: What is the best way to dynamically define columns in the WHERE clause and avoid dynamic SQL

    Gail's link is an excellent article from her blog that examines in detail why these "catch-all" queries perform poorly. For purposes of our discussion here, let me summarize the...

  • RE: Arrays in SQL tables

    veritas_86 (5/8/2009)


    I'm using SQL to store data where one of the fields is a large array. I was going to put this array into another table that is seperate from...

  • RE: How can I get an Execution Plan into a table column?

    Looks like I answered my own question. The following seems to work fine:

    Declare @qp as XML

    SELECT @qp = query_plan

    From sys.dm_exec_requests

    Cross Apply sys.dm_exec_query_plan(plan_handle)

    Where session_id = @@spid

    --...

Viewing 15 posts - 2,581 through 2,595 (of 7,636 total)