SharePoint 2010 MP - override ConnectionString to content/config databases - how to set RunAs account?
Hi, I experienced the Data Source Could Not Be Initialized issue with the SharePoint Database Monitor.
From the suggested related topic, I tried to override the ConnectionString for each of the database. Example as below
Provider=SQLOLEDB;Server=server1;Database=database1;Integrated Security=SSPI
server1 is a active-passive cluster for failover. And now I got the error message "Login Failed for user domain\momaccount. I expect the default SharePoint monitor account will be used instead of MOM service account.
Is it possible to override the RunAs account to use the SharePoint credential that's already created for others MOSS monitoring?
Thanks.
SonicWave
Hi Sonic, This thread has been open for some time without any replies. Is it still current or has it been answered already? In which case we could close the thread.
Have you ran through the sharepoint management pack guides and set sharepoint monitoring runas account to the right profiles?
Bob Cornelissen - BICTT (My BICTT Blog) - Microsoft Community Contributor 2011 Recipient
Similar Messages
-
Name Status Version Properties
MSOLAP$POWERPIVOT 0 0x000000000021CF50 <object type="Microsoft.AnalysisServices.SharePoint.Integration.EngineServiceProxy, Microsoft.AnalysisServices.SharePoint.Integration, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"><fld name="m_Versions" type="null" /><fld name="m_UpgradeContext" type="null" /><fld type="System.Collections.Hashtable, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" name="m_UpgradedPersistedFields" /><fld name="m_Properties" type="null" /><sFld type="String" name="m_LastUpdatedUser">Domain\USername</sFld><sFld type="String" name="m_LastUpdatedProcess">PSCONFIG (11884)</sFld><sFld type="String" name="m_LastUpdatedMachine">ServerName</sFld><sFld type="DateTime" name="m_LastUpdatedTime">2014-02-21T17:39:25</sFld></object>
PowerPivotServiceApplication1_c17206969d204609ac63fe5fb1e84d77 0 0x000000000021D09B <object type="Microsoft.AnalysisServices.SharePoint.Integration.GeminiServiceDatabase, Microsoft.AnalysisServices.SharePoint.Integration, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"><fld name="m_Username" type="null" /><fld name="m_Password" type="null" /><fld name="m_FailoverServiceInstance" type="null" /><fld name="m_Snapshots" type="null" /><sFld type="Boolean" name="m_MultiSubnetFailover">False</sFld><fld name="m_Versions" type="null" /><fld name="m_UpgradeContext" type="null" /><fld type="System.Collections.Hashtable, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" name="m_UpgradedPersistedFields" /><fld name="m_Properties" type="null" /><sFld type="String" name="m_LastUpdatedUser">Domain\USername</sFld><sFld type="String" name="m_LastUpdatedProcess">w3wp (992)</sFld><sFld type="String" name="m_LastUpdatedMachine">ServerName</sFld><sFld type="DateTime" name="m_LastUpdatedTime">2014-02-21T17:58:21</sFld></object>
I am having issues with power pivot uninstallation. These two objects are left over after uninstallation.
How to deal with it?
Is there any way to delete these entries in the config DB?
As i Know we should not delete anything manullay from config Database?
Is there any powershell script or stsdam comand to delete these entries from the config database and re install power pivot for sharePOoint
RaviHi Trevor,
I have Reviewed uls logs.. It shows follwoing messages.
SPSecurityContext.WindowsIdentity: Could not retrieve a valid windows identity for NTName='Domain\USername',
UPN='UserName@domain'. UPN is required when Kerberos constrained delegation is used. Exception: System.ServiceModel.Security.SecurityAccessDeniedException: Access is denied. Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown
at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.IdentityModel.WindowsTokenService.S4UClient.IS4UService_dup.UpnLogon(String upn, Int32 pid)
at Microsoft.IdentityModel.WindowsTokenService.S4UClient.<>c__DisplayClass1.<UpnLogon>b__0(IS4UService_dup channel)
at Microsoft.IdentityModel.WindowsTokenService.S4UClient.CallService(Func`2 contractOperation)
at Microsoft.SharePoint.SPSecurityContext.GetWindowsIdentity().
Error 2:
MossHost.TryGetWindowsIdentity: Failed to get WindowsIdentity from IClaimsIdentity. SPSecurityContext.GetWindowsIdentity() threw exception: System.InvalidOperationException: Could not retrieve a valid Windows identity. ---> System.ServiceModel.Security.SecurityAccessDeniedException:
Access is denied. Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown
at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.IdentityModel.WindowsTokenService.S4UClient.IS4UService_dup.UpnLogon(String upn, Int32 pid)
at Microsoft.IdentityModel.WindowsTokenService.S4UClient.<>c__DisplayClass1.<UpnLogon>b__0(IS4UService_dup channel)
at Microsoft.IdentityModel.WindowsTokenService.S4UClient.CallService(Func`2 contractOperation)
at Microsoft.SharePoint.SPSecurityContext.GetWindowsIdentity() -
-- End of inner exception stack trace ---
at Microsoft.SharePoint.SPSecurityContext.GetWindowsIdentity()
at Microsoft.Office.Excel.Server.MossHost.MossHost.<>c__DisplayClass8.<TryGetWindowsIdentity>b__6()
Error 3:
CredentialsProvider.GetCredentials: Failed to get WindowsIdentity.
Credential delegation failed because Excel Services Application was unable to obtain a Windows Identity.
COuld you please share some ideas for it.
Thanks
Ravi
Ravi -
Sharepoint 2010 Calendar won't sync contents with Outlook 2010!
The Sharepoint calander itself shows up in Outlook but the calander appointments don't show up, is there a reason for this?
when outlook tries to sync with SharePoint do you get any errors in Event Viewer?
MCITP|MCTS SharePoint| SharePoint Performance blog -
Dear SharePoint Forum,
How do I import or create a colored tile screen from material created in Word or Pwr Point. The copy/Cut paste feature does now work..Is this custome HTML or J script or is there a special webpart for this type of SP 2010 work?
Thanks,
M. Breton (Misa)Dear SharePoint Forum,
How do I import or create a colored tile screen from material created in Word or Pwr Point. The copy/Cut paste feature does now work..Is this custome HTML or J script or is there a special webpart for this type of SP 2010 work?
Thanks,
M. Breton (Misa) -
I wrote a macro in a Word 2010 template with a custom property called HeaderFooter (a Yes/No value). When the property is changed to No, the header and footer are hidden, otherwise, the header and footer are displayed.
I added the template to a SharePoint 2010 Document library, with a content type DocInformation and a column name HeaderFooterOffOn that I want to map to the custom property HeaderFooter in the Word Document.
The macro isn't working in SharePoint, though, because when the user clicks on the HeaderFooterOffOn in the DIP of the Word Document, the Word Custom Property (HeaderFooter) isn't changing with it.
How do I get these two synced up, so that when the SharePoint column is changed, the Word Document's custom property simultaneously updates with it?Hi kevinkevinc,
There is no direct way to run macro in SharePoint
As a workaround, I suggest you use SharePoint Event Receiver to run some custom code when column changed.
Here is a similiar thread for your reference:
http://social.msdn.microsoft.com/Forums/office/en-US/249249e2-3263-4001-86fa-bda342d95f35/run-word-macro-on-newly-uploaded-sharepoint-word-documents?forum=sharepointdevelopmentlegacy
More information:
SharePoint Event Receiver:
http://msdn.microsoft.com/en-us/library/ee231563.aspx
http://msdn.microsoft.com/en-us/library/ff398052.aspx
Best Regards
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Zhengyu Guo
TechNet Community Support -
Reporting Services 2012 in SharePoint 2010 - SQL database edition?
We currently have a SharePoint 2010 farm, running on a SQL Server 2008 R2 Standard database. On one of the SharePoint 2010 servers, we have an instance of Reporting Services 2008 Enterprise running in SharePoint integrated mode. (We require Enterprise
for data-driven subscriptions)
We'd like to upgrade to Reporting Services 2012 for Data Alerts and a few other new features. However, I noticed something on
this blog stating that the SharePoint 2010 database server edition needs to match the Reporting Services edition. My concern is that I've not seen any official mention of this in Microsoft's documentation, and would like to avoid upgrading to Enterprise
for the SharePoint 2010 database if I can avoid it.
So, what I'd like to run is:
SharePoint 2010
SharePoint database: SQL Server 2008 R2 Standard
Reporting Services 2012 Enterprise
Reporting Services database: same as SharePoint database, so SQL Server 2008 R2 Standard
Is this possible? Or do I need to upgrade the SharePoint database to SQL Server 2008 R2 Enterprise?
Alternatively, could I install a separate database engine just for Reporting Services to host its databases (for example, SQL Server 2012 Enterprise), so I don't have to mess around with upgrading the SP database?While you don't need to upgrade your SQL 2008 R2 to 2012, you will need to install an instance of SQL 2012 & SSRS 2012. They can be side-by-side and independent of each other. The following blog post provides steps to do so,
http://www.madronasg.com/blog/how-configure-sql-server-reporting-services-2012-use-sharepoint-2010#.UuEVd2Ao74Y
Dimitri Ayrapetov (MCSE: SharePoint) -
SharePoint 2010 Query string parameter pass between visual webparts
Hi
I should pass a query string value from one visual webpart to another visual webpart in SharePoint 2010 .
Could you please help me like how we can pass
Thanks
SiddarthaIn the webpart you can add the code like "Response.Redirect("Page2.aspx?CustomerID=326");"
Once you develop the webparts, add them to the respective pages based on your required functionality.
Please check the similar thread
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/3099100f-72b2-4850-ba50-1e02416e9d9c/passing-query-string-between-two-webparts-usercontrols?forum=sharepointdevelopmentlegacy
My Blog- http://www.sharepoint-journey.com|
If a post answers your question, please click Mark As Answer on that post and Vote as Helpful -
How to import Solarwinds Dashboards into a SharePoint 2010 site?
Hello ,
I am planning to import solarwinds dashboard in a SharePoint 2010 site, so could anyone please tell me how to achieve this.
Thanks and Regards,
Srikanth G.Hi Srikanth,
Main purpose of the dashboard is to display the real time data and the dashboard should be updated very often. This can be achieved by using RSS feed.
RSS feed gives data in XML format. By Using the below piece of code, you can iterate the XML and fetch the data. Once you receive the data , keep it in datatable and display it in the dashboard webpart as you like.
XmlReaderSettings settings = new XmlReaderSettings();
settings.IgnoreComments = true;
settings.IgnoreWhitespace = true;
settings.CheckCharacters = true;
settings.CloseInput = true;
settings.IgnoreProcessingInstructions = true;
var client = new WebClient();
string URL = <SolarWindsRSSURL>;
try
var feedAsString = client.DownloadString(URL).Replace((char)(0x1F), Convert.ToChar(" "));
XmlReader reader = XmlReader.Create(new MemoryStream(Encoding.Default.GetBytes(feedAsString)), settings);
//XmlReader reader = XmlReader.Create(URL);
SyndicationFeed Feed = SyndicationFeed.Load(reader);
reader.Close();
foreach (SyndicationItem item in Feed.Items)
//Solar Winds RSS data
Thanks, Sures | MCTS SharePoint -
Dear SharePoint Developers,
Please help.
I need to know How to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx?
I think this is a "sealed column", whatever that is, which is shown in SPD 2013 as a column of content type "document, folder, MyCustomContentType".
I know when I set the column order in my custom Content Type settings page, it is correct.
But, when I load the NewDocSet.aspx page, the column order that I set in the settings page is NOT used for this "sealed column" which is bad.
Can you help?
Please advise.
Thanks.
Mark Kamoski
-- Mark KamoskiHi,
According to your post, my understanding is that you want to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx.
Per my knowledge, if you have Content Type management enabled for the list or library (if you see a list of content type with the option to add more), the display order of columns is set for each content type.
Drill down into one of them and you'll see the option under the list of columns for that content type.
To apply the column order in the NewDocSet.aspx page, you need to:
Select Site Settings, under Site Collection Administration, click Content type publishing. In the Refresh All Published
Content Types section, choose Refresh all published content types on next
update.
Run two timer jobs(Content Type Hub, Content Type Subscriber) in central admin(Central Administration--> Monitoring--> Review timer jobs).
More information:
http://sharepoint.stackexchange.com/questions/95028/content-types-not-refreshing-on-sp-online
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Save JTextArea content to database problem.
after save the JTextArea content in database,
how to show them as you input,
my main meaning is how to save the enter?
thanks!Hi,
You can use the following code to export to memory
*data variable required for background processing
data: wa_indx type indx.
*EXPORT Internal Table TO MEMORY ID 'XYZ'.
*part for background processing
export tab = <your table> to database indx(xy) from wa_indx client
sy-mandt id 'XYZ'.
the following code will import from Memory and clear memory
*data variable required for background processing
data: wa_indx type indx.
imports from database the list sent by the calling program
IMPORT tab = <your table> FROM DATABASE indx(xy) TO wa_indx CLIENT sy-mandt
ID 'XYZ'.
deletes the data to save wastage of memory
DELETE FROM DATABASE indx(xy)
CLIENT sy-mandt
ID 'XYZ'.
Regards,
Samson Rodrigues. -
Existing SharePoint 2010 Content Database Attach – No Site Collections
First, let me start off by saying that I have read every single thread I could find on this subject, such as:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/0c34ca6f-0db1-4d61-a48c-c4704dd86513/currentsitecount-is-zero-in-upgraded-site
http://social.technet.microsoft.com/Forums/sharepoint/en-US/502459b3-0301-4ac3-bfc4-16ea702bb5bc/empty-site-data-after-mounting-content-database?forum=sharepointadminprevious
http://social.technet.microsoft.com/Forums/sharepoint/en-US/ec472ed5-4cdd-45ca-a327-ccc34c29c0a4/zero-site-collections-when-restoring-sp2010-content-database?forum=sharepointgeneralprevious
http://social.technet.microsoft.com/Forums/en-US/c8df1760-275a-43a4-b3fc-cf257c56d8e2/orphaned-entry-in-config-database
That said, even though my situation is a bit different than those posts, I have tried all the things!
Let me break it down:
Our prod server is a sad Frankenstein upgrade from Project/SharePoint 2003 to 2007 to 2010.
The problem is not on our prod server.
Our test server was a database attach installation. It mostly works.
The problem is, we have this old content database which housed the project sites that were created on 2003, then upgraded to 2007, then upgraded to 2010 – but when it attaches to the test server, it's empty. The "current number of site collections"
in CA shows 0 and the CurrentSiteCount in powershell = 0.
We have to keep these sites and their links for compliance reasons (7 year retention policy!) and we haven’t really cared that they aren’t working on the test server…except that we are going to be upgrading to 2013 this year, and that’s a database attach
no matter what. So I have to solve this now.
I’ve checked the following:
The data is there on the database.
The database name I’m typing is correct.
The version of the db is up to date.
The top level site is set to Exclusion.
Permissions.
Here’s what I’ve tried:
Attaching using powershell
Attaching using Central Admin
Detaching and reattaching
Running psconfig
Resetting IIS
When the database is unattached, I have tried the “Recover data from an unattached content database” function – it recognizes the database (if I type it in wrong, it tells me I don’t have access) but then finds nothing in the site collections.
The prod server is perfectly happy with these sites, and we copied the database from prod after the 2010 upgrade, so I don’t know what the issue is.
I appreciate any thoughts any of you have. I’m stumped!
ElliJ
Project Solutions Specialist
http://projectserverpants.wordpress.com/Holy lots of errors, batman!!
I think it's safe to say that the 2010 upgrade didn't hit all our sites, based on the errors and this post:
http://social.technet.microsoft.com/Forums/projectserver/en-US/c7b19345-3036-4dc1-a174-026796cdee7c/missing-server-side-dependencies-after-project-server-upgrade-from-2003-to-2010?forum=projserv2010setup
There are serveral missing setup files and one missing assembly:
Category : MissingSetupFile
Error : True
UpgradeBlocking : False
Message : File [1033\PWA\lists\wplib\dwp\Updates.dwp] is referenced [27
5] times in the database [STS_FSHAREPTP01_1], but is not inst
alled on the current farm. Please install any feature/solutio
n which contains this file.
Remedy : One or more setup files are referenced in the database [STS_F
SHAREPTP01_1], but are not installed on the current farm. Ple
ase install any feature or solution which contains these file
s.
Category : MissingAssembly
Error : True
UpgradeBlocking : False
Message : Assembly [Microsoft.Office.Project.Server.PWA,Version=12.0.0.
0,Culture=neutral,PublicKeyToken=71e9bce111e9429c] is referen
ced in the database [STS_FSHAREPTP01_1], but is not installed
on the current farm. Please install any feature/solution whi
ch contains this assembly.
Remedy : One or more assemblies are referenced in the database [STS_FS
HAREPTP01_1], but are not installed on the current farm. Plea
se install any feature or solution which contains these assem
blies.
I guess the question now is - how do we get it to upgrade ALL of the site collections and sites? I'm actually pretty sure I can figure it out from here, that test was a huge help, thanks! -
I have recently found that when using a Sharepoint 2010 Content Editor web part to house some Javascript that the window.location.href (or window.location) is not working when the end users have IE8 installed on their PC's. We have confirmed
that the window.location.href is working if the users are on IE7 or Google Chrome with the same Javascript. In addition, we added alert() to the javascript to ensure that it was infact running, which the alerts appeared on the screen with no issues.
The result that I am receiving in IE8 is that when the window.location.href is set to the url that the user should be directed to, it simply refreshes the current page and leaves the user where they originally were.
I have seen the posts to have my site setup as a Trusted Site, but this is not an option for our company as they defined all internal Sharepoint sites as trusted already. Besides this, having all users go into their Internet Options is not really a
solution but a means to annoy your users.
What I am looking for is a permanent solution that I can make within my javascript that will work for both IE7 and IE8 users within a Sharepoint 2010 environment. If anyone has any suggestions, please let me know. Thanks in advance.
Below is a snipet from my javascript code for review:
<script type="text/javascript">
function RedirectUrl() {
alert('button pressed');
var tb = document.getElementById("tbSearch").value;
var cs = document.getElementById("sfield").value;
var url = "";
if (tb != "") {
url = "FilterName=" + cs + "&FilterMultiValue=*" + tb + "*";
if (cs == "Request%5Fx0020%5FID1"){
alert("Request%20ID%20Search.aspx?" + url)
window.location.href = "Request%20ID%20Search.aspx?" + url;
else {
window.location.href = "All%20Requests.aspx?" + url;
else {
return false;
function ClearUrl() {
window.location.href = "All%20Requests.aspx";
</script>
<br/>
<span style="font-family: calibri; color: #000066; font-size: 14pt; font-weight: bold">Search</span>
<br/>
<span style="font-family: calibri; color: black">Search Field: </span>
<select id="sfield" style="font-family: calibri; font-size: 10pt">
<option value="Request%5Fx0020%5FID1">Request ID</option>
</select>  
<span style="font-family: calibri; color: black">Search Text: </span>
<input id="tbSearch" onkeypress="if (event.keyCode == 13) document.getElementById('btnSearch').click()" style="font-family: calibri"/>
<button id="btnSearch" onclick="return RedirectUrl();" type="submit" style="font-family: calibri">Search</button>
<button id="btnClear" onclick="return ClearUrl();" type="submit" style="font-family: calibri">Clear Search</button>
<br/>
<br/>
<span style="font-family: calibri; color: #000066; font-size: 14pt; font-weight: bold">Search Results - All Requests</span>
<br/>Hi,
According to your post, my understanding is that the window.location.href not worked in IE 8.
I think the issue
is likely due to the value of your variables. If they contain special or invalid characters, those needs to be passed through
encodeURIComponent before being assigned to window.location.href.
http://stackoverflow.com/questions/18278777/window-location-href-not-working-on-ie
http://stackoverflow.com/questions/6297291/window-location-problem-in-ie
You can also use the following methods to check whether it works.
Window.navigate();
Winodw.history.back();
Self.location.href;
Top.location;
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
Hi,
I am doing development in sharepoint 2010 and facing this very weird problem.
If I create a site page with the sharepoint look and feel for that site and try to save the site page,i am getting this error:**"Content in the embedded form may be changed by the the server to remove unsafe content.Do you want to reload your page to see
the results of the save? "** and when i say reload,the server removes some parts of my page, e.g onclick event of html,asp buttons.
This error just comes for any sharepoint site page,e.g i took a copy of 'How To Read Library' page just edited the text part of taht page,and when i try to save this error again comes up.
However,if i create a simple aspx page with only htmltags like head body,then thr is no problem ,everything works great. But sharepoint look and feel pages are giving troubles while saving.
has anybody seen this earlier,what could be the reason for this?
ThanksI think the excerpt and link below is the why, but the page talks about server code and not javascript. I guessing that this is why blank pages work, but not wiki pages. Can anyone verify this?
The following are general rules for using server-side code on a site page.
If the page is uncustomized, server-side code is supported on the page.
If the page is customized, server-side code does not run, and the page does not render. This includes the code-behind for the page itself.
http://msdn.microsoft.com/en-us/library/office/aa979592(v=office.14).aspx -
Content Database Status Error in SharePoint 2010 Central Administration
Hi,
I am having a new problem with SharePoint 2010 on Windows Server 2008 R2. I have SQL Server 2008 R2 as SharePoint Database on Windows Server 2008 R2. I have total no. of
Seven Content Databases for one Web Application. I found
two of my Content Databases showing Error under the
Database Status column in Manage Content Database section in
Central Administration. Five Content Databases are showing
Started.
Would someone please guide how to resolve it and whats wrong is going on?
Thanks in advance.What is the output of:
$db = Get-SPContentDatabase <error'ed db name>
$db.Status
And can you set it to Started?
$db = Get-SPContentDatabase <error'ed db name>
$db.Status = "Online"
$db.Update()
Trevor Seward, MCC
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
SharePoint 2010 Content database growing too fast
Hi,
I have a SharePoint 2010 Content database wss_content_DB which is 197 GB BUT when I calculate my site collection I can see they have used only about 70 GB. I know there is Auditdata table which is about 27 GB. Couple of days ago my content DB was about 105
GB and it Audit data log was set to unlimited once I noticed that I set to 90 days since then it jumped to 197 GB.
I have no idea what is going on.
Now I need to know
- why it is showing 197 GB in SQL server
- How can I trim audit log
- Why suddenly it's increased to 197 GB from 105 GB
Any help will be greatly appreciated.
AbdulThere is a way to deal with this table. There is an stsadm command (stsadm -o trimauditlog) as part of the infastructure update that will allow you to manage this data.
#Powershell Script to trim old AuditData table records.
$currentDate = Get-Date
#Number of days we want to keep data in the table
$NumberOfDays = -90
$DateToDelete = $currentDate.AddDays($NumberOfDays)
$DateString = ‘{0:yyyyMMdd}’ -f $DateToDelete
$STSADMCMD = “stsadm -o trimauditlog -date $DateString -databasename WSS_ContentDB”
invoke-expression “$STSADMCMD”
WHY IT SUDDENLY INCREASED:
Do this query on your SQL Instance: DBCC SQLPERF(logspace)
This will show you how the size of LOGfiles (LDF) and how much is unused, if you have alot of unused space it indicates you dont have a recent DB backup - normally backup would write log data to MDF file .
Normally you will not shrink DBs, only if you have deleted alot of data and you are not going to use space again so only do a shrink if you REALLY needs to.
http://www.microsoft.com/en-us/download/details.aspx?id=24282
Maybe you are looking for
-
I wanted to uninstall a program so I put it to the trash but I want to know if the program left some file or folder somewhere so I can completely eliminate. Thanks.
-
I only create Read Only folders can't set permissions for any file but mine
My issue is I have 25 users and an X-Serve and it seems like all the users do not have the same permissions. More specifically if a user creates a folder on the server only that user can access it. This is the same if the user creates the folder on t
-
My computer thinks my iPad is a camera. I've done Apples trouble shooting instructions. No success. When I try to d'load and install iPad Software Update it comes up with an error message when installing, saying the network connection has timed out
-
Error with DataSource with MSSQL jdbc driver
i have put the drivers of mssql in: <domain_config_dir>/domain1/server1/lib/my server.xml look like this: <jdbc-resource enabled="true" pool-name="CohispaniaPool" jndi-name="jdbc/cohispania"/> <jdbc-connection-pool steady-pool-size="8" max-po
-
Change portal language via link
Hi, I'm new to portal development. I've created custom link in the standard masthead. Like EN , when it's pressed the language of the user must change to english. Anyone know how to write this in code? Kind regards, Jonas