LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-06-2004, 06:04 AM   #1
jkord
LQ Newbie
 
Registered: Aug 2004
Location: Athens - Greece
Distribution: SuSE 9.0 Professional
Posts: 5

Rep: Reputation: 0
SQL Server help!!!!!!!


I'm trying to migrate from MS-SQL Server on Win2K to MySQL on SuSE 9.0 Pro. I use an ERP program named Unisoft Atlantis (written in Delphi). It natively supports MSSQL, Oracle, DB2 and Interbase. It also supports BDE drivers. I have imported the whole the database from MSSQL to MySQL, I have set the user rigths on the MySQL server, I have installed the ODBC driver on my WinXP Pro workstation. The ODBC driver can test the connection between the wks and the server, and it says its OK. Atlantis has a utility to configure the client. It allows to choose the DB engine to use, the server, auth details etc. The utility can also test the connection to the server. It displays the version of the ODBC (which means that it USES the driver) and the message "Connection OK". No errors! When I start the main program (Atlantis client), it opens its main window, sends something to the net (connecting or authenticating, I guess) and freezes. Under normal conditions (MSSQL) it pops up a login window and after logging in it shows its icons, menus, buttons etc. According to the diagnostics of the ODBC driver and of the program itself, all seem to work ok. What am I doing wrong?

P.S. I'm a newbie
 
Old 08-06-2004, 01:56 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I think there is an option in odbc to turn on sql logging - this creates a logfile with timestamps, soemthing like "C:\sql.log" (not sure of the name of the top of my head) Maybe you can use this to see how far the connection is getting.

Are you sure that you have assigned your user all of the relevant permissions on that database, SELECT, INSERT, UPDATE etc?
 
Old 08-11-2004, 01:59 AM   #3
jkord
LQ Newbie
 
Registered: Aug 2004
Location: Athens - Greece
Distribution: SuSE 9.0 Professional
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks david_ross, I tried sql logging and I think I found something.
I read the sql.log file. It is huge and it has the format shown below.
All the lines end with the statement "return code 0 (SQL_SUCCESS)" except 2 or 3 wich end with "return code 1 (SQL_SUCCESS_WITH_INFO)"

Here are some lines from the log file. This is one of the statements with non 0 error code.


Goserver c4c-68c ENTER SQLFetch
HSTMT 01382258

Goserver c4c-68c EXIT SQLFetch with return code 1 (SQL_SUCCESS_WITH_INFO)
HSTMT 01382258

DIAG [01004] [MySQL][ODBC 3.51 Driver][mysqld-4.0.15-Max]String data, right truncated (501)

Goserver c4c-68c ENTER SQLFetch
HSTMT 01382258

Goserver c4c-68c EXIT SQLFetch with return code 100 (SQL_NO_DATA_FOUND)
HSTMT 01382258


I think this is the problem but I don't know what it means. Maybe the data wasn't imported correctly? I tried many ways to export from MSSQL and import to MySQL. There are many converters from the official MySQL site, some take the db directly from MS and import it directly to My. Others take the db from MS and store it to an sql file (plain text, sql commands) or to
ms-access file etc. I tried them all. Any ideas?
 
Old 08-11-2004, 02:52 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
That isn't an error I'm familair with but after a bit of googling I found this:
http://www.easysoft.com/products/999...6&product=2002

You may want to try the "Regional settings" fix:
Quote:
Ordinarily this works fine with the MS SQL Server driver but when "Use Regional Settings" is checked in the MS SQL Server ODBC driver DSN setup dialog everything changes. Once "Use Regional Settings" is checked the ODBC driver returns integer fields using the current regional settings and this generally increases the size of the returned data. For UK machines the simple integer 1234, is returned as "1,234.00". The problem is that when "Use Regional Settings" is checked SQLDescribeCol and SQLColAttribute return the same column-size as they do when this setting is unchecked and so for larger numbers the column-size of 10 will be insufficient to hold the number and you will get "string data right truncated".
 
Old 08-19-2004, 03:16 AM   #5
jkord
LQ Newbie
 
Registered: Aug 2004
Location: Athens - Greece
Distribution: SuSE 9.0 Professional
Posts: 5

Original Poster
Rep: Reputation: 0
I made an experiment and the result is a little strange.
The program is currently using an MSSQL database without ODBC (it has native support for MSSQL). I set it up to connect to the MSSQL server through ODBC and got the same result.
All the diagnostics were ok but the client never connected to the server. What's that supposed to mean? Maybe Atlantis can't use ODBC?
 
Old 08-19-2004, 12:51 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Have you contacted the software developers to ask them if it can use ODBC?

Do htey have a website or something?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Migrating from MS-SQL server to My-SQL emailssent Linux - Networking 2 02-07-2005 02:20 PM
setting up a slack, apache server with php and a sql server. caged Slackware 1 10-25-2004 04:45 AM
SQL Server 2000 assatron Linux - Software 4 08-19-2004 03:02 PM
sql server hariiyer Linux - Networking 1 08-11-2004 12:59 AM
sql server... need help huno Linux - General 1 07-30-2002 04:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration