Solved

Moodle with Microsoft SQL Server 2008 R2

Posted on 2010-09-02
7
2,014 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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

762 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

21 Experts available now in Live!

Get 1:1 Help Now