Solved

SQL 2005 database bases

Posted on 2006-11-21
7
604 Views
Last Modified: 2012-06-27
Hi Experts

I'm fairly inexperienced with SQL, so please bear with me.

I'm trying out using a Helpdesk application with using SQL 2005,mainly to learn a bit of SQL, and have a couple of questions -

i) We are using Veritas 9.1 BE for our backups. Is this recommended (providing we purchase the relevant Agent) for SQL as well? Can the agent restore parts of the database (e.g. certain tables) or the entire db only?

ii) How is it possible to take a manual backup of the database? In the Management Console, I am going to Backup Devices>Backup Database, but seem unable to backup the db and also add a new location for the files due to the following message;

Property BackupDirectory is not available for Settings 'Microsoft.SqlServer.Management.Smo.Settings'. This property may not exist for this object, or may not be retrievable due to insufficient access rights.  (Microsoft.SqlServer.Smo)

iii) Is there any method of 'viewing' the data in the db as there is in, say MS Access?

iv) Say one of the users is named UserA. The HD application stores this once I add him for the first time, but I'm not sure where? Also, if User A changes his name to User B, how can I make wholesale changes to the DB?

v) The app has a front end to run SQL queries, e.g. status= 'open'. Is it possible to run this on the DB itself to see what info comes up?

Many thanks...
0
Comment
Question by:Dilan77
  • 3
  • 3
7 Comments
 
LVL 28

Accepted Solution

by:
imran_fast earned 500 total points
ID: 17987137
i) Full backup or to a particular state but not specific table

2)How is it possible to take a manual backup of the database?
Right Click on yourdatabase --> Tasks --> Backup
Specify the filename path and type of backup .

iii) Is there any method of 'viewing' the data in the db as there is in, say MS Access?
expand Database  --- > YourDb --> Tables ---> Right Click Open Table

iV) Not sure what you need in this

V) In management studio Expand Database right click on yourdb and newquery
in the query run
Select * from yourtble where status ='open'
0
 
LVL 2

Author Comment

by:Dilan77
ID: 17987306
Thanks for the quick response...

i) OK...from your experience, is Veritias recommended, or is it safer to take a manual backup of the db and then backup this file?

ii) When specfiying the destination, I am getting the

Property BackupDirectory is not available for Settings 'Microsoft.SqlServer.Management.Smo.Settings'. This property may not exist for this object, or may not be retrievable due to insufficient access rights.  (Microsoft.SqlServer.Smo)

message. Any ideas?

iii) Thanks

iv) I have a contact ID named User1 that I need to change to User2. How can I change this via the db?

v) I have typed in:

select * from dbo.status
 where status = 'open'

how can i get this query to run?

Thanks again...
0
 
LVL 28

Expert Comment

by:imran_fast
ID: 17987377
i) As long as Veritias is concern they have good backup solutions but i never used it as i used maintenace plan of sql server.
 
ii) Do you have sysadmin or backupadmin access on the database

iv) Drop user1 from the logins and create new user2 in the logins. and give this user access
It is good practice to  create a role and provide access on the role to a user.

V) press f5 or red exclamation mark on the top(!)
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 4

Expert Comment

by:Clothahump
ID: 17988481
We found that it was a lot easier to schedule the Veritas backup after the SQL Server maintenance plan ran.  We then backed up the backup file created by the maintenance plans, rather than trying to directly back up the database itself.
0
 
LVL 2

Author Comment

by:Dilan77
ID: 17988526
Thanks, and just two more questions...

ii) Yes, the user that I am logged into the database with has all the permissions for the d

v) What would be the reason to run a query on the database itself rather than using the front end of an application?
0
 
LVL 28

Expert Comment

by:imran_fast
ID: 17994010
ii) Yes, the user that I am logged into the database with has all the permissions
are you mentioning the backup destination correctly
follow these steps

After connecting to the appropriate instance of the Microsoft SQL Server Database Engine, in Object Explorer, click the server name to expand the server tree.

Expand Databases, and, depending on the database, either select a user database or expand System Databases and select a system database.

Right-click the database, point to Tasks, and then click Back Up. The Back Up Database dialog box appears.

In the Destination section of the General page, click Disk. To select the paths of up to 64 diskcontaining a single media set, click Add.


v) What would be the reason to run a query on the database itself rather than using the front end of an application?
Running the query on the database is to check the data and for administration purpose
0
 
LVL 2

Author Comment

by:Dilan77
ID: 18002207
Thanks Imran.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Query Syntax 17 35
TSQL query to generate xml 4 34
insert wont work in SQL 14 21
Return 0 on SQL count 24 30
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question