SQL Tips #20 - Showing All Table Data for a Specified User


Wednesday, 20 December 2017

Sometimes you just want to see everything stored against a specific user.

Replace the userguid below with the one you want.

The Query

DECLARE @userguid nvarchar(128)
SET @userguid = 'AED66C1F-3D63-4EE1-AB23-D5D087652DA3'
SELECT * FROM aspnetusers WHERE id=@userguid

Disclaimer

These queries are provided as a guide, and are by no means perfect. I didn't write all of these - many are collated from MSDN documentation and community sources over the years.

Tags

SQL, Programming
Share with: 

Useful SQL tips - how to show all table data for a specified user


Support this Site

Buy me a coffee

Developer Courses

Pluralsight - Hardcore Developer and IT Training
Skype Web SDK: Getting Started
Skype Web SDK: Audio & Video

Popular Articles

What is Kutamo?
Kilimanjaro Climb
Kilimanjaro 2015
Kilimanjaro 2013
Australian Postcodes
New Zealand Postcodes
Worldwide City Database

Favourite Links

Kilimanjaro Climbs
Kutamo Studios
Kutamo Meetings
Litzi
ErrLog.IO
Kutamo

Tags / Keywords

SQL, Programming