[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Test-SPContentDatabase returns no results

Posted on 2011-02-16
4
Medium Priority
?
1,757 Views
Last Modified: 2012-06-27
There is nothing displayed when running Test-SPContentDatabase powershell cmdlet. When saving the result to htm file it is also empty. What am I doing wrong?

This is what I do:
Test-SPContentDatabase –name WSS_Content –WebApplication http://demo1 -serverinstance demo2\testdbase | ConvertTo-Html | Out-file c:\TestSPContent.htm
0
Comment
Question by:MisUszatek
  • 2
4 Comments
 
LVL 7

Accepted Solution

by:
EagleUK earned 750 total points
ID: 34911372
Check your syntax. I believe that -serverinstance should be the SQL server name and
-databasecredentials should have the UserID and password
0
 

Author Closing Comment

by:MisUszatek
ID: 34974005
Didn't solve the issue.
0
 
LVL 7

Expert Comment

by:EagleUK
ID: 34974462
Try this:

Test-SPContentDatabase –name WSS_Content –WebApplication http://demo1 -serverinstance demo2 | ConvertTo-Html | Set-Content c:\TestSPContent.htm
0
 

Expert Comment

by:ps664
ID: 36035751
No this does not work for me. The file TestSPContent.htm is empty.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
Pimping Sharepoint 2007 without Server-Side Code Part 1 One of my biggest frustrations with Sharepoint 2007 in the corporate world is that while good-intentioned managers lock down the more interesting capabilities of Sharepoint programming in…
Is your organization moving toward a cloud and mobile-first environment? In this transition, your IT department will encounter many challenges, such as navigating how to: Deploy new applications and services to a growing team Accommodate employee…
Hi, this video explains a free download that you can incorporate into your Access databases, or use stand-alone for contact management. Contacts -- Names, Addresses, Phone Numbers, eMail Addresses, Websites, Lists, Projects, Notes, Attachments…
Suggested Courses

608 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question