Solved

Moodle with Microsoft SQL Server 2008 R2

Posted on 2010-09-02
7
2,096 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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 …

631 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