How do I pull SharePoint 2013 list data using a SQL Query

I have been asked to write a sql query to pull data from a SharePoint 2013  List.it needs to return all the columns
Basically a Select all from the specific SharePoint list Database
I do have the  list GUID ID. But not sure  which  SQL Table or Database to look in for list data.. the site and the list is in our main SharePoint site collection.
the query only needs to be saved in SQL server

I know it isn't support but sometimes you have to share data with other programs....
 I'm stuck.. I was able to get this far...
SELECT * FROM dbo.Lists
where tp_Title ='List Name'
 how do I pull the columns of the list?
I think I still need the specific list not just the master list dbo....
those two links do not work for SQL server  and SharePoint 2013

Similar Messages

  • Unable to get the SharePoint 2013 List names using Client object model for the input URL

    Please can you help with this issue.
    We are not able to get the SharePoint 2013 List names using Client object model for the input URL.
    What we need is to use default credentials to authenticate user to get only those list which he has access to.
    clientContext.Credentials = Net.CredentialCache.DefaultCredentials
    But in this case we are getting error saying ‘The remote server returned an error: (401) Unauthorized.’
    Instead of passing Default Credentials, if we pass the User credentials using:
    clientContext.Credentials = New Net.NetworkCredential("Administrator", "password", "contoso")
    It authenticates the user and works fine. Since we are developing a web part, it would not be possible to pass the user credentials. Also, the sample source code works perfectly fine on the SharePoint 2010 environment. We need to get the same functionality
    working for SharePoint 2013.
    We are also facing the same issue while authenticating PSI(Project Server Interface) Web services for Project Server 2013.
    Can you please let us know how we can overcome the above issue? Please let us know if you need any further information from our end on the same.
    Sample code is here: http://www.projectsolution.com/Data/Support/MS/SharePointTestApplication.zip
    Regards, PJ Mistry (Email: [email protected] | Web: http://www.projectsolution.co.uk | Blog: EPMGuy.com)

    Hi Mistry,
    I sure that CSOM will authenticate without passing the
    "clientContext.Credentials = Net.CredentialCache.DefaultCredentials" by default. It will take the current login user credentials by default. For more details about the CSOM operations refer the below link.
    http://msdn.microsoft.com/en-us/library/office/fp179912.aspx
    -- Vadivelu B Life with SharePoint

  • Can we use Data Pump to export data, using a SQL query, doing a join

    Folks,
    I have a quick question.
    Using Oracle 10g R2 on Solaris 10.
    Can Data Pump be used to export data, using a SQL query which is doing a join between 3 tables ?
    Thanks,
    Ashish

    Hello,
    No , this is from expdp help=Y
    QUERY                 Predicate clause used to export a subset of a table.
    Regards

  • How to Get Default Value of a Data Type in SQL Query.

    Hi all,
    I am creating a procedure which will take input the table name and Column Name.
    In the Output i would like to have the data type and default value of that data type which will be used by a another procedure to blank the selected column in the database.
    I tried with SET NULL on the column but as the database is of navision the table have property set to NOT NULL.
    Here is what i have done till now.
    Create Procedure Get_Column_type
    @parm_table_name nvarchar(200),
    @parm_column_name nvarchar(20),
    @parm_result nvarchar(20)OUTPUT
    AS
    BEGIN 
    select @parm_result =
    DATA_TYPE from INFORMATION_SCHEMA.COLUMNS IC
    where TABLE_NAME = '[' + @parm_table_name +']' and COLUMN_NAME = '[' + @parm_column_name + ']'
    END
    GO
    Now instead on write a case statement for so many data types in SQL, i was thinking is it possible someway that above procedure also returns the default value which i can set in another procedure.
    Let me know if its possible or not? Thanks in advance.

    Do you looking for something like this?
    create table t10 ( c int default 1)
    SELECT so.name AS table_name, 
              sc.name AS column_name, 
              sm.text AS default_value
         FROM sys.sysobjects so
         JOIN sys.syscolumns sc ON sc.id = so.id
    LEFT JOIN sys.syscomments SM ON sm.id = sc.cdefault
        WHERE so.xtype = 'U' 
          AND SO.name = 't10'
     ORDER BY so.[name], sc.colid
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • InfoPath 2013 Read SharePoint 2013 File data using Rest API Access Denied Exception

    I am designing a set of Forms and they need to query Data from among themselves.
    The whole set up described below works in the Form Filler/Preview
    I'll call them Form A and Form B
    Form A has a repeating table that needs to be displayed in Form B
    The user selects from a DropDown in Form B an Instance of Form A, using the selected I REST connection is executed so the Form A xml is available inside Form B. The connection is set up as follows:
    _api/web/lists/ListName/Items(SelectedId)/File/$value
    I publish the form as site content type, add it to a library, after triggering the REST connection I get an error. ULS gives me a 401 Access denied for NT Authority\IUSR (as it should since I don't have anonymous access enabled [nor has that solved the issue])
    That's my issue. All requests on the REST api are being executed as anonymous and not as a user that should have permission.
    Things I've tried:
    1. The connection uses a UDCX file, the conenction is set to use the form server proxy. The proxy has been enabled for the Form Services, web application and user connection. I've tried it with a configured App ID or an Explicit account
    2. I've tried enabling Anonymous access, but have had no success
    3. I've gotten the Query to work on Post Backs by adding the following to the web.config:
    <location path="_layouts/15/Postback.FormServer.aspx">
        <system.web>
          <identity impersonate="false" userName="bhs\sp_admin_dev" password="M1crosoft" />
        </system.web>
      </location>
    And while it solves the issue for Postback requests and I could add FormServer.aspx to the list I can't use this solution for a production environment, nor can I predict other issues that could be caused by the change.
    I haven't been able to find any references to this error so I wonder if I'm doing something wrong or if there's another way to do this.
    If I've been unclear on anything, let me know and I'll try to clear it up.

    Hi Choggo,
    thank you for your information,
    regarding this issue, it seems we may need to debug and trace your network, to check if should the parameter that is used for the REST connection is correct.
    i checked with infopath team members regarding this issue, they suggest that you try with impersonation, so that the user that login is not anonymous, but the user that you already been assign with.
    the last suggestions from our sharepoint team members that we are able to do, as we have limited tools on this forum support, that you need to check the file udcx itself, do the permission to access that file is correct, so for example, if the file is not
    having the permission to be read/access then the system may result with anonymous account, so that we may have the result that the data that should be passed are able to accessed.
    if should this suggestion not applicable to your environment, our sharepoint team members suggest that you to open an incident ticket, so that we can check and re-confirm more deep for you if should this is an undocumented feature or not.  the action
    plans is to have a remote session, then we can trace the data passing process, that is already correct, so that the IUSR is not appear when it authenticate.
    http://support.microsoft.com/contactus/?wa=wsignin1.0
    Regards,
    Aries
    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.

  • I am using the database connectivity toolkit to retrieve data using a SQL query. The database has 1 million records, I am retrieving 4000 records from the database and the results are taking too long to get, is there any way of speeding it up?

    I am using the "fetch all" vi to do this, but it is retrieving one record at a time, (if you examine the block diagram) How can i retrieve all records in a faster more efficient manner?

    If this isn't faster than your previous method, then I think you found the wrong example. If you have the Database Connectivity Toolkit installed, then go to the LabVIEW Help menu and select "Find Examples". It defaults to searching for tasks, so open the "Communicating with External Applications" and "Databases" and open the Read All Data. The List Column names just gives the correct header to the resulting table and is a fast operation. That's not what you are supposed to be looking at ... it's the DBTools Select All Data subVI that is the important one. If you open it and look at its diagram, you'll see that it uses a completely different set of ADO methods and properties to retrieve all the data.

  • Power Pivot 2013 Using SharePoint 2013 List as Source Data

    Background: On a SharePoint 2013 site, there are lists that have the exact same columns but due to their size I had to create a different list for each year.
    These are essentially my data lists or tables that end users enter data into. These lists have look up columns in them, referencing columns from look up lists or tables located on the same site.
    Goals:
    1) Create a Power Pivot Gallery on SharePoint 2013 that is able to leverage the "manage data refresh" feature using the SharePoint 2013 List data that is on the same SharePoint 2013 site.  
    2) Combine all the data lists/tables into one table once in Power Pivot 2013. The Look Up lists/tables will remain separate.
    Challenge: Being able to merge or do a union query to the "data lists" and still maintain the ability to leverage the "manage data refresh" feature. 
    This is a tactical, quick fix solution, and I
    cannot use SQL Server and am operating under the assumption that I do not have Access Services 2013 as an option.  
    Failed Attempt #1: What I already tried was linking the lists to an Access 2013 database and did a Union query from Power Pivot which merged the data from the different data tables
    as I wanted it to. Then I uploaded that Access Database to a document library on that same site, thinking that I could maintain the ability to leverage the "manage data refresh" feature but I was wrong.
    Any thoughts or suggestions? 
    Thanks in advance for any help!
    Cheers, Johnny
    Johnny

    You can connect to SharePoint Lists using Power Query (and of course Union multiple Lists and more using Pwer Query) - but Automatic refresh would not work with SharePoint. Power BI (Cloud service) allows auto refresh of Power Query, but not on SharePoint.
    Hopefully some day soon.
    Regards, Avi
    www.powerpivotpro.com
    Wiki:How to ask a Power Pivot Question to get a prompt, accurate and helpful response

  • SharePoint 2013 Media Player using UNC path directly without using a Website in IIS (either out of the box or custom player using javascript only)

    Hi,
    There isn't much info on this and I am hoping its possible.
    I have come across the following article which explains how we can setup SharePoint 2013 Asset Library using video links using a website in IIS that is mapped to a UNC path.
    http://stevemannspath.blogspot.com.au/2012/12/sharepoint-2013-videos-in-sharepoint.html
    This is great. However we have an issue where I work and I need somehow to get SharePoint mediaplayer to point to a video directly using the UNC path like :- \\WINSP13\TempVideos\NTV_Carr_Indig.wmv without the use of a website in IIS.
    I understand that we won't be able to stream the video then thats ok.
    when trying to add a video link to an asset library using the UNC path, we get the following error: We don't support
    playing a video of that format from a file share.
    Is there a way or a workaround to do this? we are using only javascript to do this (AngularJS or any custom Javascript player such as MediaElement)
    Thanks
    Kind Regards,
    Will

    From a SharePoint architecture perspective, this is a BAD design, since you are rerouting the communications (from the client to the UNC) away from and outside of SharePoint... as a result, SP cannot provide any level of guarantee about the ability for videos
    to play on the client machine.
    Secondarily, I'm not sure that the browser will let you pull resources from such different locations (doing so has been the root of several type of attacks, such as "Cross Site Scripting").
    That said (and assuming the browser lets you), you can always use JS to handle creating the video player HTML and setting the UNC location... instead of using a site asset library to store the links, just create a list for the videos
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • SharePoint 2013 List - Multiple Data Types in the Same List

    In the same SharePoint 2013 list in Data Sheet View, I want to have one column where my end users enter inputs for KPIs. There are 3 groups of KPIs (A, B and C) and they each have different data types (A-string, B-decimal, C-percentage) and I want to be
    able to base their input options off of the KPI type
    Does anyone have any suggestions on how I can leverage my parent-child relationships so when an end user...
    1. Picks KPI type A, they can select from a choice filed (Green, Yellow, Red)
    2. Picks KPI Type B, they can enter a decimal (-1.000 to 2.000)
    3. Picks KPI Type C, they can enter a percentage (-100.00% to 100.00%
    I'm using if I want to keep this in one list, one column and in data sheet view that the out of the box solutions won't meet my requirements. I was looking at some solutions from Bamboo (Lookup Selector Column) but don't think that applies here.
    Thanks!
    Johnny

    Hi Johnny, you can accomplish this using cascading lookups in InfoPath if that program is available to you. Otherwise, if you want a 3rd party product, we use the Kwiz cascading lookup and it's worked wonders for us:
    http://www.kwizcom.com/sharepoint-add-ons/sharepoint-cascading-lookup-plus/overview/
    Note: I have no relationship with Kwiz, just vouching for the product.
    cameron rautmann

  • How to have profile thumbnails image appear in a SharePoint 2013 list?

    Hello,
    I am not using MySites, but have a SharePoint 2013 list with profiles in them.  They were imported from Active Directory, where I do have thumbnail images for each profile.  I am using SharePoint 2013.  How would I get these images from AD
    into the SharePoint list?  I have the attribute setup in User Profiles Synchronization, but the images did not show up.  I followed these steps in this posting, but I did not do the PowerShell step, since I am not using MySites. 
    http://richardstk.com/2013/04/12/import-user-photos-from-active-directory-into-sharepoint-2013/
    How can I get these images imported to this SharePoint list?
    Thanks,
    Paul
    Paul

    Hi Paul,
    Thanks for posting your issue, Kindlt run the below mentions script to get the profile picture in List view
    Update-SPProfilePhotoStore –MySiteHostLocation
    http://mysites –CreateThumbnailsForImportedPhotos
    $true
    Also, browse below mentioned URLs for more details on this
    http://technet.microsoft.com/en-us/library/ff607547.aspx
    http://blog.blumshapiro.com/blog/2013/05/13/adding-pictures-to-active-directory-and-show-in-sharepoint-2013/
    http://spsawyer.wordpress.com/2013/07/31/sharepoint-2013-user-profile-photo-sizes/
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Workflow not triggering when changing Item-level Permissions in Sharepoint 2013 list

    Scenario:
    We have a custom list in Sharepoint 2013 that we use for Case Management. We have a workflow that triggers on a created item generated from an email. The user then gets a reply with a link to his own case.
    I want the users only to be able to see their own cases and no one elses.  When I change this under
    Advanced Settings under List Settings and
    Item-level Permissions and set them to Read items that were created by the user
    and Create items and edit items that were created by the user
    the workflow doesn´t trigger.
    How can I resolve this? I've tried every possible out-of-the-box permissions but with no result. Help!
    Thanks in advance!
    // Browncreek

    When you're testing , remember you cant trigger declarative workflow from the System Account - you need a general user account for auto-trigger workflows.  Good luck!
    Chris McNulty MCSE/MCTS/MSA/MVTSP | blog http://www.chrismcnulty.net/blog | twitter @cmcnulty2000 Microsoft Community Contributor Award 2011
    Hi, I have the same problem. Except that I am not using an email to create a new item. The item is created by members of a SharePoint group that have Contribute access to the list. When use the same settings i.e.
    Read items that were created by the user and Create items and edit items that were created by the user,
    the workflow does not trigger. If I set it back to Real all items and Create
    and Edit all items, it triggers the workflow.
    Please help me resolve as I have rolled this out to pilot users and am having this trouble.
    Thanks,
    Vishal

  • Open Edit form directly when list item is clicked in Sharepoint 2013 list

    Hi,
    I have a list web part, wherein the user clicks the item it should open in the Edit form directly. various forum i checked was for SharePoint 2010, as we do not have design mode in SharePoint designer 2013, I am unable to do.. I know
    if I the change the form type from default page to edit page, it will work, but not sure about how to go ahead. Could anyone help me to achieve this please....

    Sunitha,
    You can do this with some jQuery and JavaScript.  Look at this post:
    http://brandonatkinson.blogspot.com/2013/11/open-sharepoint-2013-list-items.html
    Basically, add a Script Editor Web Part to the page and include this snippet:
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
    <script type="text/javascript">
    $(function() {
    // Change all display form links to edit form links
    $('.ms-vb a[href*="listform.aspx"]').each(function(){
    var link = $(this).attr('href');
    link = link.replace("PageType=4", "PageType=6");
    $(this).attr('href', link);
    </script>
    Brandon Atkinson
    Blog: http://brandonatkinson.blogspot.com

  • Problem connecting PowerPivot's (Office 2013) Data Model deployed on SharePoint 2013 to data source.

    Hello:
    Our configurations is as follow :  SharePoint 2013 is on Server A;  SQL Server Analysis server (SQL 2014) is on DB Server B;   
    SharePoint databases (sp_ ...) and our Data Mart (SQL 2014) are on server B. All servers runs Windows 2012 OS.
    On my desktop I built a simple Excel 2013 workbook with PowerPivot Data Model that imported several tables from our Data Mart (server B above). Then created a Power View report. Locally everything works fine. 
    But when I uploaded this workbook to our SharePoint PowerPivot gallery and was trying to refresh data, I got the connection error: It’s very long but the ErrorCode is “rsCannotRetriveModel”. The end of the error message is:
    'TemporaryDataSource'.</Message><MoreInformation><Source>Microsoft.AnalysisServices.SPClient</Source>
    <Message>Call to Excel Services returned an error.</Message>
    <MoreInformation><Source></Source><Message>We were unable to refresh one or more data connections in this workbook.
    The following connections failed to refresh:ThisWorkbookDataModel</Message>
    <MoreInformation><Source>Microsoft.Office.Excel.Server.WebServices</Source><Message>
    We were unable to refresh one or more data connections in this workbook. The following connections failed to refresh:ThisWorkbookDataModel</Message></MoreInformation>
    </MoreInformation></MoreInformation></MoreInformation></MoreInformation><Warnings xmlns="http://www.microsoft.com/sql/reportingservices" /></detail>
    Our Excel Services on the SharePoint work fine and refresh data on different excel workbooks (with no Data Model) just fine.  We are using an unattended account for Excel Services to connect from SharePoint server to our databases. Found a few references
    on the topic, tried them but with no luck.
    Please advise!
    Regards
    -Jeff
    Jeff Gorvits

    Hi Jeff,
    Firstly, I need to confirm whether you are refreshing Data connection in browser, since Data Refresh is not supported in Office Web Apps. Please refer more information in this article:
    http://blogs.technet.com/b/excel_services__powerpivot_for_sharepoint_support_blog/archive/2013/01/31/powerpivot-for-sharepoint-browser-refresh-fails-data-refresh-not-supported-in-office-web-apps.aspx
    From the error "Call to Excel Services returned an error", please verify the location of the
    data source, for example an Excel workbook, is registered as a trusted location with Excel Services:
    https://technet.microsoft.com/en-us/library/jj219699(v=office.15).aspx
    Since you are using unattended account for Excel Services to connect from SP to databases, I wonder if the issue occurs to unattended referesh, if so, please refer to:
    http://social.technet.microsoft.com/wiki/contents/articles/3870.troubleshoot-powerpivot-data-refresh.aspx#Problems_using_the_Unattended_data_refresh_account
    Regards,
    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] .
    Rebecca Tu
    TechNet Community Support

  • Custom sendemail in sharepoint 2013 designer workflow using dictionary object with email template from list

    I  am looking for custom sendemail in sharepoint 2013 designer workflow using dictionary object with email template from list
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    Hi Greetings.
    pls check if it helps you.
    http://msdn.microsoft.com/en-us/library/office/jj554504(v=office.15).aspx
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Consuming SharePoint 2010 Lists Data in the SSRS 2008 R2 Reports

    When I am trying to create a report using SharePoint 2010 List I am getting error.
    Firstly I opened SQL BI Development Studio, then created Shared DataSource then created Report.
    Then from Report Data pane created Data Source and all was Ok
    But when I am creating DataSet for the SharePoint 2010 List and when clicking on Query Builder and running the query I am getting following error:
    "Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown".
    Now what should I do next to connect my SharePoint List.

    What's your SOAP call look like for the webservice?
    Brandon James SharePoint Developer/Administrator

Maybe you are looking for

  • Spry Accordion Issue

    Spry Accordion appears to snap shut to its default setting the moment you use it to navigate to a linked page. I want to keep the accordion open on the page that it represents rather than having the user open up the accordion each time they wish to n

  • Disk Utility / Net Restore: "You must authenticate in order to restore".

    Hi, maybe someone can help me: I would like to install an image which was made by Bombichs NetRestore-Helper to an over Netboot bootet Imac. Every time I press the restore-button in the disk utility, I get the same Message: "You must authenticate in

  • NI 9237

    Please help us with to setup NI 9237 and NI 9411 with NI cDAQ-9174  to measure the load, torque and angle at the same time. We are using RJ 50 for the connection between load and torque sensors to NI 9237. For the Load cell, we wired positive and neg

  • Iphoto isn't importing iphone photos

    When I try to close IPhoto it says : Photos are being imported to the photo library. Please wait for import to complete.  This happens when I am not trying to import any photos.  Then when I have my IPhone connected it will not allow me to select eit

  • Open apps in task bar shows old images of we pages and even photos

    I have been frustrated to discover after I close out a website or close and even delete a photo after I switch apps and come back to it maybe even a day or week later sometimes safari and photos will display old data on pages that aren't really open