How to connect SharePoint Document Library with Local file system?
Hi
I have a SharePoint Document library and in my local system i have 3TB files. It is very difficult to upload 3TB files in SharePoint.
I want a file details in SharePoint Document Library but physical file would be in local.
While click the file in Document library. The document should open from local.
Anyone help me on it.
Thanks & Regards
Poomani Sankaran
Hi,
your requirement doesn't work out-of-the-box as all data uploaded to SharePoint needs to be stored in SQL database. Thus in your case 3 TB of fileshare would need to move to SQL.
In case you don't want to go this way, there are 3rd party vendors who offer Software like AvePoint Connector. Products like these use SQL RBS (Storage Externalization API) so that files remain in your file system but metadata is kept in SharePoint. If you
need more information on that, please let me know.
Regards,
Dennis
Similar Messages
-
How to backup SharePoint Document Library
I have SharePoint 2010 And I have used it as document management system, I wandered if make backup to SharePoint database is enough to backup our documents in another word Documents is stored in SharePoint database, please advise.
You're asking a good question, but the problem is that its one that can take a
great deal of time to answer in depth. I'll try to cover the broad strokes here...
Yes, backing up your SharePoint content databases will technically create a backup of the documents that you are uploading into the SharePoint sites stored in those content databases.
BUT , there's a lot more to consider than just that. The bullet points below cover some of the big ones off the top of my head:
SharePoint stores documents in its content databases using the Binary Large Object (BLOB) data type. It is not possible to directly extract a document from a SharePoint database without going through SharePoint, at least not in a manner supported by MS.
This means that you must re-attach the restored content database to a live SharePoint farm in order to get to those documents again once you've restored the database from backup.
And that means that you'll have to rebuild an entire farm and reattach that database to it, not something that can usually be done quickly.
In order to reattach that database backup to a SharePoint farm, your new farm must be patched to at least the same version as the farm where the content database originated. So you have to be careful to track the version of SharePoint you used in the farm
and rebuild to that level.
If the site collections in that content database used any custom code, site templates, web parts, etc, you must install those into your new farm, or there's a good chance your site's won't work and you won't be able to access your content.
You'll have to re-do all of the configuration settings you customized in your new farm as well, if you want it to be able to replace the functionality of your current farm. SharePoint 2010 does introduce configuration database backups, but they're not a
complete solution (they don't include ALL of the configuration data for your farm).
Changes to the configuration of your sites in IIS, files in the SharePoint root directories, Active Directory, etc, are not captured in SQL Server or SharePoint backups. You'll need to back them up yourself.
I will qualify my comments by saying that I'm talking about this stuff from an overall Disaster Recovery perspective, not from a targeted approach to protect some specific highly important documents you're putting into SharePoint. But this is all stuff you
have to consider if you're going to use SQL Server to protect those documents.
I would recommend also taking a look at SharePoint's ability to save a document library or list as a template with content included, this can allow end users to save content on their own through the SharePoint site's UI and protect it. Or, you can use the
Export-SPWeb PowerShell CMDLET (http://technet.microsoft.com/en-us/library/ee428301.aspx ) to script out the protection of that document library as well.
Does that all make sense?
John
MCTS: WSS v3, MOSS 2007, and SCOM 2007
MCITP: Enterprise Project Management with Project Server 2007
Now Available on Amazon - The SharePoint 2010 Disaster Recovery Guide. Also available -
The SharePoint 2007 Disaster Recovery Guide.
My blog: My Central Admin. -
How to get sharepoint document library metadata details from sql?
I am creating a windows form application , in which user selects document library and after clicking on button I am creating an excel file which displays all document name with its metadata information.
The select query which I am querying to SQL Server is:
DECLARE @listId AS UNIQUEIDENTIFIER = 'c8508816-a7fb-43f1-82d1-62d79cbaf8e6';
DECLARE @fileNameFilter AS VARCHAR (250) = NULL;
DECLARE @dirFilter AS VARCHAR (250) = NULL;
SELECT DISTINCT
d.Id AS 'FileId',
d.WebId AS 'WebId',
d.SiteId AS 'SiteId',
d.DirName AS 'DirName',
d.LeafName AS 'FileName',
ISNULL(d.Size,0) AS 'Size',
d.UIVersion AS 'UIVersion',
ISNULL(d.InternalVersion,0) AS 'InternalVersion',
ISNULL(d.ETagVersion,0) AS 'ETagVersion',
d.Type as 'Type',
aud.tp_Created AS 'Created',
ui.tp_Login AS 'CreatedBy'
FROM AllDocs AS d
INNER JOIN
AllUserData AS aud
ON d.Id = aud.tp_DocId
INNER JOIN
UserInfo AS ui
ON aud.tp_Author = ui.tp_ID
WHERE d.ListId = @listId
AND (@fileNameFilter IS NULL
OR d.LeafName LIKE '%' + @fileNameFilter + '%')
AND (@dirFilter IS NULL
OR d.DirName LIKE '%' + @dirFilter + '%');
By using this query I am able to get the file name, its directory name, version but I want to fetch all data like custom fields with this query. I don't know which table to query for custom fields and content type fields.
Please help.Hello,
MS never suggest to query content database directly. If you do this then you are on risk and can face performance issue.
if you really wants to get document name and it's metadata then use lists.asmx in windows application. This is standard way to get data from site.
http://msdn.microsoft.com/en-us/library/dd490727%28v=office.12%29.aspx
Hope it could help
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
How to create a document library with the attachments of a task list?
Hi!
Basically, I need to create an event handler, that in the time when a file is attached to a task, make a copy of the file in the document library. Unfortunately this requires knowledge in programming and is not even possible for me to install the software
i need in the company computers to try. Any ideas?Unless you have third party workflow options, custom development IS required.
There are several options when it comes to the development, some of which do not require admin involvement... but they still require programming.
Scott Brickey
MCTS, MCPD, MCITP
www.sbrickey.com
Strategic Data Systems - for all your SharePoint needs -
How can i Store rtmp streaming into local File System?
I use socket and netstream.appendBytes to receive and play flv frames.
now I got the BytesArray,but how can i store them into local File?
FlashPlayer can't use Air File APIs.This is by design. Content on the Internet does not have access to your local filesystem. We offer Local Shared Objects (LSOs) for storing small amounts of information, but this would not be suitable for scraping a video feed to disk.
-
Hello All,
One of my client reported a strange behaviour.
Client mapped SharePoint document library to local share(UNC, NetWork Map Drive). Opened MS Word on local machine ,saved it to the share on his local machine. The document is saved successfully to SharePoint document library. But at the same time he can
see a file with same name in Recycle bin and the size of the document in Recycle bin is <1k.
Does any one know whether it is expected behaviour, why SharePoint putting this 1k file in Recycle bin?
I tried the same thing on my Dev Environment for both SharePoint 2010 and 2013, in both environments the behaviour is same as my client experience.
I have seen in forums some other people also experiencing this odd behaviour, but no one knows why.
any info on this much appreciated.
Regards,
AndrewHi Andrew,
i tried in my environment for 2010 and 2013. The issue doesn't occur.
Here is what i did.
1, Create a new mapped drive(\\servername\DavWWWRoot\Shared Documents) for document library
2, New a Word doc and input some string, save in the mapped drive.
3, The doc exists in the document library, but no file in Recycle Bin.
Did i miss something?
Regards,
Tom
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to
other community members reading the thread. -
Local file system for archive destination in RAC with ASM
hi Gurus .
I need an info.
I have ASM file system in 2 node RAC.
The client does not want to use flash recovery area.
Can we use the archive destination as local file system rather than ASM.
like /xyzlog1 for archvies coming from node 1 and /xyzlog2 for archive logs coming from node 2.
Imortant thing is these two destinations are anot shared with each nodes.
OS is solaris sparc 10.
version is 10.2.0.2There is huge space in the storage.
Pls tell me in general ho wdo you do this.
Do we take and one disk from the storage and format it with local file system and share it among the 2 nodes?
If so then that mount point will have same mount point name if we see it from other node... ..ryt
In this scenario if one instance is down then from the same shared mount point which is on the same node(down) can apply archves?Here, Earlier you are using any ASM shared location for ARCHIVES ?
if so you can add a CANDIDATE disk to your existing ARHCIVE disk group(shared).
if not from LUN's after format, I.e. candidates based on that you can create a new DISK group(shared) according to your space requirements. THen you can assign to log_archive_dest_1 for both the nodes to single shared location(disk group) -
Deliver a report in XML format and save it to local file system on the server
We have OBIEE 10.1.3.4 on Redhat linux. We want to have generate a report in XML format and saved it to the server's file system. Did not realize this is s difficult task. Basically
1) How to create a XML report? It is not listed in the output items of a layout template.
2) How to deliver XML the report to local file system. Look into the Delivery section of Admin page. FTP should be the best choice, but does that means that one need to install and run ftp server on the BI server box?
ThanksHi,
Since I still have problems on this subject, I would like to share on how it progresses.
Currently I have a problem of timeout in step "Truncate XML Schema" with the URL that I mentioned above.
The exact error is the following : 7000 : null : com.sunopsis.sql.l: Oracle Data Integrator TimeOut : connection with URL [...]
The connection test is still OK.
I tried to increase the value in the user's pref but there's no change. -
How to upload email from outlook to a sharepoint document library programatically.
Hi ,
I have a requirement where I need to create a outlook plugin which will upload selected emails to sharepoint document library. I am able to hold email using by creating the object of outlook.item. but could n't find a way to upload created com object
in to sharepoint library.
I need to use webservice to upload email to the document library.
can some one please help me with this?
Thanks.Hi,
Base on the description, you want to upload email from outlook to a sharepoint document library programatically.
We need to do it using Web Services, there's a purpose built web service here http://cecildt.blogspot.com/2010/10/upload-documents-to-sharepoint-2010.html
for uploading documents.
The other alternative is using email enabled document libraries
https://www.nothingbutsharepoint.com/sites/itpro/pages/how-to-setup-mail-enabled-document-libraries-in-sharepoint-2010-part-4.aspx
Best Regards,
Linda
Li -
How to rename the SharePoint Document Library existing file name using Web service
Hi,
How to rename the SharePoint Document Library existing file name using SharePoint Web service.
Is it possible. How could i do it?
Thanks & Regards
Poomani SankaranHi,
Lists.UpdateListItems Method
would be helpful for your requirement.
Here is a blog with code demo for your reference:
http://blogs.msdn.com/b/knowledgecast/archive/2009/05/20/moss-using-the-list-web-service-to-rename-a-file.aspx
Best regards,
Patrick
Patrick Liang
TechNet Community Support -
How to fetch folders and subfolders from sharepoint document library
I have document library with name . Under "Documents" there are some folders.Under some folders there are some subfolders.
I need to fetch the folders in to dropdown list. IF I select some folder in dropdownlist,I need to fetch subfolders of that folder to some other dropdownlist.
How to acheive thisThe below function get the folder name and id of subfolder where items stored folder = item.folder. Initially it will be null.
static
string GetParentFolder(SPListItem itemToFind,
SPFolder folder)
SPQuery query =
new SPQuery();
query.Query = "<Where><Eq><FieldRef Name=\"ID\"/><Value Type=\"Integer\">"+ itemToFind.ID +"</Value></Eq></Where>";
query.Folder = folder;
query.ViewAttributes = "Scope=\"Recursive\"";
SPListItemCollection items = itemToFind.ParentList.GetItems(query);
int intpartentFolderID=0 ;
if (items.Count > 0)
foreach (SPListItem item
in items)
SPFile f = item.Web.GetFile(item.Url);
string test11 = f.ParentFolder.Name;
intpartentFolderID = f.ParentFolder.Item.ID;
return (intpartentFolderID.ToString());
return (intpartentFolderID.ToString()); -
How to display the thumbnail view of the documents in Sharepoint Document Library
Is there a way that we can have the thumbnail view of the documents that are uploaded in SharePoint Document Library. We have thumbnail feature in Picture Library but can we have the same in Document Library too. Documents includes Words,Excel,PDF.
Any Suggestions PleaseHey Mike,
Good post, I'd be curious to see if anyone has used the GD Picture SDK with SharePoint, maybe there would be some sample code.
Hey Kukdai,
Developing your own solution would potentially provide a better way to accomplish your task, but before setting out on that long road you may want to try the simple customization, it's less time consuming and it will help gauge your customer's interest and
support.
Also, there is a wealth of open source code for SharePoint available on CodePlex, you might want to check that out as well. Here is the linK:
http://www.codeplex.com/
Also, here is an interesting project to consider for your task:
http://enhancedpicture.codeplex.com/
I hope that helps!
Tom Molskow SharePoint Architect - If I solved the issue please propose my reply as the answer - Thanks! -
How to grant anonymous access on sharepoint document library/list only not for web application
Hello
How to grant anonymous access on sharepoint document library/list only not for web application.I have claim based sharepoint site and has to be but i want to grant access on document library/list only.Is this possible?
Thanks
Rajesh Kumar "Changing the Face" can change nothing.But "Facing the Change" can change everything.As i am using following code
SPSite site = SPContext.Current.Site;
SPWeb web = SPContext.Current.Web;
SPSecurity.RunWithElevatedPrivileges(delegate()
using (SPSite ospSite = new SPSite(site.ID))
using (SPWeb webs = ospSite.OpenWeb(web.ID))
// Enable anonymous access on web application
webs.AllowUnsafeUpdates = true;
SPUrlZone urlZone = SPUrlZone.Default;
SPWebApplication specifiedWebApplication = ospSite.WebApplication;
SPIisSettings iisSettings = specifiedWebApplication.IisSettings[urlZone];
//iisSettings.AuthenticationMode = AuthenticationMode.Windows;
iisSettings.AllowAnonymous = true;
specifiedWebApplication.Update();
// Get document library collection here and fetch all the document urls
SPDocumentLibrary docLib = (SPDocumentLibrary)web.Lists["Documents"];
if (docLib != null)
docLib.BreakRoleInheritance(true, false);
docLib.AllowEveryoneViewItems = true;
docLib.AnonymousPermMask64 = SPBasePermissions.ViewPages | SPBasePermissions.OpenItems | SPBasePermissions.ViewVersions
| SPBasePermissions.Open | SPBasePermissions.UseClientIntegration | SPBasePermissions.ViewFormPages | SPBasePermissions.ViewListItems;
//docLib.AnonymousPermMask64 = SPBasePermissions.EmptyMask;
docLib.Update();
Should working but getting access denied......i am totally stuck at this point.
Rajesh Kumar "Changing the Face" can change nothing.But "Facing the Change" can change everything. -
How to create a 'Link to a Document' Item in a SharePoint Document Library using power shell?
Hi,
I have a document library with "Link to a document" content type. And, I have to add some links into that library using powershell. I have searched enough regarding approachs for adding a link into the library in powershell but i did not get anything yet.
Please provide some approaches and code samples to solve this problem.
Thanks,
Lalit Kumar MishraAdding Site Columns To Content Types Using PowerShell
Adding Site Columns To Content Types Using PowerShell
The below PowerShell script will allow you to add a metadata field that is either contained at the Site Collection level, Site level, or library level, to the specified Content Type.
It also contains some optional lines that you might choose to include or exclude, such as
Setting the visibility of the column in the edit form to hidden
Setting the status of the column to require values
01
function Add-SPContentTypeField
02
03
<#
04
.Synopsis
05
This function will allow you to add a library field to a Content
Type
06
.Description
07
This function will add the nominated site column/ library column to a nominated Content
Type within all of the 'Document Libraries'
in the given Site Collection
08
.Example
09
C:\PS>Add-SPContentTypeField
–SiteUrl “http://yourdomain.com/sites/Finance –FieldName
"myField" -CTypeAddedTo "myContentType"
10
.Notes
11
Name: Add-SPContentTypeField
12
Author: Petro Margaritis
13
Last Edit: 19/07/2012
14
Keywords: Fields, Site Columns, Content Types
15
.Link
16
http://thesharepointproject.com/
17
#>
18
19
Param (
20
[parameter(Mandatory=$true)][string]$SiteUrl,
21
[parameter(Mandatory=$true)][string]$FieldName,
22
[parameter(Mandatory=$true)][string]$CTypeAddedTo
23
24
25
$site = Get-SPSite
$SiteUrl
26
27
# Walk through each site in the site collection
28
$site | Get-SPWeb
-Limit all | ForEach-Object {
29
30
write-host
"Checking site:"$_.Title -Foregroundcolor
Green
31
32
# Go through each document library in the site
33
foreach
($list in $_.Lists | where
{ $_.BaseTemplate -eq "DocumentLibrary" })
34
35
36
# Check to see if the library contains the content type we are looking for
37
if (($list.ContentTypes |
where { $_.Name -eq $CTypeAddedTo
}) -eq $null)
38
39
Write-Host
"The Content:" $CTypeAddedTo "does not exist in the library:"
$list.Title -Foregroundcolor Red
40
41
else
42
43
# Check to see if the library contains the field we are looking for
44
if (($list.Fields |
where { $_.Title -eq $FieldName
}) -ne $null)
45
46
# Get the content type you want to add the field to
47
$ct
= $list.ContentTypes[$CTypeAddedTo]
48
# Get the column you want to copy
49
$field
= $list.Fields[$FieldName]
50
# Add the column to the content type
51
$ct.Fieldlinks.Add($field)
52
$ct.update()
53
54
# Add additional column settings
55
$ctFieldLinks
= $ct.FieldLinks | Where
{$_.Name -eq $field.Title}
56
# OPTIONAL: This will set the column to hidden so that it is not viewable in the edit form
57
$ctFieldLinks.Hidden =
$true
58
# Set Field to require value
59
$ctFieldLinks.Required =
$true
60
$ct.Update()
61
Write-Host
"The Field:" $field.Title "has been successfully added to the library:"
$list.Title -Foregroundcolor Cyan
62
63
else
64
65
Write-Host
"The Field:" $FieldName "does not exist in the library:"
$list.Title -Foregroundcolor Yellow
66
67
68
69
70
# Dispose of the site object
71
$site.Dispose()
72
Simply copy and paste the above into Notepad and save it as a PowerShell file with the name
Add-SPContentTypeField.ps1
view sourceprint?
1
# To run the above function you'll need to do the following - go into the saved location
2
Cd C:\scripts\
3
# Then call it using the dot prefix - note that there is a space between the dots, ..\
4
. .\Add-SPContentTypeField.ps1
5
# Now we can happily run the script like so
6
Add-SPContentTypeField –SiteUrl “http://yourdomain.com/sites/Finance –FieldName
"myField" -CTypeAddedTo "myContentType" -
How to show sharepoint documents in salesforce ?
How to show sharepoint documents in salesforce ?
I should also be able to upload documents from salesforce directly to sharepoint document library/list if the users attach a document for a record in salesforce. Any idea how to achieve this?
What are the things need to be done if my sharepoint is available in intranet Or if it is SharePoint Online , how can we link this to salesforce (as Salesforce is global and can be accessed from anywhere). What are the security measures that I need to look
at and how to achieve this?
Ex:- I have a record in salesforce account object. I have to attach a document for that record which should be directly uploaded to sharepoint and shouldn't exist in salesforce, but it should display the listview to the users once its uploaded to sharepoint
and they should see them as if they exist inside salesforce, once they click on the link in the listview of the relatedlist, it should open the document from sharepoint.
Thanks in advance.Hi,
According to your post, my understanding is that you want to show SharePoint documents in salesforce.
You need to integrate SharePoint with Salesforce.
Nick Swan
has written an article on how to integrate Salesforce and SharePoint 2007 through the Business Data Catalog.
But it might be useful as the theory is the same for using SharePoint 2010 and the Business Connectivity Services:
Salesforce and SharePoint
Outside of that, there are some useful third-party products you can have a look at.
Cloud Connector: http://www.layer2.de/en/community/FAQs/cloud-connector/Pages/Office-365-Salesforce-Integration-Migration-Replication.aspx
DocAve Data Replication: http://www.avepoint.com/salesforce-data-replication/?gclid=CNjZ8sGwl6kCFYEc4Qod-xD-uQ
DataZoom Script: http://www.siafoo.net/snippet/261
Best Regards,
Linda Li
Linda Li
TechNet Community Support
Maybe you are looking for
-
Any way to reduce password requests?
Whenever I buy content on my iPad I am required to type my password. For better or worse, my password is secure, meaning it's a pain to type with all the shifting and numbers, etc. And I am annoyed having to type it all the time. I know it's a "secur
-
Do we have any component named Product Exporter or Category Exporter in ATG
Do we have any component named Product Exporter or Category Exporter in ATG? If so, please specify any reference for the same.
-
HT5137 iPhone 5 frozen while trying to load ios8.2 how do I reset
IiPhone 5 frozen while uplo iOS8.2 how do I reset
-
ANSI SQL to Oracle Old SQL conversion
I need help to convert this ANSI SQL Query to Oracle Old school (With inline views and =(+) joins and where clasuses) CUrrent Query and new one should return same resultset ---------------------------------Query Start---------------------------------
-
Window explorer problwm in lumia 720
I have Nokia Lumia 720. The problem is related to the drop-down menu on websites. When I open a web page in internet explorer on my mobile and click the drop-down menu of the web, the list that drops down immediately rolls up and it do not stay enoug