Login
Home
KB
Snippets
Current Articles
|
Archives
|
Search
Stored Procedures
NO Image:
01
SQL Function to Lookup DNN Profile Values
posted on February 01, 2021 15:20
CREATE FUNCTION GIBS_GetProfileElement ( @userID as int, @portalID as int, @ProfilePropertyName as nvarchar(100) ) RETURNS nvarchar(4000) AS BEGIN ...
[Read the rest of this article...]
Posted in:
DNN
,
SQL Scripts
,
Stored Procedures
Actions:
E-mail
|
Permalink
|
Comments (0)
15
Pivot Query for Ventrian Property Agent
posted on December 15, 2014 08:22
I had a need for getting a property details for a SSR report and came up with the following store procedure . . . I thought it might be useful t...
[Read the rest of this article...]
Ventrian Property Agent
Posted in:
Modules
,
Custom Modules
,
Microsoft SQL Server
,
SQL Scripts
,
SQL Server 2008 R2
,
Stored Procedures
Actions:
E-mail
|
Permalink
|
Comments (0)
16
Replace Null or Empty Value with String
posted on September 16, 2014 06:28
Select ISNULL(NULLIF(GIBS_FBLineItems.ReportType, ''), '--Undefined--') as ReportType from GIBS_FBLineItems
SQL
Posted in:
SQL Scripts
,
SQL Server 2008 R2
,
Stored Procedures
Actions:
E-mail
|
Permalink
|
Comments (0)
17
Finding the Port of MS SQL Named Instance
posted on March 17, 2011 06:12
When running a named instance of MS SQL the instance will run on a port other than the usual port 1433. To determine the port you can use th...
[Read the rest of this article...]
Posted in:
Microsoft SQL Server
,
SQL Server 2008 R2
,
Stored Procedures
Actions:
E-mail
|
Permalink
|
Comments (0)
27
Deleting a DNN User Account
posted on October 27, 2010 14:32
@rUser table (UserId int) 'Set UserID' into @rUser (UserId) values (9) Print '==================================' Print 'DELETE from aspnet_Me...
[Read the rest of this article...]
Posted in:
DNN
,
Stored Procedures
Actions:
E-mail
|
Permalink
|
Comments (0)
21
Check for Null Value in a Stored Procedure
posted on April 21, 2010 04:54
Within a stored procedure use an IF STATEMENT to check a parameter for a NULL VALUE if( @CustomFieldID is null) begin print 'NULL V...
[Read the rest of this article...]
Stored-Procedure
,
Null-Value
Posted in:
Stored Procedures
Actions:
E-mail
|
Permalink
|
Comments (0)