Forum Replies Created

Viewing 15 posts - 16 through 30 (of 405 total)

  • RE: calling stored procedure in a loop and selecting from results

    Lynn Pettis (12/14/2016)


    junk.mail291276 (12/14/2016)


    Hello,

    I have a stored procedure that takes a project ID as a parameter and returns a list of results on that project. Now what I'd like to...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Backup Job and Cleanup Task using Windows Batch job

    Use Powershell

    Its a good idea to return result to a variable.

    You can also use xp_cmdshell and make a single sp to do both

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Will there be any data loss?

    coolchaitu (12/12/2016)


    Hi Gail,

    The mdf file is available. So there shouldnt be any data loss, correct?

    The pages in memory are not hardened to the physical data file immediately. But the log...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Log waits

    If there is a max size set on the file remove it, and if there is no more space left in the drive adding a new file to a...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Let the optimizer do it's thing -- wrong

    Forcing plan in my opinion is a temporary workaround. Since a change in data growth pattern may give you a less optimal performance after some time. If you know what...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: trying to get rid of clustered index scan

    tcronin 95651 (12/13/2016)


    yes scan was quicker I guess the engine is smarter than the average bear

    If your statistics are up to date the plan generated by SQL is most of...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Replace multiple row with sequence value

    pankaj 43245 (12/13/2016)


    i can replace them with update but to do this for 1892 user on 5 different table is time consuming task.

    Create and excel with source and target values

    Import...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: ReportServerTempdb log file is full

    I am not aware of any known issues with Reportservertempdb. I do not think any changes to it is supported.

    However you can use general monitoring counters for memory CPU and...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: ReportServerTempdb log file is full

    Robin35 (12/12/2016)


    Hello,

    Our ReportServerTmpdb log file is full and our reports are receiving this error. i'm trying to understand, what causes this log file to grow and how can we prevent...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Data file growth events and clustered index

    SQL Learner - VKG (12/7/2016)


    Hello Guys,

    I a table of around 10 GB size. Recovery model of database (SQL Server 2005) is simple. For some requirement, I added a clustered index...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: How to identify that Dynamic Sql fail?

    It depends on how and from where you get values for your parameters. Probably you are alright here, but it is good practice to use parameterized whenever possible.

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Another test post

    And hope you are happy with the result.

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: How to identify that Dynamic Sql fail?

    pinky_sam05 (12/12/2016)


    Thanks @joeroshan for ur help.I have done like this.Here I just printed msg but in reality I will do insert.

    ..

    You are welcome. Glad you got it worked. I was...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: How to identify that Dynamic Sql fail?

    Probably this will clear your doubt.

    declare @Inserttbl nvarchar(4000)

    declare @TableName varchar(50)

    declare @Text varchar(50)=null

    declare @count int

    set @TableName ='sample'

    set @Text = null

    set @Inserttbl = ' Insert into Test.dbo.' +@TableName +' values (3,'+@Text+',1)'

    select @Inserttbl

    set...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: How to identify that Dynamic Sql fail?

    By default concatenating with null, the entire text will become null.

    Try @text='null'

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

Viewing 15 posts - 16 through 30 (of 405 total)