background preloader

SQL Server Journey with SQLAuthority

SQL Server Journey with SQLAuthority

SQL Server Tutorials and Tips Pentahos Blog | Um blog sobre BI com Pentaho – Pentaho na cabeça de todos! Help with SQL Server, DB2, Oracle - XML, jQuery, Data Scientists, Data Analysts, Databases, Big Data, the Cloud and More - SSWUG.ORG How to move databases between computers that are running SQL Server This step-by-step article describes how to move Microsoft SQL Server user databases and most common SQL Server components between computers that are running SQL Server. The steps that are described in this article assume that you will not move the master, model, tempdb, or msdb system databases. The steps provide different options for you to transfer logins and the most common components that are contained in the master and msdb databases. For information about the specific items that are not transferred when you follow the steps in this article, see the "More information" section. Note For SQL Server 2008, go to the Managing Metadata When Making a Database Available on Another Server Instance ( Microsoft Developer Network (MSDN) website. Note Data migration from SQL Server 2000 to Microsoft SQL Server 2000 (64-bit) is supported. To move user databases, use one of the following methods. ( ) Applies to

SQL Server Backup DatabaseBackup is the SQL Server Maintenance Solution’s stored procedure for backing up databases. DatabaseBackup is supported on SQL Server 2005, SQL Server 2008, SQL Server 2008 R2, SQL Server 2012, and SQL Server 2014. Download Download MaintenanceSolution.sql. License The SQL Server Maintenance Solution is free. Parameters Databases Select databases. Directory Specify backup root directories, which can be local directories or network shares. DatabaseBackup creates a directory structure with server name, instance name, database name, and backup type under the backup root directory. BackupType Specify the type of backup: full, differential, or transaction log. DatabaseBackup uses the SQL Server BACKUP command: BACKUP DATABASE for the full backup, BACKUP DATABASE WITH DIFFERENTIAL for the differential backup, and BACKUP LOG for the transaction log backup. Verify Verify the backup. The Verify option in DatabaseBackup uses the SQL Server RESTORE VERIFYONLY command. CleanupTime Compress CopyOnly Threads

Database object naming conventions (For SQL Server databases, tables, views, triggers, indexes, primary keys, foreign keys and constraints, cursors, stored procedures, user defined functions [UDFs], columns, defaults, variables): Narayana Vyas Kondreddi's NEW!!! Subscribe to my newsletter: There exist so many different naming conventions for database objects, none of them is wrong. It's more of a personal preference of the person who designed the naming convention. However, in an organization, one person (or a group) defines the database naming conventions, standardizes it and others will follow it whether they like it or not. I came up with a naming convention which is a mixture of my own ideas and views of SQL experts like Joe Celko! Tables represent the instances of an entity. So, name your customer table as 'Customers'. This is a more natural way of naming tables, when compared to approaches which name tables as tblCustomers, tbl_Orders. If your database deals with different logical functions and you want to group your tables according to the logical group they belong to, it won't hurt prefixing your table name with a two or three character prefix that can identify the group. SL_NewLeads SL_Territories SL_TerritoriesManagers

untitled SQLServerVideos - Free Videos to Learn Microsoft SQL Server

Related: