Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server
You last visited: Today at 02:32

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

Advertisement



Shaiya attach database error

Discussion on Shaiya attach database error within the Shaiya Private Server forum part of the Shaiya category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: May 2011
Posts: 75
Received Thanks: 6
Shaiya attach database error

===================================

Attach database failed for Server 'DANIELA-PC\SQLEXPRESS'. (Microsoft.SqlServer.Express.Smo)

------------------------------
For help, click:

------------------------------
Program Location:

at Microsoft.SqlServer.Management.Smo.Server.AttachDa tabase(String name, StringCollection files, String owner)
at Microsoft.SqlServer.Management.SqlManagerUI.Attach DatabaseData.PrimaryFile.Attach()
at Microsoft.SqlServer.Management.SqlManagerUI.Attach Database.SendDataToServer()

===================================

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.Express.ConnectionInfo)

------------------------------
Program Location:

at Microsoft.SqlServer.Management.Common.ServerConnec tion.ExecuteNonQuery(String sqlCommand, ExecutionTypes executionType)
at Microsoft.SqlServer.Management.Common.ServerConnec tion.ExecuteNonQuery(StringCollection sqlCommands, ExecutionTypes executionType)
at Microsoft.SqlServer.Management.Smo.ExecutionManage r.ExecuteNonQuery(StringCollection queries)
at Microsoft.SqlServer.Management.Smo.Server.AttachDa tabaseWorker(String name, StringCollection files, String owner, AttachOptions attachOptions)
at Microsoft.SqlServer.Management.Smo.Server.AttachDa tabase(String name, StringCollection files, String owner)

===================================

Unable to open the physical file "C:\SHAIYA_SERVER\ShaiyaTest\ShaiyaServer\DATABASE \PS_UserData_Data.MDF". Operating system error 5: "5(Access is denied.)". (.Net SqlClient Data Provider)

------------------------------
For help, click:

------------------------------
Server Name: DANIELA-PC\SQLEXPRESS
Error Number: 5120
Severity: 16
State: 101
Line Number: 1


------------------------------
Program Location:

at System.Data.SqlClient.SqlConnection.OnError(SqlExc eption exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnErro r(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQuer yTds(String methodName, Boolean async)
at System.Data.SqlClient.SqlCommand.InternalExecuteNo nQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Microsoft.SqlServer.Management.Common.ServerConnec tion.ExecuteNonQuery(String sqlCommand, ExecutionTypes executionType)
Can anyone help me with this i have been trying for hours cant figure it out
littlecfresh is offline  
Old 03/30/2013, 11:45   #2
 
Philipp_'s Avatar
 
elite*gold: 576
Join Date: Mar 2011
Posts: 348
Received Thanks: 996
Quote:
Originally Posted by littlecfresh
Unable to open the physical file "C:\SHAIYA_SERVER\ShaiyaTest\ShaiyaServer\DATABASE \PS_UserData_Data.MDF". Operating system error 5: "5(Access is denied.)".
Access is denied - Did you even read your error log?
It is an windows security issue. Try to turn off UAC or check the permissions of the files you are trying to attach. Does the SQL Server Service Account has read and write rights to those files? If not, modify the rights for this account.
Philipp_ is offline  
Thanks
4 Users
Old 03/31/2013, 09:30   #3
 
elite*gold: 0
Join Date: May 2011
Posts: 75
Received Thanks: 6
Ok i tryed re installing after i disabled the UAC now what? i cant even connect to my Express DB any more Error:


TITLE: Connect to Server
------------------------------

Cannot connect to DANIELA-PC\SQLEXPRESS.

------------------------------
ADDITIONAL INFORMATION:

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1)

For help, click:

------------------------------
BUTTONS:

OK
------------------------------
littlecfresh is offline  
Old 03/31/2013, 12:15   #4
 
Philipp_'s Avatar
 
elite*gold: 576
Join Date: Mar 2011
Posts: 348
Received Thanks: 996
Make sure your server name and instance name is correct and also be sure SQL Browser service is running on your machine.
Philipp_ is offline  
Thanks
3 Users
Old 03/31/2013, 16:54   #5
 
elite*gold: 0
Join Date: May 2011
Posts: 75
Received Thanks: 6
Ok i enabled the SQL Browser and the database is stilll giving me the same error

Would i try the SQL Server Authication

like 127.0.0.1
Username the one thats in the psm_servicemgr
password the one thats in the psm_servicemgr?

Im confused...
littlecfresh is offline  
Old 03/31/2013, 22:11   #6
 
JohnHeatz's Avatar
 
elite*gold: 150
Join Date: Apr 2010
Posts: 9,739
Received Thanks: 8,981
You actually have to set up login credentials on your database; therefore you will have a username and password (unless you use windows authentication)
JohnHeatz is offline  
Thanks
3 Users
Old 04/02/2013, 06:12   #7
 
elite*gold: 0
Join Date: May 2011
Posts: 75
Received Thanks: 6
Thanks i fixed it (well you guys fixed it) but i have this other problem with error 10053...
littlecfresh is offline  
Old 04/02/2013, 21:17   #8
 
JohnHeatz's Avatar
 
elite*gold: 150
Join Date: Apr 2010
Posts: 9,739
Received Thanks: 8,981
As you've created a new thread for this other error, I'm closing this thread.
JohnHeatz is offline  
Thanks
2 Users
Closed Thread


Similar Threads Similar Threads
[HELP] Can't Attach Database
08/30/2012 - Shaiya Private Server - 3 Replies
Hello guys i got problem with my Private Server.. I can't attach DataBase .. Look at screen :) http://img201.imageshack.us/img201/2618/problemwi thattachofdata.png
[HELP] SQL wont let me attach DataBase
08/16/2012 - Shaiya Private Server - 4 Replies
Hey all, I remade my server, and while I was trying to attach the DataBase to my SQL, the session wouldn't stay on, so I removed the database, and now, the SQL wont let me attach it again. Is there anyone who can help me with this? Thanks Dreams
[HELP] Can't Attach Database
06/15/2012 - Shaiya - 6 Replies
Hello i can't attach DataBase in SQL 2005, if you can help me see : http://img27.imageshack.us/img27/5199/db5l.png
ATTACH FAILURE (MoonLight Engine failed to attach to the process. (Error=5)
06/15/2009 - Grand Chase Philippines - 2 Replies
anyone knows the fix for this? Already tried to tick kernelmode debugger option but when i change values the game crashes.



All times are GMT +1. The time now is 02:33.


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