Pazartesi

Search results differ from computer to computer in Sharepoint

I encountered a very strange problem in SharePoint last week. The search was working okay in every web application but one.

the indexing process was working all right, the method,  crawler had no errors.

I tried over and over every way I know to make it work. The strange thing was the advanced search was able to return results if you select the file name as a managed property.

I suspected that the problem could be Internet explorer but after getting the same "no results were found" screen with google chrome I stopped suspecting from IE.

It then hit me, that I was able to run the search without problems on the server. At first I thought it was a permission problem and the users were not permitted to see the search results. but nope!

I was able to return search results on the server with my username so I came up to realize that the search results were differing / varying from computer to computer. The first thing I suspected was internet explorer..again!!

and I finally found this brilliant blog post which rescued me from this rumble!
http://excel.shilor.org/2010/03/inconsistent-moss-search-results-in.html

and here is my technet forum post which did not really helped at all :)

http://social.technet.microsoft.com/Forums/en/sharepointsearch/thread/eef860e8-5eb1-4498-9495-cd0c09e39913

I locked myself out in Windows 7

today, I had to re-enter the domain. While I was trying to re-join the domain I encountered strange errors and find myself in a situation where:

- I cannot run as administrator--nothing!
- the default administrator account was disabled
- The username / password which I typed in when installing windows 7 does not seemed to help me, has no priviliges/permissions to run net user commands

I was completely stuck!

so here is what I did:

  • shut down the computer, restart and press F8 to select startup options. select safe mode: it will login as administrator
  • Run the command prompt as administrator (by right click-run as administrator)
  • I typed net user administrator /active:yes but it complained like "the password does not meet with policy requirements" so
  • type net user administrator Password  (password should be the password you desire)
  • then net user administrator /active:yes 
Bravo! now after a normal startup enter with your administrator account and do anything you want!

Salı

How to shrink log file (ldf) on SQL Server 2005-2008

If you are using Full or Bulk logged recovery model, the log file sometimes grows huge and you have to shrink it once I saw a logfile that is 40 GB !

open SQL Server Management Studio and open a new query window, execute this chunk of t-sql code:


USE [Your_db]
GO DBCC SHRINKFILE(N'Your_db_log', 50)
BACKUP LOG Your_db WITH TRUNCATE_ONLY
DBCC SHRINKFILE(N'Your_db_log', 50)
GO

Pazartesi

How to setup & configure a Records Center in Sharepoint 2007

Records Center Template is a powerful content management ability of Microsoft Office Sharepoint Server 2007.

If you need to archive content without coping to create unique directory names or weed out documents to place them to libraries which they should reside; reports center is your simplest solution.

To create a Record Center Site, Navigate to Create Site and select "Records Center" under Enterprise Tab.


Here is a screenshot of Records Center Site:



Now suppose we want to record the employee's expense reports. 

  1. Create a new Records Center and name it : Records
  2. Create a document library in the Records Site, this will be the place you're going to archive your expense reports.
  3. In Records Center, Go to the Records Routing list and create an item called "expense report". Fill in the required areas like in the screenshot below. type the document library's name in step 2 in location text box. 

3.Create a new content type in the root site and name it : Expense Report

4. Navigate to Central Administration>Application Management > External Service Connections > Records Center 











Select "connect to a records center" and type the url as:

http://your-site-url/_vti_bin/officialfile.asmx

your site url should be something like this: http://contoso/records (depends on where you created your records center site)

Type a Display name. This display name will be visible when people select "send to" option from a document library to forward their document to the records site.

click ok to complete.

Now modify some library on your root site or anywhere under your root site to accept "expense report" content type. ( you can do so by navigating document library settings>advanced library settings, allow management of content types here. then return to settings page and add "expense report" content type there )


See? now when you select send to option, you see the "expense report" link.

When you click to send it, it is automatically  added to the expense reports document library under records center, under a folder with a unique name.