Register for your free account! | Forgot your password?

You last visited: Today at 16:44

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

Advertisement



How to Export Archive.csv to MSSQL

Discussion on How to Export Archive.csv to MSSQL within the Shaiya PServer Guides & Releases forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
神の火's Avatar
 
elite*gold: 0
Join Date: Feb 2012
Posts: 104
Received Thanks: 118
Thumbs up How to Export Archive.csv to MSSQL

Hello guy’s, the other day i find in my brain, how to export file.csv to ”SQL”
For Why ?
Because is much important

Example: i’m in the " Python" Mobs.Sdata and extract the file, and give Mobs.csv and my "DB" have other Mobs .

Un~

I find in my brain, And Discovery the code for " EXPORT " to DB the fabulous archive.csv

How ?

In QUERY
Copy the code and paste

First
Code:
USE YOU_DB
TRUNCATE TABLE  YOU_Table
GO
Ok, Now YOu Table not have Text.


Second
Code:
BULK INSERT PS_GameData..Mobs FROM 'C:\Mobs.csv'
WITH (DATAFILETYPE ='char',
FIELDTERMINATOR =',',
ROWTERMINATOR = '\n'
)


In 'C:\Mobs.csv' Define you location for you file.csv example 'C:\Goku.csv'

And Good you have to all mobs the Mobs.SData your DB....
神の火 is offline  
Thanks
4 Users
Reply




All times are GMT +2. The time now is 16:44.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.