Skip to content
sqlkitty

sqlkitty

sql for everyone

Menu
  • Home
  • About
  • Auditing
  • Code
  • Presentations
  • Publications
  • Contact

Category: sql server administration

SQL Server types of restoring database files

  • Posted onJanuary 3, 2011
  • sql server administration

NORECOVERY: Tells SQL Server that you are not finished restoring the database and that subsequent restore files will occur. While the database is in this state, the database is not yet available, so no connections are allowed. RECOVERY: Tells SQL Server that you are finished…

Continue Reading

syntax to restore database in NORECOVERY mode

  • Posted onJanuary 3, 2011
  • sql server administration

run this sql: RESTORE DATABASE  databasename  WITH RECOVERY

Continue Reading

Cannot perform the specified operation on disabled index

  • Posted onJanuary 3, 2011
  • sql server administration

my maintenance plan for defrag-ing indexes was failing due to a disabled index ran this to re-enable index: ALTER INDEX [indexname] ON dbname.tablename REBUILD GO

Continue Reading

update default path for databases

  • Posted onDecember 22, 2010
  • sql server administration

open SSMS – right click on the Server – Properties – Database Settings – Database Default Locations good idea to not have your databases on the c drive

Continue Reading

quick overview of sql server builds

  • Posted onDecember 22, 2010
  • sql server administration

Quick summary: RTM (Gold, no SP) SP1 SP2 SP3 SP4 SQL Server 2011 codename Denali – SQL Server 2008 R2 codename Kilimanjaro 10.50.1600.1 SQL Server 2008 codename Katmai 10.00.1600.22 10.00.2531 10.00.4000 SQL Server 2005 codename Yukon 9.00.1399.06 9.00.2047 9.00.3042 9.00.4035 9.00.5000 SQL Server 2000 codename…

Continue Reading

sql server 2008 builds

  • Posted onDecember 22, 2010
  • sql server administration

Major Builds Version Build KB Article Service Pack 2 for SQL Server 2008 10.0.4000.00 968369 Service Pack 1 for SQL Server 2008 10.0.2531.00 968369 RTM 10.0.1600.22 N/A Build KB Article Title Description 10.0.4266.00 2289254 SQL Server 2008 SP2 CU 1 The first CU after SQL…

Continue Reading

get current version of sql server running

  • Posted onDecember 22, 2010
  • sql server administration

select @@Version SELECT SERVERPROPERTY(‘productversion’), SERVERPROPERTY (‘productlevel’), SERVERPROPERTY (‘edition’)

Continue Reading

add user to sql server

  • Posted onDecember 22, 2010
  • sql server administration

under security –> logins (right click)

Continue Reading

to get sizes of databases emailed to self

  • Posted onDecember 22, 2010
  • sql server administration

use msdb exec sp_send_dbmail @profile_name = ‘ss job notifications’, @recipients = ‘put email address here’, @subject = ‘live database sizes’, @query = ‘use databasename select db_name(dbid),str(convert(dec(15),sum(size))* 8192/ 1048576,10,2)+ N” MB” as Size from sys.sysaltfiles group by dbid order by 2 desc’, @attach_query_result_as_file = 1;

Continue Reading

Access is denied. Msg 3013. when restoring database from a network drive

  • Posted onDecember 21, 2010
  • sql server administration

if you are trying to restore a database from a backup file that is on a network server… the sql server service needs to be running under a domain account that has privileges to the network share you are trying to retrieve the backup file…

Continue Reading

Posts pagination

Previous Page Page 1 … Page 10 Page 11 Page 12 Page 13 Next Page

Newletter Signup

Loading

Recent posts

  • T-SQL Tuesday #186 Invitation – Managing Agent Jobs
  • Query multiple Azure SQL Databases
  • Azure Vulnerability Assessments
  • Using Cron in Postgres Flex
  • Why use XACT_ABORT?

Categories

  • audit (2)
  • azure (45)
  • containerization (14)
  • datawarehousing (4)
  • dba (52)
  • editorial (8)
  • excel and others (3)
  • IT Certifications (1)
    • network+ (1)
  • linux (2)
  • network administration (15)
  • newjob (7)
  • other (8)
  • performance (1)
  • postgresql (16)
  • powershell (1)
  • security (3)
  • sql server (22)
  • sql server administration (124)
    • jobs (4)
  • sql sever syntax (78)
  • terraform (5)
  • tsql2sday (2)
  • web dev (6)
  • zen (2)

Archives

  • June 2025 (1)
  • May 2025 (2)
  • April 2025 (2)
  • March 2025 (3)
  • February 2025 (3)
  • January 2025 (4)
  • November 2024 (3)
  • October 2024 (1)
  • September 2024 (2)
  • August 2024 (1)
  • July 2024 (5)
  • June 2024 (4)
  • May 2024 (4)
  • April 2024 (3)
  • March 2024 (2)
  • February 2024 (1)
  • January 2024 (5)
  • December 2023 (2)
  • November 2023 (5)
  • October 2023 (1)
  • September 2023 (1)
  • August 2023 (2)
  • July 2023 (2)
  • June 2023 (3)
  • May 2023 (4)
  • April 2023 (3)
  • March 2023 (5)
  • January 2023 (1)
  • October 2022 (2)
  • April 2022 (1)
  • December 2021 (1)
  • May 2021 (1)
  • April 2021 (2)
  • February 2021 (7)
  • January 2021 (4)
  • December 2020 (2)
  • November 2020 (1)
  • January 2020 (2)
  • December 2019 (3)
  • August 2019 (2)
  • February 2019 (1)
  • June 2018 (1)
  • January 2018 (1)
  • September 2017 (1)
  • May 2016 (4)
  • January 2016 (2)
  • December 2015 (2)
  • August 2015 (2)
  • July 2015 (4)
  • June 2015 (3)
  • May 2015 (9)
  • April 2015 (4)
  • November 2014 (7)
  • October 2014 (19)
  • September 2014 (3)
  • July 2014 (2)
  • July 2013 (1)
  • December 2012 (1)
  • October 2012 (1)
  • December 2011 (6)
  • October 2011 (6)
  • September 2011 (5)
  • July 2011 (1)
  • June 2011 (1)
  • May 2011 (2)
  • April 2011 (1)
  • February 2011 (15)
  • January 2011 (19)
  • December 2010 (14)
  • November 2010 (16)
  • October 2010 (3)

RSS SQL Kitty RSS

  • T-SQL Tuesday #186 Invitation – Managing Agent Jobs
  • Query multiple Azure SQL Databases
  • Azure Vulnerability Assessments
  • Using Cron in Postgres Flex
  • Why use XACT_ABORT?
© Copyright 2025 – sqlkitty
Chip Life Theme by TutorialChip ⋅ Powered by WordPress