Quantcast
Channel: All About SharePoint » survey
Viewing all articles
Browse latest Browse all 3

Find Users who Did Anonymous Surveys in SharePoint

$
0
0

I had an interesting request to find out who has done the Anonymous Surveys in SharePoint. you cannot see the name from the SharePoint interface but you can directly query your SharePoint content database:

SELECT AllUserData.*, UserInfo.tp_Title
FROM AllUserData LEFT JOIN
   UserInfo ON UserInfo.tp_id = tp_author
WHERE AllUserData.tp_listid = '00000000-0000-0000-0000-000000000000'
  AND UserInfo.tp_siteid = '11111111-1111-1111-1111-111111111111'

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

Where the 0000s and 1111s above are your actual survey list guid and site collection guid.

To find List GUID is easy, just go to list setting and click “Audience targeting settins”, the GUID will be at the end of the URL.

To find site collection guid, you will need go to your content database and open the “Sites” table. Also if you are interested on subsite ID you can search on web table



Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images