Solved

Moodle with Microsoft SQL Server 2008 R2

Posted on 2010-09-02
7
2,024 Views
Last Modified: 2013-12-13
Hello,

Currently we are using Moodle with MySQL Database. As We know MySQL dont provide features like MS SQL, so we are looking to use Moodle with Microsoft SQL Server 2008 R2.

My Questions Are:

1. Is it possible to use Moodle with Microsoft SQL Server 2008 R2?
2. How we can convert our current Database (MySQL 5.1) to Microsoft SQL Server 2008 without loosing any Data?
3. Will Microsoft SQL Server 2008 R2 provide same compatibility with Moodle like as MySQL.
4. Any other guideline?

Thanks beforehand.
0
Comment
Question by:Mohit Vijay
7 Comments
 
LVL 40

Expert Comment

by:RQuadling
ID: 33596126
Take a look through these links (take a note of the date of these)

http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SQL_Server_2008/Q_26153132.html
http://moodle.org/mod/forum/discuss.php?d=150005
http://tracker.moodle.org/browse/MDL-15093

It suggests that MS SQL is now supported by the MS SQL Driver for PHP (rather than mssql or odbc).
0
 
LVL 6

Expert Comment

by:Silhouette
ID: 33596147
Hi

1. It is possible to use Moodle with MSSQL 2008
2. You should be able to transfer your data across, you might have to use the MySQL ODBC driver to achieve this (http://dev.mysql.com/downloads/connector/odbc/5.1.html)
3. There are more likely to be issues with Moodle using MSSQL 2008 than if you used MySQL
4. Useful Links:

http://moodle.org/mod/forum/discuss.php?d=155277
http://docs.moodle.org/en/Installing_MSSQL_for_PHP
0
 
LVL 13

Expert Comment

by:p_nuts
ID: 33603279
I do wonder what functions you are missing in mysql
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 8

Author Comment

by:Mohit Vijay
ID: 33608855
@Silhouette

Thanks for your comments.

Today I was trying to move data from mySQL to SQL SErver 2008 R2.

But I am facing some problem.

One Error is occurring:
"mdl_pml_table_coords" -> [dbo].[mdl_pml_table_coords];
The Data type could not be assigned the column "x" in "SQL Server Native client 10.0"

Note: the data type of "x" in MySQL table is Double, same error is occurring with columns those have float datatype.

How to resolve this problem?
0
 
LVL 8

Author Comment

by:Mohit Vijay
ID: 33608883
I have change datatype to Decimal and it solved my problem.

Next Problem is, when I run the package to move data and tables. I got below error

--------------
Messages
Error 0xc02020ff: Source - adodb_logsql [1]: The component "Source - adodb_logsql" (1) was unable to retrieve column information for the SQL command. The following error occurred: ERROR [42000] [MySQL][ODBC 5.1 Driver][mysqld-5.1.37-community]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"adodb_logsql"' at line 1
 (SQL Server Import and Export Wizard)
 
Pipeline component has returned HRESULT error code 0xC02020FF from a method call. (Microsoft.SqlServer.DTSPipelineWrap)
---------------
0
 
LVL 8

Accepted Solution

by:
Mohit Vijay earned 0 total points
ID: 33608912
Now I am not trying to use Import/Export of SQL Server.

I tried with http://www.codeproject.com/KB/database/migrate-mysql-to-mssql.aspx and I am able to move my data in SQL Server 2008 R2.
0
 
LVL 8

Author Comment

by:Mohit Vijay
ID: 33655955
any one of you can please tell me how can I specify connection string for MS-SQL and Moodle.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now