Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Moodle with Microsoft SQL Server 2008 R2

Posted on 2010-09-02
7
Medium Priority
?
2,178 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:Richard Quadling
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
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.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

782 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