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 ...SQL Script error upgrading from 04.00.03 to 04.05.03SQL Script error upgrading from 04.00.03 to 04.05.03
Previous
 
Next
New Post
6/10/2007 1:55 PM
 

I uploaded the 04.05.03 update package today, having changed web.config. The upgrade process reported a failure in 04.00.04.SqlDataProvider, though everything else ran fine.

The site seems to be working OK, but the failure makes me worry that there's trouble brewing. Can anyone shed any light on the problem?

Here's the contents of the 04.00.04.log file:

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/10/2007 3:25 PM
 

are you sure, this is the complete content of the 04.00.04.log file?


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
6/10/2007 3:54 PM
 

Yes, that's all there is.

 

 

 
New Post
6/11/2007 6:48 PM
 

please make sure, that /providers/dataproviders/sqldataproviders/04.00.04.sqldataprovider is the same as in the current Download package of DotNetNuke 3.5.3


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...SQL Script error upgrading from 04.00.03 to 04.05.03SQL Script error upgrading from 04.00.03 to 04.05.03


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