Register for your free account! | Forgot your password?

You last visited: Today at 07:15

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

Advertisement



SQL help :D

Discussion on SQL help :D within the Shaiya Private Server forum part of the Shaiya category.

Reply
 
Old   #1
 
R0CK7Y's Avatar
 
elite*gold: 10
Join Date: Apr 2010
Posts: 493
Received Thanks: 397
SQL help :D

hey guys
i have finish my server but still a few things
but all i need is how to Save your Tables in the Database and load it again

cuz i need to save skills table and load it in another Database
R0CK7Y is offline  
Old 02/27/2011, 16:17   #2
 
elite*gold: 0
Join Date: Jul 2010
Posts: 498
Received Thanks: 449
Here is the code you need to use to backup your database.
Make sure you have created a Backup_Shaiya_DB folder in D.

Alladrios is offline  
Thanks
2 Users
Old 02/27/2011, 17:16   #3
 
R0CK7Y's Avatar
 
elite*gold: 10
Join Date: Apr 2010
Posts: 493
Received Thanks: 397
i don't want to save the Database i just need to replace the tables only
R0CK7Y is offline  
Old 02/27/2011, 17:34   #4
 
elite*gold: 0
Join Date: Jul 2010
Posts: 498
Received Thanks: 449
With this you can save the tables and then replace them, sigh.

You can this also for example to import a CSV:

Alladrios is offline  
Thanks
2 Users
Old 02/27/2011, 18:40   #5
 
R0CK7Y's Avatar
 
elite*gold: 10
Join Date: Apr 2010
Posts: 493
Received Thanks: 397
and how can i save it with CSV ?

Quote:

Msg 4860, Level 16, State 1, Line 1
Cannot bulk load. The file "c:\ProductList.import.csv" does not exist.

R0CK7Y is offline  
Old 02/27/2011, 18:42   #6
 
elite*gold: 0
Join Date: Jul 2010
Posts: 498
Received Thanks: 449
Simply run a select from all columns and save as csv.
Alladrios is offline  
Thanks
1 User
Old 02/27/2011, 19:08   #7
 
R0CK7Y's Avatar
 
elite*gold: 10
Join Date: Apr 2010
Posts: 493
Received Thanks: 397
ammm srry but can u give me more information about it ?

i didnt understand that
R0CK7Y is offline  
Old 02/27/2011, 19:33   #8
 
elite*gold: 0
Join Date: Jul 2010
Posts: 498
Received Thanks: 449


Uploaded with
Alladrios is offline  
Thanks
2 Users
Old 02/27/2011, 19:58   #9
 
R0CK7Y's Avatar
 
elite*gold: 10
Join Date: Apr 2010
Posts: 493
Received Thanks: 397
tyvm really u help me alot with that
R0CK7Y is offline  
Old 02/27/2011, 20:06   #10
 
R0CK7Y's Avatar
 
elite*gold: 10
Join Date: Apr 2010
Posts: 493
Received Thanks: 397
and again :S

Quote:

Bulk load: DataFileType was incorrectly specified as char. DataFileType will be assumed to be widechar because the data file has a Unicode signature.
Bulk load: DataFileType was incorrectly specified as char. DataFileType will be assumed to be widechar because the data file has a Unicode signature.
Msg 4866, Level 16, State 1, Line 1
The bulk load failed. The column is too long in the data file for row 1, column 1. Verify that the field terminator and row terminator are specified correctly.
Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "BULK" for linked server "(null)" reported an error. The provider did not give any information about the error.
Msg 7330, Level 16, State 2, Line 1
Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)".
R0CK7Y is offline  
Thanks
1 User
Old 02/27/2011, 20:08   #11
 
elite*gold: 0
Join Date: Jul 2010
Posts: 498
Received Thanks: 449
Make sure to truncate the table before trying to import the csv.

Alladrios is offline  
Thanks
1 User
Reply




All times are GMT +1. The time now is 07:16.


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.