Jump to content


Corporate Sponsors


Latest News: (loading..)

migration mysql [innodb] to SQLServer has failed.


  • You cannot reply to this topic
6 replies to this topic

#1 foxp2

  • Community Sponsor
  • 168 posts
  • Real Name:Laurent
  • Gender:Male
  • Location:France

Posted 15 January 2012, 14:00

SSMA : http://forums.oscommerce.com/statuses/id/1372/

do you have the same results ?

http://echoscystem.com/report/report_2012_01_12T11_56_23/mainindex.html (Report works only with Internet Explorer - due to Active-X)
Laurent AKA Fox P two
osCommerce, Code With Passion
My Tools for Agile software development : About Me

#2 geoffreywalton

  • Community Sponsor
  • 7,731 posts
  • Real Name:Geoffrey Walton
  • Gender:Male
  • Location:Norfolk, UK (close to the centre of the universe)

Posted 15 January 2012, 20:33

Gave up trying to get these links to display, suspect this is why you have no responses.

Cheers

G
Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

Virus Threat Scanner
My Contributions
Basic install answers.
Click here for Contributions / Add Ons.
UK your site.
Site Move.
Basic design info.

For links mentioned in old answers that are no longer here follow this link Useful Threads.

If this post was useful, click the Like This button over there ======>>>>>.

#3 Harald Ponce de Leon

  • Manager
  • 3,266 posts
  • Real Name:Harald Ponce de Leon
  • Gender:Male
  • Location:Solingen, Germany

Posted 15 January 2012, 21:18

Hi Laurent..

Try again with MyISAM. The foreign key relationships would need to be setup manually.

Are you interested in working on MSSQL? I have PostgreSQL working for Setup and Admin in my github repo, which can help build queries for MSSQL.

Kind regards,
Harald Ponce de Leon
osCommerce, Sell With Emotion

#4 foxp2

  • Community Sponsor
  • 168 posts
  • Real Name:Laurent
  • Gender:Male
  • Location:France

Posted 15 January 2012, 23:06

View PostHarald Ponce de Leon, on 15 January 2012, 21:18, said:

The foreign key relationships would need to be setup manually.
ok, i'll use Sybase PowerAmc.

View PostHarald Ponce de Leon, on 15 January 2012, 21:18, said:

Try again with MyISAM
there is no problem with MyISAM. i've done this migration before.
I prefer to work with a real relationnal database (more easy later to work with Object-relational mapping tool included in Visual Studio - linqtosql)

View PostHarald Ponce de Leon, on 15 January 2012, 21:18, said:

Are you interested in working on MSSQL?
yes and SQLAzure.

View PostHarald Ponce de Leon, on 15 January 2012, 21:18, said:

I have PostgreSQL working for Setup and Admin in my github repo, which can help build queries for MSSQL.
http://echoscystem.com/oscom3pgsql/ ^_^
Laurent AKA Fox P two
osCommerce, Code With Passion
My Tools for Agile software development : About Me

#5 Harald Ponce de Leon

  • Manager
  • 3,266 posts
  • Real Name:Harald Ponce de Leon
  • Gender:Male
  • Location:Solingen, Germany

Posted 15 January 2012, 23:57

Hi Laurent..

View Postfoxp2, on 15 January 2012, 23:06, said:

yes and SQLAzure.

That's great! @Mark Evans has also done some work here - it would be great to see MSSQL catch up to the queries made so far for PostgreSQL :thumbsup:

I have a store procedure ready for the Admin Countries listing - will provide this in a package tomorrow.

Kind regards,
Harald Ponce de Leon
osCommerce, Sell With Emotion

#6 foxp2

  • Community Sponsor
  • 168 posts
  • Real Name:Laurent
  • Gender:Male
  • Location:France

Posted 16 January 2012, 01:13

@Harald Ponce de Leon :

View PostHarald Ponce de Leon, on 15 January 2012, 23:57, said:

@Mark Evans has also done some work here
here ? where ? :blink:
what i have seen about that : https://github.com/oscsparky/oscommerce2/tree/sql_server ?

View PostHarald Ponce de Leon, on 15 January 2012, 23:57, said:

- it would be great to see MSSQL catch up to the queries made so far for PostgreSQL :thumbsup:
surely ! ^_^

View PostHarald Ponce de Leon, on 15 January 2012, 23:57, said:

I have a store procedure ready for the Admin Countries listing - will provide this in a package tomorrow.
great, you can you can copy/paste store procedure here :-

Kind regards,
Laurent AKA Fox P two
osCommerce, Code With Passion
My Tools for Agile software development : About Me

#7 Harald Ponce de Leon

  • Manager
  • 3,266 posts
  • Real Name:Harald Ponce de Leon
  • Gender:Male
  • Location:Solingen, Germany

Posted 16 January 2012, 01:22

Hi Laurent..

I just checked and have already committed the queries for the Admin Countries application to my github repo:

https://github.com/haraldpdl/oscommerce/tree/master/osCommerce/OM/Core/Site/Admin/Application/Countries/SQL/Microsoft/SqlServer

Here are the statements for the stored procedures:


DROP PROCEDURE CountriesGetAll;
GO
CREATE PROCEDURE CountriesGetAll @PAGESET INT, @MAXRESULTS INT AS
WITH CountriesList AS
(
    SELECT *, (select COUNT(*) from osc_zones where zone_country_id = countries_id) as total_zones,
    ROW_NUMBER() OVER (ORDER BY countries_name) AS 'RowNumber'
    FROM osc_countries
)
SELECT *
FROM CountriesList
WHERE RowNumber BETWEEN (@PAGESET - 1) * @MAXRESULTS + 1 AND @PAGESET * @MAXRESULTS;

SELECT COUNT(*) as total
FROM osc_countries;
GO

DROP PROCEDURE CountriesGet;
GO
CREATE PROCEDURE CountriesGet @ID INT AS
SELECT *
FROM osc_countries
WHERE countries_id = @ID;

SELECT count(*) as total_zones
FROM osc_zones
WHERE zone_country_id = @ID;
GO

I work primarily on a Mac. I'll check my Windows box tomorrow for more code.

Kind regards,
Harald Ponce de Leon
osCommerce, Sell With Emotion