DynDeveloper.com
Sign Up Now!
Log In
Home
Sign Up
Ask A Question
Knowledge Base
The Dynamics GP Table Reference
Our list of the Dynamics GP Tables, their structures and relationships
Visual Studio Tools For Dynamics GP
How Tos
Tutorials
Most popular posts
Code Examples
Menus for VS Tools
SDK
eConnect
Our Tutorials, Code Examples
Link to the Microsoft Help pages
Service Based Architecture
Tutorials, Code Examples
SQL Server
SQL Reporting Services
General Purpose SQL Scripts
Code Specific to Dynamics GP tables
SQL for Beginners - We teach you T-SQL
Web Services
Help, code samples, resources
VBA/Dynamics Modifier VBA mods
Our VBA code library
Integration Manager
Tools for working with Integration Manager
.NET Development
Code libraries
How Tos
Tutorials
Sage advice from the most
experienced coders around
Telerik Development
ASP.NET Menu
WinForms Menu
Dynamics GP
Dynamics 365
Extender
Tips and Tricks
SmartConnect
Dynamics Report Writer
Management Reporter
And More
Microsoft Access
Our Favorite Posts
More
Contact Us
Products We Recommend
Policies
SQL Server General Index
About SQL Server
General
Automatically Run a Stored Procedure using a SQL job
Optimization
Recovery Models
Admin Tasks
General
Auditing - script to create an auditing table
Backing up SQL Express
Backup Database Tutorial (2008)
Backup Database Tutorial (2014)
Backup one database and restore to another in a script
Decrypt a Stored Procedure
Grant permissions cursor
How to change the DB Collation for a Dynamics GP server
Logins - Drop multiple logins from all databases
Logins - Migrate from one SQL box to another
Orphaned users
Recovery Model for each Database on a Server (FULL or SIMPLE)
Renaming SQL Server
Restore Database Tutorial (2008)
Restore Database Tutorial (2014)
Run a script against all databases
Run a script against all Dynamics GP company databases
Set the Recovery Model for all Databases
Monitoring SQL
Get the names and locations of SQL logs and database files
Monitor table space usage
Run DBCC CHECKTABLE against all the tables in a database
Space used for all tables
SQL Maintenance Queries
Truncate a SQL Log File
SQL 2005
SQL 2008 +
Truncate all Log Files in a Dataase
SQL 2005
SQL 2008 +
Beautifying T-SQL Code
DPRiver.com
Format-SQL.com
poorsql.com
tsqltidy.com
Configuring Email
Common errors when setting up email alerts
Setting up database mail on SQL 2008 R2
Setting up DB mail
SQL - Send email
Function Library
ddf_Address
ddf_FormatNumeric - formats a dollar value
ddf_FormattedQty - Formatted Quantities using DECPLQTY
ddf_GetLastDayOfMonth
ddf_PadRight
ddf_Phone
ddf_PopPosOnAContract (comma separated list of children)
ddf_RegexReplace - Regex Replace function for SQL
Internal Helper Procedures
ddf_ColumnType
ddf_columnTypeVB
DDReservedWords
ddv_DALTableColumnMetaData
Programming tasks
Calling a web service from SQL
Comma or Semicolon Separated Output
Comma separated detail from a sub table
Connection String Example
Copy ANY TABLE from one database to another
Date Functions
Cast and Convert examples
Get the date of the first day of the month
Get the first day of the week from a week number
Find table and field a particular value reside
Find tables that contain a certain field
Find tables that have no permissions granted, and fix them
Get the text of all the triggers in a database
Group by Grouping Sets example
Insert an image into a SQL table from SQL
Log the user that changed a field
Loop through a string and show ASCII characters
Paging query contest
Parse a comma separated string into a SQL table
Part 1
Part 2
Remove unwanted characters from a field in SQL
sp_send_dbmail example
SQL code to resequence a grid
Stored Procedure with Output Parameters
Suppress the results of a stored procedure
Table Value Constructors
Temp Tables - how to tell if one exists
Templates
Cursor
Dynamic INSERT statement
Function - SCALAR
Function - table valued
Stored Procedure
Trigger
TRY/CATCH
View
Writing To A Text File
Write all DB contents to a text file
Write all DB contents to a text file SQL 2012
Writing to a text file
Puzzler
SQL Puzzler 2/13/2019
SQL XML
For XML Path
Read an XML Attribute
T-SQL
Copy ALL the data from one database to another
CROSS APPLY example
CTE Example showing multiple sources, ddv_401k
CTE Example showing Recursion
dd_FL
DELETE into an OUTPUT table
FORMAT - examples of date formatting
FORMAT - Format a number as a percent
FORMAT - Format a number as a string, include the currency symbol and use the correct decimal place
FORMATMESSAGE (SQL equivalent to String.Format)
RAISERROR - formatting the error string
ROW_NUMBER()
Return the first row in a child table with multiple rows
Sum fields that are in group rows - a custom RUNNING TOTAL excercise
SELECT Statement
Order by - dynamic
SQL CTE Example
SQL Pivot code
SQL Stuff
Unit Testing T-SQL Code
tSQL.t