Solved

Moodle with Microsoft SQL Server 2008 R2

Posted on 2010-09-02
7
2,034 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

825 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