Click here to Skip to main content
15,901,122 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a list in sharepoint 2013 and in visual studio i have textbox and on entering the value in the textbox all the relevant detail regarding that value should be displayed in the grid view.
Posted

1 solution

I have had some success accessing SharePoint lists with the ACE engine via ADO.net and OleDb, but a better solution may be to use SSIS or another ETL system make a more-accessible copy of the list.

http://www.connectionstrings.com/sharepoint/[^]

Microsoft ACE OLEDB 12.0

Read, update and delete

Provider=Microsoft.ACE.OLEDB.12.0;WSS;IMEX=2;RetrieveIds=Yes;
DATABASE=http://mysharepointsite.com/documents/;
LIST={5999B8A0-0C2F-4D4D-9C5A-D7B146E49698};


The keyword "Database" specifies the SharePoint URL

The keyword "List" specifies the GUID value for the desired SharePoint list (list=table)

Query without specifying table names. Ie use "SELECT  FROM table" or "SELECT  FROM list" (same result from both).


I specify the name of the list rather than the GUID.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900