how to take backup to a network share? - sql-server-2008

when i tried to back up the database to a shared network i am getting the following error can any one help me?
Msg 3201, Level 16, State 1, Procedure Full_BCK, Line 21
Cannot open backup device '\prabha\Rajniprabha\SivaBaba2008_Full.bak'. Operating system error 5(failed to retrieve text for this error. Reason: 15105).
Msg 3013, Level 16, State 1, Procedure Full_BCK, Line 21
BACKUP DATABASE is terminating abnormally.

Error 5 means Access denied. Are you sure the user running SQL Server has access to that folder?
Also you seem to be missing the first backslash (which could translate to an access denied error), it should be
\\prabha\Rajniprabha\SivaBaba2008_Full.bak

Related

Fatal Error 211 occurred while trying to open a databse table

Warning: Fatal error occurred at sep 20 2022 at 4:18am. Note the error and time, and contact your system administrator.
A severe error occurred on current command. The results, if any, should be discarded. (Microsoft SQL Server, error: 21)
The above is the error I get when I try to access the tables of a particular database while logged in as user "pps2". Meanwhile I can assess this same database tables when I'm logged in as sa.
In the error log, I see the following:
Error: 211, Severity: 23, state: 51
Possible schema corruption. Run dbcc checkcatalog.
I have run the checkcatalog and still same issue persist.

Error on client connections: invalid values of 'columnLabel'

I am MySQL user with workbench and Amazon RDS
Every time I try to access MySQL client connections I get this error:
Unhandled exception:
DbMySQLQuery.resultFieldStringValueByName():
MySQL_ResultSet::isNull: invalid values of 'columnLabel'
Check the log for more details
The user I am using has all the accesses of an admin/root
This error does not happen to all users, only to some
Am I forgetting to provide some kind of permission?
The proposed solution "[3 Feb 16:10] Adam Latchem" worked for me, in the context of MySQL Workbench connecting to a MariaDB database. The fix (for definiteness) is to edit the file C:\Program Files\MySQL\MySQL Workbench 8.0 CE\modules\wb_admin_connections.py at line 346, to change it from
("DB", mforms.StringColumnType, "DB", 100),
to
("db", mforms.StringColumnType, "DB", 100),
(note change of case in first argument).
There is a solution in this link that worked for me on version 8.0.28:
https://bugs.mysql.com/bug.php?id=102465
See entry "[3 Feb 16:10] Adam Latchem"

Running a MySQL Script - with zero knowledge

A client has just supplied me with two long files which are (apparently) scripts that I can run in MySQL to generate a bunch of database tables.
I've installed MySQL (+ workbench) on my PC. From within the Workbench environment I found "run SQL script" under the File menu so I went with that and tried to run the two script files I have. They both fell over partway though giving me error messages:
Finished executing script
ERROR 2006 (HY000) at line 1930: MySQL server has gone away
Operation failed with exitcode 1
and
Finished executing script
ERROR 2006 (HY000) at line 20201: MySQL server has gone away
Operation failed with exitcode 1
I can however see two schemas, both of which contain a bunch of tables, etc. (some of which are populated) so it seems to have been a partial success at least.
Can anyway suggest what might be wrong please?
Thank you.
I can point you at a solved example on stackoverflow for this MySQL error, but the simplest solution is to edit your sql file(s) placing this query at the top:
set SESSION max_allowed_packet=64*1024*1024

Possible schema corruption. Run DBCC CHECKCATALOG

Good Evening to all.
I was working with sql server 2008.
Thing i did:
Actually i was noticed that the free space available in C drive reaches below 1 GB .So i thought to Club the D drive with C drive.I had extended the C drive to 18 GB.
Error that Occurs:
Once i finish Extending the drive size i restarted my system.After logon i opened the Microsoft Sql server Management Studio which has multiple database.Every thing works fine except the Database which i have worked recently.When try to expand the table it shows the error as
"**
Possible schema corruption. Run DBCC CHECKCATALOG. A severe error
occurred on the current command. The results, if any, should be
discarded. (.Net SqlClient Data Provider)
**"
This is how i runned the DBCC runcheck catalog:
DBCC CHECKDB (Demo) WITH NO_INFOMSGS, ALL_ERRORMSGS
and this is the error which i get while running the above:
Msg 0, Level 11, State 0, Line 0 A severe error occurred on the
current command. The results, if any, should be discarded.
Can any one please help me tocome out of this rid.
Thanks in advance

Deploying a new database on a new server, an msbuild ssdt rookie issue

I have this issue, but I don't know which user to should I give dbo permission when the one making deployments to the server is the sqlpackage with msbuild and not an actual user.
*** Could not deploy package.
Error SQL72014: .Net SqlClient Data Provider: Msg 262, Level 14, State 1, Line 1 CREATE DATABASE permission denied in database 'master'.
Error SQL72045: Script execution error. The executed script:
CREATE DATABASE [$(DatabaseName)]
ON
PRIMARY(NAME = [$(DatabaseName)], FILENAME = N'$(DefaultDataPath)$(DefaultFilePrefix)_Primary.mdf')
LOG ON (NAME = [$(DatabaseName)_log], FILENAME = N'$(DefaultLogPath)$(DefaultFilePrefix)_Primary.ldf') COLLATE SQL_Latin1_General_CP1_CI_AS
Things I've already tried:
Give full permissions to NETWORKSERVICE
Give full permissions to SYSTEM
Checked the TCP/IP Connection properties (just in case, but unuseful since the problem says permissions...)
#EDIT: Give sysadmin permissions to DOMAIN\MY_COMPILER_COMPUTER$
I hope this is an easy one for those experienced with this.