Home > Sharepoint > Fetch the Sharepoint ListItem value directly from SQL Server

Fetch the Sharepoint ListItem value directly from SQL Server

Hi,

    Are you looking to get the ListItem Values from the sharepoint List directly from the Sql Server, If you know List Name or List GUID then you can get the values.  Use the below query and replace the GUID or Listname in where part of the Sql query

select

 

dbo.UserData.nvarchar3,dbo

.UserData.nvarchar4,

dbo.UserData.nvarchar5,dbo

.UserData.nvarchar6from

 

dbo.UserDatawhere

 

dbo.UserData.tp_ListId = ‘{A1E60AA0-2A83-4CE5-AB2D-E22236206772}’

(or another type)

select dbo

 

.UserData.nvarchar3,dbo

.UserData.nvarchar4,dbo

.UserData.nvarchar5,dbo

.UserData.nvarchar6from

 

dbo.Lists innerjoin dbo.UserData on dbo.Lists.tp_ID=dbo.UserData.tp_ListIdwhere

 

(tp_Title=‘Catagory’)

Advertisements
Categories: Sharepoint
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: