Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server
You last visited: Today at 22:53

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

Advertisement



Exporting from SQL to CSV?

Discussion on Exporting from SQL to CSV? within the Shaiya Private Server forum part of the Shaiya category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2009
Posts: 408
Received Thanks: 180
[fixed] Exporting from SQL to CSV?

Hi, firstly iĉm sorry if this has already been answered somewhere in the forums hundreds of times, or if it is a really simple thing and i'm completely stupid for not knowing how to do it... but, how on earth do you extract a table from your database, and make it into a CSV file?

I want it for Casters ShStudio tool, and i need the CSV of dbo.Mobs and dbo.MobItems so i can actually edit drops and so on, as he explains in the tutorial in his thread.

I've seen it said somewhere that you can extract this way using LPH's tool, but i havnt worked out how to extract to CSV files, i only get the Sdata files.

I'm using SQL 2005, and it doesnt seem to have an import/export option, unless i'm overlooking it somewhere.

Is there a simple way, or quiery to get just those 2 tables in full csv format, so that i can continue to edit.

Thanks for any help you can give on this subject, it's been driving me mad for 2 days now. And again, i'm sorry if this has already been asked numerous times.

&& I've also tried using python's batch thing to get the files, but from that i only get a file called Monster.complete, which doesnt seem like the right file i need.
viper4513 is offline  
Old 07/24/2011, 16:02   #2
 
[Admin]Snuggle's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 942
Received Thanks: 1,066
USE PS_GameDefs;
SELECT * FROM MobItems

That's how how you select a table
Right click on the results and save them as any name it will save as csv.
Just change the PS_GameDefs part to whatever database you want to select from.
Then change the MobItems part to whatever table you want.
[Admin]Snuggle is offline  
Thanks
3 Users
Old 07/24/2011, 19:20   #3
 
stinka123's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 191
Received Thanks: 193
use Ms office 2010, easy to have it
stinka123 is offline  
Old 07/24/2011, 20:44   #4
 
[Admin]Snuggle's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 942
Received Thanks: 1,066
Office has nothing to do with what viper is asking for. Other than viewing csv files in excel.
[Admin]Snuggle is offline  
Old 07/24/2011, 21:56   #5
 
elite*gold: 0
Join Date: Jul 2009
Posts: 408
Received Thanks: 180
Thank you Snuggle, you're a life saver, i was seriously beggining to contemplate how long it would take for my laptop to reach the floor from my window after trying to work out how to get that info!! :P
Something so **** simple aswell, the way i was trying, was to open the table, and select all data, then copy and paste into excel / access / notepad, but obviously none of thse worked
viper4513 is offline  
Old 07/25/2011, 04:56   #6
 
stinka123's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 191
Received Thanks: 193
i used it, and i know it have
SQL can import Data from SQL sv. search googl how to do it
stinka123 is offline  
Old 07/25/2011, 09:18   #7
 
-III-'s Avatar
 
elite*gold: 0
Join Date: Mar 2011
Posts: 212
Received Thanks: 264
If you are using SQL 2005 Express, it can be a pain as compared to other versions.

I always recommend to everyone that if you can get your hands on EMS's SQL Manager, use it. It makes several tasks of this sort much easier.

Export to Excel, CSV, ODF, and many others are as easy as a right click on the table name.
-III- is offline  
Old 07/25/2011, 12:24   #8
 
elite*gold: 0
Join Date: Jul 2009
Posts: 408
Received Thanks: 180
Where were you when i was setting all those programs up, III ??

Not to worry now tho, thanks to Snuggle i managed to get it all sorted, 2 nice and clean CSV files, imported into Casters amazing tool, and all working how it should be
viper4513 is offline  
Old 10/15/2011, 21:14   #9
 
elite*gold: 0
Join Date: Jul 2009
Posts: 5
Received Thanks: 0
Utility that works great for getting data in and out of SQL bases

check out FlowHeater. You will be impressed. I used it to pull all data out of bases in XL. Then I can edit easily using formulas. Next, I use FlowHeater to reverse the flow of data back into the bases. Limit 10000 records on free version. You can also add extra columns to your XL for making editing easier (i.e. notes about what vars actually do in-game). And FlowHeater will ignore them. Very nice utility.
shaiya_VG is offline  
Old 10/15/2011, 21:36   #10
 
elite*gold: 0
Join Date: Jul 2009
Posts: 408
Received Thanks: 180
Totally pointless post there shaiya_VG
This was fixed months ago, and the thing you were "advertising" would be kinda useless in most shaiya DB's if that is what it is even for.. As most the useful database tables have over 10,000 records.

Request close, cuz it was answered fully instantly.
viper4513 is offline  
Reply

Tags
extract, sql


Similar Threads Similar Threads
[Help] Extracting/Ripping/Exporting Models from PW:I
10/02/2010 - Perfect World - 0 Replies
I have a need-to-know about getting models out of the game. As far as I know, it runs on the Angelica 3D engine - but I know next to nothing about it since it is based in China. However, from a data expertise perspective, is there any way to capture models from the game (as in, ones you have customized/created) or import models from the game files, located in models.pck? I've extracted the models, and I used this tool attached to do so - if it would be of use to anyone attempting to extract...



All times are GMT +1. The time now is 22:54.


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.