migration mysql [innodb] to SQLServer has failed.
#1
Posted 15 January 2012, 14:00
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)
osCommerce, Code With Passion
My Tools for Agile software development : About Me
#2
Posted 15 January 2012, 20:33
Cheers
G
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
Posted 15 January 2012, 21:18
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,
osCommerce, Sell With Emotion
#4
Posted 15 January 2012, 23:06
Harald Ponce de Leon, on 15 January 2012, 21:18, said:
Harald Ponce de Leon, on 15 January 2012, 21:18, said:
I prefer to work with a real relationnal database (more easy later to work with Object-relational mapping tool included in Visual Studio - linqtosql)
Harald Ponce de Leon, on 15 January 2012, 21:18, said:
Harald Ponce de Leon, on 15 January 2012, 21:18, said:
osCommerce, Code With Passion
My Tools for Agile software development : About Me
#5
Posted 15 January 2012, 23:57
foxp2, on 15 January 2012, 23:06, said:
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
I have a store procedure ready for the Admin Countries listing - will provide this in a package tomorrow.
Kind regards,
osCommerce, Sell With Emotion
#6
Posted 16 January 2012, 01:13
Harald Ponce de Leon, on 15 January 2012, 23:57, said:
what i have seen about that : https://github.com/oscsparky/oscommerce2/tree/sql_server ?
Harald Ponce de Leon, on 15 January 2012, 23:57, said:
Harald Ponce de Leon, on 15 January 2012, 23:57, said:
Kind regards,
osCommerce, Code With Passion
My Tools for Agile software development : About Me
#7
Posted 16 January 2012, 01:22
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,
osCommerce, Sell With Emotion














