Forum Replies Created

Viewing 15 posts - 1,891 through 1,905 (of 5,394 total)

  • RE: When we should use in a query or a procesure "option(recompile)"

    This means that you have a bad plan in the cache. The bad plan could come from stale statistics at the moment the plan was calculated.

    Try updating stats and issue...

  • RE: How do i insert through Proc to Another location server?

    I think that *real* replication (transactional IMHO) would suit better here.

    Is this one way or you need data to be replicated bidirectionally?

  • RE: SQL SERVER(T-SQL)

    Paul White blogged about simulating sequences in SQL Server here.

  • RE: How to ignore errors & insert data in a table

    It can't be done exactly that way. A DML statement is executed completely or not executed at all.

    However, you could check the values in advance and import valid rows only.

  • RE: Dropping Image column

    GilaMonster (2/15/2012)


    Gianluca Sartori (2/15/2012)


    According to MSDN, the NULL bitmap size is calculated as:

    Null_Bitmap = 2 + ((Num_Cols + 7) / 8)

    This suggests it could change. I've never seen this happening...

  • RE: Dropping Image column

    paul.knibbs (2/15/2012)


    GilaMonster (2/14/2012)

    Adding a nullable column is the same.

    Is it possible it would have to expand the size of the NULL bitmap to accommodate the extra column, or is that...

  • RE: Regular Expressions in Update query

    No need to write C# code.

    A simple UPDATE will be enough:

    DECLARE @sampleData TABLE (

    telephone varchar(20)

    )

    INSERT INTO @sampleData VALUES('9217335621')

    INSERT INTO @sampleData VALUES('9217854234')

    INSERT INTO @sampleData VALUES('9217115526')

    INSERT INTO @sampleData VALUES('9217418795')

    INSERT INTO @sampleData VALUES('9217417896')

    UPDATE...

  • RE: SQL Jobs

    You're welcome.

    Glad I could help.

  • RE: SQL Jobs

    chandrika.r 91171 (2/14/2012) via Private Message


    Thats fine but still did not get the solution Gainluca. lets say I have some 100 jobs scheduled at the same time. one table is...

  • RE: Unable to start SQL Browser Service

    You're welcome.

    Glad I could help.

  • RE: SQL Jobs

    1. Download sp_WhoIasActive

    2. Run the script to create the stored procedure

    3. Start the SSIS package via job

    4. Open a new query editor window in SSMS and type:

    EXEC sp_WhoIsActive @get_outer_command =...

  • RE: Unable to start SQL Browser Service

    s_osborne2 (2/14/2012)


    Thanks, i'll try your 2nd suggestion in a moment. In the meantime i thought you might find the attached amusing based on the first suggestion.

    I mean that you could...

  • RE: Unable to start SQL Browser Service

    You could:

    1) Start the browser from the command line and capture the output. Maybe there's something useful in there.

    2) Trace the process with Sysinternals' Process Monitor and see if there's...

  • RE: Column Retrive using column id

    guruprasad1987 (2/14/2012)


    Hi all,

    this is the question asked in my previous interview.. How to select column 11 to nth from a table..

    This is one of the dumbest questions I have ever...

  • RE: SQL Jobs

    You could quey locks being held on the table in sys.dm_tran_locks.

    I would not re-invent the wheel, however, I would rather pick a ready-made tool like Adam Machanic sp_WhoIsActive.

    With that procedure,...

Viewing 15 posts - 1,891 through 1,905 (of 5,394 total)