Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Upgrade to 04.05.03 99.9% PerfectUpgrade to 04.05.03 99.9% Perfect
Previous
 
Next
New Post
6/17/2007 8:47 AM
 

I wondered if anyone could take a look at the following error messages generated during an upgrade from 04.00.03 to 04.05.03?  Everything went well except for three errors and I am only concerned about the last one so I wondered if anyone cared to comment on how to fix it, if it even needs fixing and what might fail if it is not fixed.  Other than these errors, things are running fine. 

Thanks much,
Weezy

04.04.00: Error: HelpURL
04.05.01: Error: Access to the path 'D:\DotNetNuke_2\Website\RSS.aspx.vb' is denied. (Probably no big deal and it's likely my fault at any rate.)
This is the one I am concerned about: 04.00.04: System.Data.SqlClient.SqlException: Incorrect syntax near 'LastUpdated'.
Incorrect syntax near 'LastUpdated'.
Incorrect syntax near 'LastUpdated'.
Incorrect syntax near 'LastUpdated'.
Incorrect syntax near 'LastUpdated'.
Incorrect syntax near 'LastUpdated'.
Incorrect syntax near 'LastUpdated'.
Incorrect syntax near 'LastUpdated'.
Incorrect syntax near 'LastUpdated'.
Incorrect syntax near 'LastUpdated'.
Incorrect syntax near 'LastUpdated'.
Incorrect syntax near 'LastUpdated'.
Incorrect syntax near 'LastUpdated'.
Incorrect syntax near 'LastUpdated'.
Incorrect syntax near 'LastUpdated'.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
   at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL)
   at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions)


/* Transfer Profile  */
/*********************/

If (SELECT dbo.fn_GetVersion(3,2,3)) = 0
    BEGIN
        --Create Temp Table
        CREATE TABLE dbo.FlatProfile (
             [UserID] [int] ,
             [PortalID] [int],
             [Username] [nvarchar] (256) NULL ,
             [FirstName] [nvarchar] (256) NULL ,
             [LastName] [nvarchar] (256) NULL ,
             [Street] [nvarchar] (256) NULL ,
             [Unit] [nvarchar] (128) NULL ,
             [City] [nvarchar] (256) NULL ,
             [Country] [nvarchar] (256) NULL ,
             [Region] [nvarchar] (256) NULL ,
             [PostalCode] [nvarchar] (128) NULL ,
             [Telephone] [nvarchar] (128) NULL ,
             [Cell] [nvarchar] (128) NULL ,
             [Fax] [nvarchar] (128) NULL ,
             [Website] [nvarchar] (256) NULL ,
             [IM] [nvarchar] (256) NULL,
             [PreferredLocale] [nvarchar] (128) NULL ,
             [TimeZone] [nvarchar] (256) NULL,
             [LastUpdatedDate] [datetime]
           
        )

        --Extract from Profile Blob to Temp Table
        INSERT INTO dbo.FlatProfile
            SELECT
                dbo.users.userid,
                dbo.userportals.portalid,
                dbo.users.username,
                dbo.users.firstname,
                dbo.users.lastname,
                dbo.GetProfileElement('Street',PropertyNames,PropertyValuesString) Street, 
                dbo.GetProfileElement('Unit',PropertyNames,PropertyValuesString) Unit, 
                dbo.GetProfileElement('City',PropertyNames,PropertyValuesString) City,
                dbo.GetProfileElement('Country',PropertyNames,PropertyValuesString) Country,
                dbo.GetProfileElement('Region',PropertyNames,PropertyValuesString) Region,
                dbo.GetProfileElement('PostalCode',PropertyNames,PropertyValuesString) PostalCode,
                dbo.GetProfileElement('Telephone',PropertyNames,PropertyValuesString) Telephone,
                dbo.GetProfileElement('Cell',PropertyNames,PropertyValuesString) Cell,
                dbo.GetProfileElement('Fax',PropertyNames,PropertyValuesString) Fax,
                dbo.GetProfileElement('Website',PropertyNames,PropertyValuesString) Website, 
                dbo.GetProfileElement('IM',PropertyNames,PropertyValuesString) IM,
                dbo.GetProfileElement('PreferredLocale',PropertyNames,PropertyValuesString) PreferredLocale,
                dbo.GetProfileElement('TimeZone',PropertyNames,PropertyValuesString) TimeZone,
                aspnet_profile.LastUpdatedDate

            FROM dbo.Users
                inner join dbo.userportals on dbo.users.userid = dbo.userportals.userid
                inner join aspnet_users on dbo.users.username = aspnet_users.username
                inner join aspnet_profile on aspnet_profile.userid = aspnet_users.userid
            where dbo.userportals.portalid = PortalID

        --Move to UserProfile Table
        EXECUTE dbo.TransferUsersFromFlatProfile N'FirstName'
        EXECUTE dbo.TransferUsersFromFlatProfile N'LastName'
        EXECUTE dbo.TransferUsersFromFlatProfile N'Unit'
        EXECUTE dbo.TransferUsersFromFlatProfile N'Street'
        EXECUTE dbo.TransferUsersFromFlatProfile N'City'
        EXECUTE dbo.TransferUsersFromFlatProfile N'Region'
        EXECUTE dbo.TransferUsersFromFlatProfile N'PostalCode'
        EXECUTE dbo.TransferUsersFromFlatProfile N'Country'
        EXECUTE dbo.TransferUsersFromFlatProfile N'Telephone'
        EXECUTE dbo.TransferUsersFromFlatProfile N'Fax'
        EXECUTE dbo.TransferUsersFromFlatProfile N'Cell'
        EXECUTE dbo.TransferUsersFromFlatProfile N'Website'
        EXECUTE dbo.TransferUsersFromFlatProfile N'IM'
        EXECUTE dbo.TransferUsersFromFlatProfile N'TimeZone'
        EXECUTE dbo.TransferUsersFromFlatProfile N'PreferredLocale'

        --Drop temp objects
        DROP TABLE dbo.FlatProfile
        DROP PROCEDURE dbo.TransferUsersFromFlatProfile
    END

 
New Post
6/18/2007 10:09 AM
 

Have you tried rerunning the above listed scipt?

Are you noticing any errors when looking at users or logging in?


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
6/18/2007 10:23 AM
 

Hi Mitch:

Thanks for answering.  I just tried to run that script and it said "Could not find stored procedure 'dbo.TransferUsersFromFlatProfile'." so then I dug around to find the script that creates TransferUsersFromFlatProfile and can't seem to find it.  Any idea where it's at?

No, I haven't seen any errors, but this is a pretty empty install.  I have about ten users with no additional profile info and I can browse them fine and did a couple of updates as well.

Thanks again.

Weezy

 

 
New Post
6/18/2007 11:33 AM
 

Very interesting.  You might look further down in the dataprovider file to see if it removes those procedures after using them.

If you can add/edit/delete users without any issues or errors I would say you are most likely ok...


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
6/18/2007 11:55 AM
 

Mitch:

Sorry about that, I should have said that earlier, the strored procedure is definitely dropped at the end  of the script, but I figured there must be some place it was created, so I did a search in all files for "TransferUsersFromFlatProfile" in the upgrade .zip file and then on the entire DNN folder but could not find it.

Yeah, it seems to work fine and I kind of think this is what it was for (which happens to not apply in my case):

If you had an older DNN install, that script would move things from the older flat table structure into the new relational table.  Since I started this install at 4.something, when I upgraded to 4.03.05 this script was moot.  So I am going to proceed and maybe this will help someone down the road.

Thanks again.

Weezy

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Upgrade to 04.05.03 99.9% PerfectUpgrade to 04.05.03 99.9% Perfect


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out