Viewing 15 posts - 4,396 through 4,410 (of 7,610 total)
If it's 128 bytes or less, use CONTEXT_INFO(). That will persist for the life of the connection.
February 29, 2016 at 11:48 am
kenambrose (2/29/2016)
the relational term for that is "natural key".
I would never design a table structure without one. There ALWAYS is one, and if no-one can say...
February 29, 2016 at 11:25 am
j-1064772 (2/26/2016)
That doesn't get rid of NULLs. You'd have to LEFT JOIN to the other tables ... which produces NULL if you don't find a match!
Well you can always...
February 29, 2016 at 8:23 am
j-1064772 (2/26/2016)
kenambrose (2/26/2016)
You just take any column where you would otherwise need nulls, and make a related table for it and...
February 26, 2016 at 2:50 pm
roger.plowman (2/26/2016)
j-1064772 (2/26/2016)
roger.plowman (2/26/2016)
j-1064772 (2/26/2016)
February 26, 2016 at 2:30 pm
patrickmcginnis59 10839 (2/26/2016)
ScottPletcher (5/21/2015)
JediSQL (10/31/2014)
In most conditional statements, like WHERE clauses and IF statements, the conditional expression will return TRUE if and only if SQL Server considers the assertion provably...
February 26, 2016 at 12:32 pm
kenambrose (2/26/2016)
February 26, 2016 at 8:05 am
Btw, you really should strongly consider using ints to represent the StoreNumber and MerchantNumber -- the typical StoreNumberId and MerchantNumberId -- and looking up the 25-byte strings from a separate...
February 25, 2016 at 1:38 pm
Do you (almost) always access this table by StoreNumber and MerchantNumber? If so, cluster the table on those columns -- using the code below -- and try again. ...
February 25, 2016 at 1:26 pm
pietlinden (2/24/2016)
CREATE TABLE Student(
StudentID INT IDENTITY PRIMARY KEY,
FirstName VARCHAR(10) NOT NULL,
LastName VARCHAR(15) NOT NULL
);
GO
INSERT...
February 24, 2016 at 5:57 pm
Are the blocks specific to one issue or "shared" across issues? For now, I'll assume that Block is a completely independent entity. [If it's not, we'll need to...
February 24, 2016 at 2:10 pm
hlsc1983 (2/24/2016)
The reason why i am using exam_year is because the marksheet that the system must finally print reads something like this:...
February 24, 2016 at 12:31 pm
You need to use the actual semester number to record the grade. Year alone is not enough, nor is "odd/even" (bizarre!).
It really seems like this is some type of...
February 24, 2016 at 9:05 am
I think this is the (actual) logic you need, based on analyzing the original code:
SET ANSI_NULLS ON;
SET QUOTED_IDENTIFIER ON;
GO
ALTER PROCEDURE [dbo].[usp_test_Arrears_BrokenArrangement]
@PolicyId int,
@AccountId int,
@PolicyNodeId int,
@output bit OUTPUT
AS
SET NOCOUNT...
February 23, 2016 at 4:04 pm
ChrisM@Work (2/23/2016)
spaghettidba (2/23/2016)
CONVERT(date, RIGHT(Date1,2) + SUBSTRING(Date1,...
February 23, 2016 at 3:42 pm
Viewing 15 posts - 4,396 through 4,410 (of 7,610 total)