Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trying to find source for SqlProfileProvider.cs file
Message
 
 
À
10/04/2008 01:05:31
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01309118
Message ID:
01309586
Vues:
19
>In this line:
>
>SqlCommand cmd = new SqlCommand("UPDATE aspnet_Users SET LastActivityDate = @LastUpdatedDate WHERE UserId = '" + userId + "'", conn);
>
>What is the value of userId when it executes?
>
>As to why UTCNow see this:
>
>http://aspnet.4guysfromrolla.com/articles/081507-1.aspx
>
>John
>

Thanks a lot for coming to the rescue. This line seems to execute repeatedly with various GUIDs. I was watching username in the watch window and it showed users with the same SiteID as myself.

I'm going to check the link tomorrow, too late right now.

Thanks again for your help.

One more question - why in the UPDATE statement where is
username = lower(@username) ? Why do we use lower is SQL Server is case insensitive ?

And why we add user ID as is and not as a parameter in the string?

Thanks again.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform