Viewing 15 posts - 1,981 through 1,995 (of 6,036 total)
select @SearchString = REPLACE(@SearchString, LastName, '')
FROM ThisTable
select @SearchString
_____________
Code for TallyGenerator
May 2, 2013 at 1:09 am
Mansfield (4/28/2013)
_____________
Code for TallyGenerator
May 1, 2013 at 11:20 pm
There is a simpler way.
No updates required:
--===== Create a test table.
-- This is NOT part of the solution.
IF...
_____________
Code for TallyGenerator
May 1, 2013 at 6:09 pm
Computed column would be a good option for you.
_____________
Code for TallyGenerator
April 30, 2013 at 10:36 pm
antony-688446 (4/30/2013)
see the other example around initialising a variable as part of the DECLARE. The statement is passed, and the variable is created, but the statement itself is NOT executed
That...
_____________
Code for TallyGenerator
April 30, 2013 at 9:58 pm
antony-688446 (4/30/2013)
_____________
Code for TallyGenerator
April 30, 2013 at 9:22 pm
L' Eomot Inversé (4/30/2013)
edit: I think this is the first QotD that I've seen which managed to point up two BOL errors.
There were times when you could teach students by...
_____________
Code for TallyGenerator
April 30, 2013 at 6:44 pm
ronmoses (4/30/2013)
Bob Cullen-434885 (4/30/2013)
_____________
Code for TallyGenerator
April 30, 2013 at 6:40 pm
antony-688446 (4/30/2013)
_____________
Code for TallyGenerator
April 30, 2013 at 6:29 pm
GilaMonster (4/30/2013)
What kinds of seats or travel options require 1000 unicode characters to explain? I'd think of seat type as 'economy', 'premium', 'business', etc, not half a novel.
Comma separated names...
_____________
Code for TallyGenerator
April 30, 2013 at 12:55 pm
GilaMonster (4/30/2013)
Temp table caching was added in SQL 2005 to alleviate the contention on the TempDB allocation pages caused by frequent creation of temp tables.
I wish that would be a...
_____________
Code for TallyGenerator
April 30, 2013 at 3:31 am
create table dbo.Location (
id int identity,
Name varchar(100),
constraint PK_Location PRIMARY KEY (id),
constraint UK_Location unique (Name )
)
create table dbo.TravelAttribute(
id int identity,
Name nvarchar(1100),
constraint PK_TravelAttribute PRIMARY KEY (id),
constraint UK_TravelAttribute unique (Name )
)
create table onward_journey
(
onward_journey...
_____________
Code for TallyGenerator
April 30, 2013 at 3:09 am
Thanks Jeff for keeping it up.
🙂
Your list of suggested action is perfect, but I'd say it's a bit overkill for beginners.
To start - it's important to remember doing regular LOG...
_____________
Code for TallyGenerator
April 30, 2013 at 12:30 am
Thanks everyone for positive feedback.
As you can guess the question came from practical experience when developers were puzzled with "odd" behaviour of SQL Server.
Had to build this sample script to...
_____________
Code for TallyGenerator
April 29, 2013 at 11:57 pm
geoff5 (4/24/2013)
I think the solution I posted earlier addresses these concerns. I welcome your feedback, if you test it and find that it does not.
That would be for Kevin...
_____________
Code for TallyGenerator
April 29, 2013 at 9:38 pm
Viewing 15 posts - 1,981 through 1,995 (of 6,036 total)