Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server
You last visited: Today at 18:52

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

Advertisement



Converting SQL databases to .csv format

Discussion on Converting SQL databases to .csv format within the Shaiya Private Server forum part of the Shaiya category.

Reply
 
Old   #1
 
liston28727's Avatar
 
elite*gold: 0
Join Date: Mar 2012
Posts: 11
Received Thanks: 0
Question Converting SQL databases to .csv format

How to convert databases to .csv format. i can use the "create to" option on the database table but when i open the table all i see is the table headings. I am trying to create the mobs table for editing. Any help would be appreciated..
liston28727 is offline  
Old 07/02/2012, 03:26   #2
 
ShaiyaHaven's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 131
Received Thanks: 261
If you happen to check this anymore after all this time, just use the SELECT function to grab the info you want:
Code:
SELECT * FROM PS_[COLOR="Red"]DatabaseName[/COLOR].dbo.[COLOR="red"]TableName[/COLOR]
Fill in the DatabaseName and TableName parts with the real DB and Table names, obviously; like PS_GameData.dbo.Chars, or PS_GameDefs.dbo.Mobs, etc.

Before the next step, make sure you have SQL set to save the headers of the table, if you need them (if not, skip this). If this is for ShStudio, you will indeed have to do this. You'll find the option here:

SQL Management Studio Tools menu > Options > Query Results > SQL Server > Results to Grid > check box for "Include column headers when copying or saving the results" > Ok


You may want to restart Management Studio to make sure those changes take effect, in which case you will need to run the SELECT query again before moving on. Then, click on the top left square of the results window, the one that highlights the entire results grid. Right click, Save Results As... The save window pops up. Just make sure the file type is CSV, and you're good to go.

If this is specifically for making a Monster.EX for ShStudio, it goes a little further. Type the name of the file (Mobs or MobItems). Instead of just hitting the "Save" button, click the tiny black arrow next to it and select "Save with encoding". Change the dropdown option to ANSI, then hit OK and it should save. Then open the Monster.Sdata and File > Import, import BOTH files before saving, then save. A Monster.EX should have been generated.

Good luck to you on your journey!
ShaiyaHaven is offline  
Thanks
9 Users
Old 07/06/2012, 16:10   #3
 
elite*gold: 0
Join Date: Jun 2012
Posts: 37
Received Thanks: 28
Haven, some Error give. me make Step-by-step but Don't Work.

Error :
Attached Images
File Type: png Error.PNG (8.1 KB, 84 views)
File Type: jpg Error.JPG (8.3 KB, 82 views)
Follow001 is offline  
Old 07/06/2012, 21:48   #4
 
ShaiyaHaven's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 131
Received Thanks: 261
Quote:
Originally Posted by ShaiyaHaven View Post
If this is specifically for making a Monster.EX for ShStudio, it goes a little further. Type the name of the file (Mobs or MobItems). Instead of just hitting the "Save" button, click the tiny black arrow next to it and select "Save with encoding". Change the dropdown option to ANSI, then hit OK and it should save. Then open the Monster.Sdata and File > Import, import BOTH files before saving, then save. A Monster.EX should have been generated.
Pay more attention. :P This will solve your problem.
ShaiyaHaven is offline  
Thanks
1 User
Old 08/30/2012, 19:33   #5
 
elite*gold: 0
Join Date: Jul 2012
Posts: 107
Received Thanks: 18
i did that exactly to the dot but i get the error must start with rowID. yes my headers are selected. but still same issue.
Dread123 is offline  
Old 08/31/2012, 02:12   #6
 
liston28727's Avatar
 
elite*gold: 0
Join Date: Mar 2012
Posts: 11
Received Thanks: 0
converting database

Make sure your query is requesting the "RowID" header. Had that problem before.
liston28727 is offline  
Old 09/22/2012, 23:08   #7
 
elite*gold: 0
Join Date: Oct 2008
Posts: 37
Received Thanks: 3
I have the same problem
alekiu is offline  
Reply


Similar Threads Similar Threads
Converting
06/21/2011 - CO2 Private Server - 1 Replies
So I'm converting this Trade Partner to NCOS 5165, and having trouble with saving, deleting. On this other source, it's for sql. The source I use (NCOS), is not sql. So basically I need help converting. Here is what I need converted (I'm not asking to be spoon fed, just any help will be appreciated). public static void DelPartner(uint UID, uint IDYou) { MySqlCommand Cmd = new MySqlCommand(MySqlCommandType.DELETE); Cmd.Delete("TradePartner",...
[HELP] Converting INI To Sql
08/10/2010 - CO2 Private Server - 1 Replies
Hey guys I have run into a problem converting my INI Source to Sql. I am in the process of converting the NPCs from INI. I have converted the ini file thats the easy part but I am stuck on the spawning. I can get the NPCs to load but not to spawn.. **EDIT** Just figured it out. #Request Close
[Help]Converting...
02/02/2010 - CO2 Private Server - 4 Replies
How to convert the packet public static byte ItemLock(int ItemUID, int Type01, int Type02, int Series) { PacketBuilder Packet = new PacketBuilder(2048, 16); Packet.Long(ItemUID); Packet.Int(Type01); Packet.Int(Type02); Packet.Short(0);//where do u call ItemLock method Packet.Long(Series);
Converting !
10/24/2009 - CO2 Private Server - 13 Replies
I want to know how to Convert a LOTF Source that is .ini into a Non ini Source Any Guides? Tips, ty. Co B,c,
converting
01/27/2009 - Dekaron - 3 Replies
when using winhex after you change the offsets u want how do u convert the winhex file to the files that acclaim uses is there a program? or do i have to get the full version of winhex to do this



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


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.