Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6676217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:57:34+00:00 2026-05-26T03:57:34+00:00

When using the sql server provider in powershell, the path I pass works fine

  • 0

When using the sql server provider in powershell, the path I pass works fine the first time, but upon the second run it errors out on me. It’s like I have to clear the drive somehow?

Example:
sl “SQLSERVER:SQL\SERVERNAME\DEFAULT\DATABASES\DATABASENAME\Tables”
works fine the upon the first run. The location is successfully set. But, when I run it a 2nd time, I get this error:
Set-Location : SQL Server PowerShell provider error: The number of keys specified does not match the number of keys required to address this object. The number of keys requi
red are: Schema.Name.

I’m using quest powergui btw. Please help, this is driving me mad.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T03:57:35+00:00Added an answer on May 26, 2026 at 3:57 am

    Looks to me like you’re using a relative path (i.e. it doesn’t start with a slash after the provider:). So, first you’ve set the location relative to the default–root folder. Then, you try to set the location again, but you’re already in the “tables” folder, which doesn’t have a “SQL\SERVERNAME…” folder inside it.

    Does that make any sense?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Example scenario in an ASP.NET application using SQL Server membership provider : 1) a
We're using ASP.Net membership providers (the SQL Server provider), and I want to be
I am using sql server 2005 but having error message on _sessionFactory = configuration.BuildSessionFactory();
I created a database and some tables in C# using .NET SQL Server provider.
what snapins or initializations do I need to run a sql server powershell script
I am using Entity Framework in ASP.Net project. It works fine in development server.
Using SQL Server, how do I split a string so I can access item
Using sql server 2000, I would like to take my production data and put
Using SQL Server, which is the fastest or best practice method to use for
Using SQL Server 2005 and Management Studio how do I insert a picture into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.