R2i DotNetNuke® Forum

R2i wants you to have the opportunity to ask questions, post reviews, help others or just rant and rave about DotNetNuke® or any of the R2i Modules and Skins. Our team spends hour upon hour, day after day, working on custom DotNetNuke® modules and services; please feel free to ask us anything.
 
User Geo Lookup
Last Post 01 Jan 1900 05:00 AM by . 3 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Informative
watcher44User is Offline
New Member
New Member
Posts:9

--
18 May 2007 02:18 PM  
What is the purpose of this table and is it needed for Go Map to function properly if I am not plotting my users on a map? This table prevents me from deleting any users from my site. I have to go into the database and delete the UserGeoLookup reference to the user first and then I can remove the user. The user's GeoLookup is set to -1. Help is appreciated, Thanks.
ewalkerUser is Offline
Basic Member
Basic Member
Posts:221

--
18 May 2007 02:25 PM  
Hi Watcher44,

We will look into this problem.
Eric Walker - R2integrated
ewalkerUser is Offline
Basic Member
Basic Member
Posts:221

--
18 May 2007 08:14 PM  
Hi Watcher44,
The issue here is in a foreign key on the UserGeoLookup table. If you recreate the FK_UserGeoLookup_Users such that a delete in the User table cascades to the UserGeoLookup table, deleting a DNN user will work again.
This is the SQL that should change this behavior (assuming you don't have an object qualifier)
[quote]
ALTER TABLE UserGeoLookup
DROP CONSTRAINT FK_UserGeoLookup_Users
GO

ALTER TABLE UserGeoLookup ADD CONSTRAINT
FK_UserGeoLookup_Users FOREIGN KEY
(
UserID
) REFERENCES Users
(
UserID
) ON UPDATE NO ACTION
ON DELETE CASCADE
[/quote]

This change will be included in the next release of GoMap.
Eric Walker - R2integrated
watcher44User is Offline
New Member
New Member
Posts:9

--
19 May 2007 01:40 AM  
Worked like a champ. Thanks!
You are not authorized to post a reply.

Active Forums 4.1
 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seatle, WA • 410.327.0007 • info@R2Integrated.com

Bookmark & Share Bookmark and Share