Forum Replies Created

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

  • Reply To: Use of variable issue

    All,

    Thanks for your help.

    I think I may have just got it working with:

       if   (Test-Path -Path  $Row.Item(0))
    {
    ...
  • Reply To: Use of variable issue

    Thanks for your help. That gives me the error:

    Message

    Unable to start execution of step 1 (reason: line(10): Syntax error). The step failed.

    This is the code:

    $sqlConn = New-Object...
  • Reply To: Use of variable issue

    Hello,

    Thanks for your help.

    Apologies I didn't mean to be vague. I've now added the commandtext to my original post. At the moment the table has one row and the filename...

  • Reply To: User permissions and showplan

    Hello,

    Thanks for your help. I hadn't seen that and it it looks interesting. I will take a look.

    I didn't specify when I created my post but I was more thinking...

  • Reply To: Query performance analysis

    Thanks for your reply.

    All: Thank you for your help. I put in some code to update the stats and it seems to be solve the issue consistently and now I...

  • Reply To: Query performance analysis

    I've discovered that the table is updated overnight and the issue re-occurs overnight.

    If I run the code in the morning then it takes too long to complete. If I then...

    • This reply was modified 1 years, 9 months ago by as_1234.
  • Reply To: Query performance analysis

    All,

    Thanks for your help.

    I updated the statistics today and it seems to have fixed the issue. I will retry the code over the next few days to see if it...

  • Reply To: Query performance analysis

    All,

    Thank you for your replies and suggestions. Sorry I haven't been back to this topic, I've had some other unplanned things to sort out. When I get back to it,...

    • This reply was modified 1 years, 10 months ago by as_1234.
  • Reply To: Query performance analysis

    Hello,

    Thank you for your help.

    ratbak wrote:

    Are both servers running the same SQL Server version?

    Are both databases using the same compatibility level?

    Are both databases using the same transaction isolation level?

    Are both...

  • Reply To: Rename-Item

    All,

    Firstly apologies for posting a question and not replying. That wasn't my intention. Some unexpected issues took my time.

    The reason for renaming is that the backup will be picked up...

    • This reply was modified 2 years, 4 months ago by as_1234.
    • This reply was modified 2 years, 4 months ago by as_1234. Reason: Two typing errors corrected
  • Reply To: Rename-Item

    All,

    Thank you for your help and apologies for not replying. Another issue has taken my attention and I haven't had chance to reply.

    I will reply to everyone's questions soon, probably...

  • Reply To: Query performance comparison

    All,

    Thank you for your help.

    I was able to capture all the information I need using Extended Events.

  • Reply To: System versioned tables permissions

    Just an update in case it's useful to anyone:

    Scripting the database doesn't show any relevant permissions.

    If you unversion the table the insert permission isn't shown in SSMS. If you re-version...

  • Reply To: System versioned tables permissions

    All,

    Thanks for your replies.

    Scripting out the database is a good idea, I'll try that.

    I'll carry on investigating and if I find an answer or anything else that might be useful...

  • Reply To: System versioned tables permissions

    Sorry for taking so long to reply.

    I don't get an error from that command.

    I did some testing on a test system. I created a table as follows:

    CREATE...

    • This reply was modified 2 years, 8 months ago by as_1234.

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