SQL Flashcards

1
Q

How do you install SQL Express with tools 64-bit?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you run a script?

A
  1. Open SSMS, right-click a database on the left side, and select New Query
  2. Paste the script into the query window
  3. Press Parse to validate SQL syntax
  4. Press Execute to run the script
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do you set SQL to log into a file?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Explain the difference between Windows vs. SQL authentication

A

Windows authentication checks the Windows User account that’s logged in using a principal token, whereas SQL authentication uses a username and password stored in within the SQL instance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you view a table for the VCM database?

A
  1. Expand the SqlServer instance tree
  2. Expand the VCM Database
  3. Expand Tables
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you view permissions for a database?

A
  1. Right-click a database in the Object Explorer and select Properties
  2. On the right side, select the Permissions page
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do you view Security Roles for a database?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do you take a backup of a database?

A
  1. Right-click a database in the Object Explorer and select Tasks > Back Up…
  2. Press Add to choose a file path to save to
  3. Press OK to back up the database
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do you detach a database?

A
  1. Right-click a database in the Object Explorer and select Tasks > Detach
  2. Press OK
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How do you restore a database?

A
  1. Right-click a database in the Object Explorer and select Tasks > Restore > Database
  2. Choose Device and enter the file path of the .bak file
  3. Select the database from the drop-down
  4. Press OK
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How do you reattach a database?

A
  1. Right-click Databases and select Attach
  2. Press Add, then navigate to the location of the .mdf file
  3. Press OK
How well did you know this?
1
Not at all
2
3
4
5
Perfectly