Forum Replies Created

Viewing 15 posts - 811 through 825 (of 1,219 total)

  • RE: MAXDOP query hint doesn't work- SQL 2008R2 Enterprise Edition

    curious_sqldba (8/20/2013)


    In sys.sysprocesses wait type is always 'SOS_SCHEDULER_YIELD' when my CTP is 5 and MAXDOP is 0, what do you want me to check in sys.dm_os_tasks ?

    How many rows there...

  • RE: Help with sql statement

    The query you posted uses group_concat() which is not a function in SQL Server. That smells MySQL to me, but I could be wrong. Furthermore, the error message you posted...

  • RE: MAXDOP query hint doesn't work- SQL 2008R2 Enterprise Edition

    curious_sqldba (8/19/2013)


    The server on which i see this issue doesn't have hyperthreading enabled ( msinfo32 shows physical=logical).Is that the reason why i see twice the number of cores being used?

    So...

  • RE: To Use OPENROWSET by SQL user without sysadmin role

    Well, distributed queries, even more distributed transactions, often causes pain, so there is all reason to avoid them if you can. But if your developers have painted them so much...

  • RE: Call SP foreach Column in Table (without Cursor)

    opc.three (8/19/2013)


    Can you please elaborate? I use this technique quite often and am interested to know what you mean by "as the correct result of SELECT statement is undefined". Is...

  • RE: Shrink does not release space

    Jeff Moden (8/19/2013)


    I'm pretty sure that's not true. From BOL:

    Reorganizing also compacts the index pages. Any empty pages created by this compaction are removed providing additional available disk space....

  • RE: Shrink does not release space

    IgorMi (8/19/2013)


    It is not good to shrink without rebuild.

    If you shrink and rebuild after then it's ok.

    No, it may be OK. In this case, the jfgrocha removed 200 GB of...

  • RE: Sp to create SQL job

    SQLSteve (8/19/2013)


    Erland,

    Even with the below, I get syntax errors it still doesnt run through. It doesn't like the dash

    EXEC msdb.dbo.sp_add_job

    @job_name=N' + dbo.quotestring(@DatabasenameInput + '- backup Job') +...

  • RE: Shrink does not release space

    REORGANIZE essentially performs a bubble-sort of the index. The pages are not changed, so if a page is only 50 % full, it will remain 50% full. Possibly, REORGANIZE could...

  • RE: Call SP foreach Column in Table (without Cursor)

    opc.three (8/19/2013)


    Here is a non-cursor option, just for the sake of having an alternative to using a cursor:

    DECLARE @sql NVARCHAR(MAX) = N'';

    SELECT @sql += 'EXEC LoadFile ' + QUOTENAME(FILENAME, '''')...

  • RE: Help on query

    vignesh.ms (8/19/2013)


    this gives the ans but difficult to understand that's why....

    I assume that this is response to my post.

    I suggest that you study the query piece by piece. The first...

  • RE: SQL:StatementCompleted trace event?

    By adding the appropriate calls to sp_trace_event. You find the documentation for sp_trace_event in Books Online. The codes for the events and columns are available in sys.trace_events and another DMV...

  • RE: Shrink does not release space

    No, ALTER INDEX REORGANIZE is not going to help if you are to shrink a database. REBUILD may do, as you may end up with fewer extents allocated to the...

  • RE: Call SP foreach Column in Table (without Cursor)

    kapil_kk (8/18/2013)


    Thanks Erland for the info...

    one more thing I saw in your code is that you write

    FETCH cur INTO @filename

    only once inside the loop....

    Yes. It is common to see...

  • RE: problem with installation of Sql server express 2008

    hlsc1983 (8/18/2013)


    i came across this . can u kindly verify this

    "SQLManagementStudio_x64_ENU.exe is NOT SSMS! Confusing filename, huh? It includes only the basic management tools (e.g., Configuration Manager) and...

Viewing 15 posts - 811 through 825 (of 1,219 total)