Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 18:30

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Database SQL Structure Question

Discussion on Database SQL Structure Question within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
killersub's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
Database SQL Structure Question

Alright so yesterday I was going through my old things and found my old flash drive that contained an old source that I don't quite frankly remember well. I managed to configure it to try and get it up and running but I'm not sure what MySQL management tool works with it. Mind you, the actual configuration hints to MSSQL which is microsoft's own SQL Server but I have tried implementing the SQL file with microsoft's SQL workbench to no avail. Basically, it tells me that my connection timed out everytime I dump the SQL in a database.

EDIT: I fixed the timeout issue but a different issue persists and I think it's with the SQL file itself.

The error I get is as follows:
Code:
ERROR 1064 (42000) at line 21: 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 '[dbo].[Accounts]
GO
CREATE TABLE [dbo].[Accounts] (
[AccountID] int NOT NULL IDE' at line 1
Operation failed with exitcode 1
Now, I'm still getting myself familiarized once again with all this. With that being said, my question is this: How would I actually implement the SQL into Workbench without it kicking this error back at me?

Any advice is greatly appreciated and taken into account. Thanks again.
killersub is offline  
Thanks
1 User
Old 07/22/2017, 18:36   #2
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
The syntax you have is still wrong for MySQL. You'd have to convert it from MsSQL to MySQL syntax to import things. What is the source called?
Spirited is offline  
Thanks
1 User
Old 07/22/2017, 19:06   #3
 
killersub's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
Quote:
Originally Posted by Spirited View Post
The syntax you have is still wrong for MySQL. You'd have to convert it from MsSQL to MySQL syntax to import things. What is the source called?
Thanks for the response. I believe this source was/is titled "imsoniac source". It's targeted toward patch 5017. I was trying to look around to try and convert it from mssql to mysql but I'm not so sure as to how to do that correctly.
killersub is offline  
Old 07/23/2017, 00:16   #4
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
Quote:
Originally Posted by killersub View Post
Thanks for the response. I believe this source was/is titled "imsoniac source". It's targeted toward patch 5017. I was trying to look around to try and convert it from mssql to mysql but I'm not so sure as to how to do that correctly.
What do you mean you don't know how to do it correctly? Sure you do. You translate it from MsSQL to MySQL. One line at a time. The syntax for it is all online. Hell, there are probable conversion tools for it even. Or, you can just use MsSQL since the developer and express versions are free (aren't they?). Why convert to MySQL exactly?
Spirited is offline  
Old 07/23/2017, 06:39   #5
 
killersub's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
Quote:
Originally Posted by Spirited View Post
What do you mean you don't know how to do it correctly? Sure you do. You translate it from MsSQL to MySQL. One line at a time. The syntax for it is all online. Hell, there are probable conversion tools for it even. Or, you can just use MsSQL since the developer and express versions are free (aren't they?). Why convert to MySQL exactly?
Well, honestly, if I can just leave it as mssql code then it would be perfect. The thing is, when I actually execute the code in workbench it tells me that my syntax is incorrect and I'm not sure why it tells me that if I'm using an MSSQL manager tool with the proper database/connnection.
killersub is offline  
Old 07/23/2017, 06:59   #6
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
Quote:
Originally Posted by killersub View Post
Well, honestly, if I can just leave it as mssql code then it would be perfect. The thing is, when I actually execute the code in workbench it tells me that my syntax is incorrect and I'm not sure why it tells me that if I'm using an MSSQL manager tool with the proper database/connnection.
Well, yeah. MySQL is not Microsoft SQL / T-SQL. That's like comparing Java to C#. Sure, they're similar, but they're not the same. You can't take a Java snippet and have it compile using a C# compiler. What you're doing by placing T-SQL in workbench is pretty ridiculous. If you're going to develop using T-SQL, you'll need:


Spirited is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[SQL-Error]Sql Database For HellmouthSoruce
04/28/2011 - CO2 Private Server - 10 Replies
Hello, i was setting up the Hellmouth source 5300+ everything was going smoothly and because i'm stupid and noob + i never used/liked navicat i got error when trying to execute the sql databse and here's the error http://www.youtube.com/watch?v=op25Gz_X3Wg
SQL-DB structure
05/29/2010 - Silkroad Online - 0 Replies
Hey folks, does anyone happen to have the structure of the official SRO SQL-DB? I need no more than the column names and their associated table names (usually located in the DB "INFORMATION_SCHEMA").



All times are GMT +1. The time now is 18:30.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.