Viewing 15 posts - 1 through 15 (of 68 total)
"Any WHERE clause that checks if column_name = NULL will return no rows, such as in this example."
Not needs qualified to include considering setting ANSI_Nulls
create table #TestIt(MyValue Char(1), MyNullValue char(1))
insert...
October 31, 2014 at 10:01 am
dwain.c (1/21/2013)
tyson.price (1/21/2013)
January 21, 2013 at 6:11 am
dwain.c (1/21/2013)
tyson.price (1/21/2013)
January 21, 2013 at 5:51 am
Any old CICS mainframe programmers here remember calling a deadlock a "deadly embrace"? That wasn't limited to just databases, which were relatively new in my environment (we were still...
January 21, 2013 at 5:11 am
GSquared (11/6/2012)
November 12, 2012 at 4:34 am
Here is another example from here:
DECLARE @strPrint VARCHAR(100);
SET @strPrint = 'Example of carriage return';
SET @strPrint = @strPrint + CHAR(13);
SET @strPrint = @strPrint + 'SQLAuthority.com';
PRINT @strPrint;
GO
PRINT '---------------------------------'
DECLARE @strPrint VARCHAR(100);
SET...
October 26, 2012 at 4:22 am
A little bit down in this post is one example and a link to something someone said is better.
http://www.sqlservercentral.com/Forums/Topic1366387-338-1.aspx
Here is the function in that link:
SET ANSI_NULLS ON
GO
SET...
October 11, 2012 at 9:35 am
Along the lines of what GilaMonster said I pass strings that I need to use in "Where in" quite a bit. This is what I use:
I have this funciton...
October 1, 2012 at 5:17 am
Good tip...I always right clicked on the results pane and selected copy with headers.
September 21, 2012 at 7:05 am
tutblog1 (9/19/2012)
Want to learn SQL?Goto easysqlguide.blogspot.in
Easily learn SQL with the help of images.
The OP asked four years ago so maybe he/she picked up on it by now 😀
September 19, 2012 at 8:07 am
I get your point but, that is why we have comments. I will take performance over easy to read any day of the week. Comments are easy to type and...
August 24, 2012 at 1:02 pm
Luis Cazares (8/24/2012)
tyson.price (8/24/2012)
Most programmers would need to research what "'%[^'+@Char+'X]%'" means if they came across it supporting code. Why put that in place when something much more readable...
August 24, 2012 at 11:35 am
Eugene Elutin (8/24/2012)
Steven Willis (8/24/2012)
CREATE FUNCTION dbo.svfRemoveLeftMostCharacters
(
@Source VARCHAR(1000)
,@Char CHAR(1)
)
RETURNS VARCHAR(1000)
AS
BEGIN
/* This function requires a Tally or Numbers table */
August 24, 2012 at 10:43 am
dastagiri16 (8/22/2012)
hi ,I have two strings like ex:1.'000temp1'
2.'0000temp2'..like
how can i remove the zeros from my string..
You didn't specify, other than by the eaxmple, but this will just eliminate leading zeros.
select...
August 23, 2012 at 4:44 am
What I ended up doing just for expediency’s sake is:
In the select:
,'GR' + convert(Varchar,t1.pkRate_Barcodes) 'ac2'
,'GR' + convert(Varchar,t2.pkRate_Barcodes) 'ac26'
,'GR' + convert(Varchar,t3.pkRate_Barcodes) 'GrpRatCont'
,'GR' + convert(Varchar,t4.pkRate_Barcodes) 'EnrollQuest'
,'GR' + convert(Varchar,t5.pkRate_Barcodes) 'EnrollQuestInv'
,'GR' + convert(Varchar,t6.pkRate_Barcodes) 'U-153'...
August 3, 2012 at 4:19 am
Viewing 15 posts - 1 through 15 (of 68 total)