Skip to content

Commit 02e78e7

Browse files
Merge pull request #104 from EmergentSoftware/dev
Dev
2 parents 5da466d + 2e02322 commit 02e78e7

9 files changed

+23
-10
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,17 @@ assignees: ''
1010
**Version of the script**
1111
Look in the stored procedure, and it'll have a version date & number near the top. Put that in here. If it's not the current version (dated in the last month), then upgrade to the current version and test that before reporting a bug - we fix a lot of stuff in each new build. We'll flat out close bug reports for older builds.
1212

13+
14+
**What is the Check Id?**
15+
16+
1317
**What is the current behavior?**
1418

19+
1520
**If the current behavior is a bug, please provide the steps to reproduce.**
1621

22+
1723
**What is the expected behavior?**
1824

25+
1926
**Which versions of SQL Server and which OS are affected by this issue? Did this work in previous versions of our procedures?**

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@ assignees: ''
1010
**Is your feature request related to a problem? Please describe.**
1111
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
1212

13+
1314
**Describe the solution you'd like**
1415
A clear and concise description of what you want to happen.
1516

17+
1618
**Describe alternatives you've considered**
1719
A clear and concise description of any alternative solutions or features you've considered.
1820

21+
1922
**Are you ready to build the code for the feature?**
2023
As much as we'd love to build everything that everyone wants for free, we need your help. Open source is built with your help and code. Are you ready to commit time to this project? Have you got existing code you can help contribute to solve the problem?

Images/repository-open-graph.png renamed to Images/sp_Develop - Emergent Software - SQL Server Assess - GitHub Open Graph.png

File renamed without changes.
434 KB
Loading
405 KB
Loading
944 KB
Loading
539 KB
Loading

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# SQL Server Assess Overview
2-
The SQL Server Assess project contains the sp_Develop stored procedure. It can be used by database developers, software developers and for performing database code (smell) reviews.
2+
The SQL Server Assess project contains the [sp_Develop](https://github.com/EmergentSoftware/SQL-Server-Assess/blob/master/sp_Develop.sql) stored procedure. It can be used by database developers, software developers and for performing database code (smell) reviews.
33

44
This lists the database development best practice checks and naming conventions checks for the stored procedure named sp_Develop.
55

66
## Install Instructions
77

8-
It is recommend installing this stored procedures in the master database for full SQL Servers, but if you want to use another one, that's totally fine.
8+
It is recommend installing the [sp_Develop](https://github.com/EmergentSoftware/SQL-Server-Assess/blob/master/sp_Develop.sql) stored procedures in the master database for full SQL Servers, but if you want to use another one, that's totally fine.
99

10-
On Azure SQL Server you will need to install this stored procedure in the user database.
10+
On Azure SQL Server you will need to install the sp_Develop stored procedure in the user database.
1111

1212
## Usage Instructions
1313

14-
After installing the stored procedure open SSMS and run in the database you wish to check for database development best practices.
14+
After installing the [sp_Develop](https://github.com/EmergentSoftware/SQL-Server-Assess/blob/master/sp_Develop.sql) stored procedure open SSMS and run in the database you wish to check for database development best practices.
1515

1616
```sql
1717
EXECUTE dbo.sp_Develop
@@ -390,7 +390,7 @@ Although the MONEY data type generally takes less storage and takes less bandwid
390390

391391
You can't require everyone to stop using national characters or accents any more. Names are likely to have accents in them if spelled properly, and international addresses and language strings will almost certainly have accents and national characters that can’t be represented by 8-bit ASCII!
392392

393-
**Future columns to check:**
393+
**Column names to check:**
394394
- FirstName
395395
- MiddleName
396396
- LastName
@@ -651,7 +651,7 @@ It is common to need a database to operate under different names.
651651
## Using @@IDENTITY Instead of SCOPE_IDENTITY
652652
**Check Id:** [NONE YET]
653653

654-
The generation of an IDENTITY value is not transactional, so in some circumstances, @@IDENTITY returns the wrong value and not the value from the row you just inserted. This is especially true when using triggers that insert data, depending on when the triggers fire. The SCOPE_IDENTITY function is safer because it always relates to the current batch (within the same scope). Also consider using the IDENT_CURRENT function, which returns the last IDENTITY value regardless of session or scope. The OUTPUT clause is a better and safer way of capturing identity values.
654+
The generation of an identity value is not transactional, so in some circumstances, ```@@IDENTITY``` returns the wrong value and not the value from the row you just inserted. This is especially true when using triggers that insert data, depending on when the triggers fire. The ```SCOPE_IDENTITY``` function is safer because it always relates to the current batch (within the same scope). Also consider using the ```IDENT_CURRENT``` function, which returns the last identity value regardless of session or scope. The OUTPUT clause is a better and safer way of capturing identity values.
655655

656656

657657
## Using BETWEEN for DATETIME Ranges
@@ -723,13 +723,13 @@ Try running EXEC sp_refreshsqlmodule or sp_refreshview.
723723

724724
# Running Issues
725725

726-
These are some issues you might run into when running sp_Develop.
726+
These are some issues you might run into when running [sp_Develop](https://github.com/EmergentSoftware/SQL-Server-Assess/blob/master/sp_Develop.sql).
727727

728728

729729
## Some Checks Skipped
730730
**Check Id:** 26
731731

732-
We skipped some checks that are not currently possible, relevant, or practical for the SQL Server sp_Develop is running against. This could be due to the SQL Server version/edition or the database compatibility level.
732+
We skipped some checks that are not currently possible, relevant, or practical for the SQL Server [sp_Develop](https://github.com/EmergentSoftware/SQL-Server-Assess/blob/master/sp_Develop.sql) is running against. This could be due to the SQL Server version/edition or the database compatibility level.
733733

734734

735735

@@ -748,13 +748,13 @@ There most likely been some new checks and fixes performed within the last 6 mon
748748
## Ran on a Non-Readable Availability Group Secondary Databases
749749
**Check Id:** 17
750750

751-
You are running this on an AG secondary, and some of your databases are configured as non-readable when this is a secondary node. To analyze those databases, run sp_Develop on the primary, or on a readable secondary.
751+
You are running this on an AG secondary, and some of your databases are configured as non-readable when this is a secondary node. To analyze those databases, run [sp_Develop](https://github.com/EmergentSoftware/SQL-Server-Assess/blob/master/sp_Develop.sql) on the primary, or on a readable secondary.
752752

753753

754754
## Ran Against 50+ Databases Without @BringThePain = 1
755755
**Check Id:** 18
756756

757-
Running sp_Develop on a server with 50+ databases may cause temporary insanity for the server and/or user. If you're sure you want to do this, run again with the parameter @BringThePain = 1.
757+
Running [sp_Develop](https://github.com/EmergentSoftware/SQL-Server-Assess/blob/master/sp_Develop.sql) on a server with 50+ databases may cause temporary insanity for the server and/or user. If you're sure you want to do this, run again with the parameter @BringThePain = 1.
758758
759759
760760
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
CREATE SCHEMA [Schema_Including_$pecial_Characters_in_Name]
2+
AUTHORIZATION [dbo]
3+
GO

0 commit comments

Comments
 (0)