Quantcast
Channel: SharePoint 2010 - Setup, Upgrade, Administration and Operations forum
Viewing all articles
Browse latest Browse all 13778

Mount-spcontentdatabase with SQL Authentication

$
0
0

Hi,

I'm able to Add database from Central Admin using SQL Authentication.

But when try Mount-Spcontentdatabase it's failing saying connot connecto dataabase.

Steps followed:

1. From management shell:

$secpasswd = ConvertTo-SecureString "Welcome123!" -AsPlainText -Force
$dbcreds = New-Object System.Management.Automation.PSCredential ("spadmin", $secpasswd)

2.

 Mount-spcontentdatabase "WSS_Content_DB" -databaseserver "Ins1" -DatabaseCredentials $dbcreds -webapplication http://servername:12582/ 

Error:

Mount-SPContentDatabase : Could not connect to spstage with user spadmin: Canno
t connect to database master at SQL server at Ins1. The database might not e
xist, or the current user does not have permission to connect to it.
At line:1 char:24

But the same is working from Central Admin. Please advise.

Thanks


Viewing all articles
Browse latest Browse all 13778

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>