Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Rappelz > Rappelz Private Server
You last visited: Today at 19:24

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

Advertisement



create new account ask! ;;((

Discussion on create new account ask! ;;(( within the Rappelz Private Server forum part of the Rappelz category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2011
Posts: 20
Received Thanks: 1
create new account ask! ;;((

I'm trying to create a second account in SQL. I can't really make it...(9.5.2 server / and telecaster, auth)

INSERT INTO [Auth].[dbo].[Account] ([account_id], [account], [password], [email], [password2], [phone], [block], [IP_user], [Admin], [point], [datePassword]) VALUES ('1952', 'riss2', '613b5247e3398350918cb622a3ec19e9', '', '613b5247e3398350918cb622a3ec19e9', '0', '0', '127.0.0.1', '1', '0', '2017-10-20');

Exequte this to SQL.

but...

Msg 544, Level 16, State 1, Line 1
Cannot insert explicit value for identity column in table 'Account' when IDENTITY_INSERT is set to OFF.

I get an error like above.


(I also tried the below. not work..)
1. Open your MSSQL server management window and connect to your database.
2. Expand your database folder
3. Expand your auth database
4. Expand you tables folder
5. Right click on your dbo.Account table and select design from the right click context menu
6. Select the row for account_id in the design window
7. In the bottom design pane scroll down to where you see "Identity Specification"
8. Expand that by clicking on the arrow to the left of it
9. Where it says (Is Identity) on the right side of that if you select the area where it says no use the drop down arrow and change it to yes
10. The two fields below it should say Identity Increment 1 and Identity Seed 1

Then last of all in the top design window go to the first row that is empty and add age

age, Int, and check the box to allow nulls

It is in the script and as long as we are making the user enter it we might as well collect that data.

11. Click on the save icon in the tool bar to save the changes you have just made to the dbo.Account table.


Help.......;(
risslove is offline  
Old 06/13/2023, 15:15   #2
Moderator


 
ThunderNikk's Avatar
 
elite*gold: 1
Join Date: Dec 2012
Posts: 4,780
Received Thanks: 1,462
Account ID is probably identity seeded which means it will add the next one in the identity index automatically.

You don't need it in your insert statement
ThunderNikk is offline  
Old 06/13/2023, 17:31   #3
 
elite*gold: 0
Join Date: Nov 2011
Posts: 20
Received Thanks: 1
Quote:
Originally Posted by ThunderNikk View Post
Account ID is probably identity seeded which means it will add the next one in the identity index automatically.

You don't need it in your insert statement

If so, how do I create an account? ;;((
risslove is offline  
Old 06/13/2023, 19:30   #4
 
Masumichan's Avatar
 
elite*gold: 0
Join Date: Jul 2020
Posts: 161
Received Thanks: 75
Read this.
Masumichan is offline  
Old 06/13/2023, 21:52   #5
Moderator


 
ThunderNikk's Avatar
 
elite*gold: 1
Join Date: Dec 2012
Posts: 4,780
Received Thanks: 1,462
Remove account_id and the value 1952 from your insert statement and it should work auto applying its own value from the next value in the identity seed.
ThunderNikk is offline  
Old 06/14/2023, 12:44   #6
 
elite*gold: 0
Join Date: Nov 2011
Posts: 20
Received Thanks: 1
Quote:
Originally Posted by ThunderNikk View Post
Remove account_id and the value 1952 from your insert statement and it should work auto applying its own value from the next value in the identity seed.

so.,

INSERT INTO [Auth].[dbo].[Account] ([account], [password], [email], [password2], [phone], [block], [IP_user], [Admin], [point], [datePassword]) VALUES ('riss2', '613b5247e3398350918cb622a3ec19e9', '', '613b5247e3398350918cb622a3ec19e9', '0', '0', '127.0.0.1', '1', '0', '2017-10-20');

Can I apply this? ;((

Quote:
Originally Posted by Masumichan View Post
Read this.
Thank you, but I don't know what it means.. what should I apply...

Since I am a beginner, I can execute a simple query like the one below. Please speak easily.

INSERT INTO [Auth].[dbo].[Account] ([account_id], [account], [password], [email], [password2], [phone], [block], [IP_user], [Admin], [point], [datePassword]) VALUES ('1952', 'riss2', '613b5247e3398350918cb622a3ec19e9', '', '613b5247e3398350918cb622a3ec19e9', '0', '0', '127.0.0.1', '1', '0', '2017-10-20');
risslove is offline  
Old 06/14/2023, 15:27   #7
Moderator


 
ThunderNikk's Avatar
 
elite*gold: 1
Join Date: Dec 2012
Posts: 4,780
Received Thanks: 1,462
Quote:
Originally Posted by risslove View Post
so.,

INSERT INTO [Auth].[dbo].[Account] ([account], [password], [email], [password2], [phone], [block], [IP_user], [Admin], [point], [datePassword]) VALUES ('riss2', '613b5247e3398350918cb622a3ec19e9', '', '613b5247e3398350918cb622a3ec19e9', '0', '0', '127.0.0.1', '1', '0', '2017-10-20');

Can I apply this? ;((
Yes you should be able to use that.
ThunderNikk is offline  
Old 06/15/2023, 05:03   #8
 
elite*gold: 0
Join Date: Nov 2011
Posts: 20
Received Thanks: 1
Quote:
Originally Posted by ThunderNikk View Post
Yes you should be able to use that.
thanks a lot!! I did it!!! yeah~~~
risslove is offline  
Reply


Similar Threads Similar Threads
[HELP] How create some weapons in ShStudio? / Crash item mall / can't create new mobs
06/24/2021 - Shaiya PServer Development - 3 Replies
Hey, Before say "use the search button" or "see other topic for resolve ur problem" i have search and i don't have found any fix for my problem :/ I have 4 big problem: -1: When i buy an item in my item mall IG the game crash (please try to recconect to the server ERROR 0) i don't have found help after 2 days of search -2: When i want create a boss/mobs IG (only boss and mobs who i have add in my Monster.SData) i have this error in the tchat "Not authorized to create!" why i have this...
[HELP] How to create a new shop. SHOP CREATE
12/31/2010 - CO2 Private Server - 5 Replies
#closed
is possible to create a hack to create items +7
07/14/2008 - Dekaron - 25 Replies
How can I create a hack to create items +7



All times are GMT +2. The time now is 19:24.


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.