Viewing 15 posts - 1 through 15 (of 297 total)
Thank you both for your help.
The SELECT INTOs will hold locks. Those might be causing issues.
One good way to avoid that is to an initial SELECT TOP (0) ......
December 3, 2024 at 2:20 pm
Thanks for your help.
The code you provided solved the issue and you are right I need to change it due to the SQL injection risk which I will do.
August 21, 2024 at 11:28 am
All,
Thanks for your help. That seems to have fixed the issue.
I thought I'd already tried <> rather than the unicode option with all the different variations of the username field...
July 11, 2024 at 4:02 pm
Thanks for your reply and the detailed information.
June 24, 2024 at 11:37 am
Thanks for your help and apologies for taking a few days to reply.
I am looking for the permissions information regarding showplan rather than the operators. The information on the risks...
June 24, 2024 at 8:35 am
All,
Thanks for your advise. I'll change to using Operating system (cmdexec).
May 2, 2024 at 11:07 am
Thanks for the advise.
If you don't mind me asking - why do you advise that? I'm not disagreeing, I'm asking because I'm new to Powershell and interested to learn.
I think...
May 2, 2024 at 10:40 am
All,
Thanks for your help.
I think I may have just got it working with:
if (Test-Path -Path $Row.Item(0))
{
...
May 2, 2024 at 10:00 am
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...
May 2, 2024 at 8:09 am
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...
May 1, 2024 at 3:22 pm
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...
April 17, 2024 at 10:27 am
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...
April 16, 2024 at 3:31 pm
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...
April 8, 2024 at 3:33 pm
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...
March 28, 2024 at 5:46 pm
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,...
March 23, 2024 at 10:31 am
Viewing 15 posts - 1 through 15 (of 297 total)