Viewing 15 posts - 4,081 through 4,095 (of 8,731 total)
Do you mean something like this?
CREATE TABLE CharsTest(
myvarchar varchar(10),
myNvarchar nvarchar(10),
myLvarchar varchar(max));
SELECT *...
September 29, 2015 at 11:26 am
Check the following, try to understand it, follow the links and read the articles. Post any questions that you might have.
CREATE TABLE #Table1 (
ID INT IDENTITY(1,1),...
September 29, 2015 at 10:36 am
Can you post DDL, sample data and expected results? You can read how to do it in the link on my signature.
It doesn't seem like a difficult task, but I'm...
September 29, 2015 at 10:12 am
Ed Wagner (9/29/2015)
djj (9/29/2015)
Ed Wagner (9/29/2015)
SQLRNNR (9/28/2015)
DonlSimpson (9/28/2015)
Ed Wagner (9/28/2015)
whereisSQL? (9/28/2015)
djj (9/28/2015)
Ed Wagner (9/28/2015)
anthony.green (9/28/2015)
ZZartin (9/28/2015)
LeafHeap
Cluster
Single
Engaged
Active
Passive
Node
Tree
Family
History
Channel
September 29, 2015 at 9:16 am
Can you update data from multiple tables in the same UPDATE statement, by joining those tables in a CTE ?
No, you can't.
From BOL
Updatable Views
You can modify the data of an...
September 29, 2015 at 9:03 am
standardbluecaboose (9/29/2015)
Thanks for the quick reply.
The WHERE ' ' + Name + ' ' LIKE '%[^A-Za-z]Richard[^A-Za-z]%'; is insane in a bad way. I have no suggestions for how to make...
September 29, 2015 at 8:07 am
jose.pla (9/29/2015)
If possible a sequel of this article could be a performance comparison between LIKE and PATINDEX, and maybe also include CONTAINS.
...
September 29, 2015 at 7:58 am
Alan.B (9/29/2015)
Interesting technique using REPLICATE, I would add that I like to use CHAR() more...
September 29, 2015 at 7:54 am
standardbluecaboose (9/29/2015)
3 comments:
SELECT *FROM dbo.LIKETest
WHERE ' ' + Name + ' ' LIKE '%[^A-Za-z]Richard[^A-Za-z]%';
That is insane.
I'm not sure if this is good or bad.
'[1-9][0-9][0-9][0-9]-[0-1][0-9]-[0-3][0-9]'
TIL 9000-19-39 is a valid...
September 29, 2015 at 7:46 am
peter.row (9/29/2015)
I'd always thought that a lot of these kinds of operations would...
September 29, 2015 at 7:30 am
Michael G (9/29/2015)
Thanks for the article. I decided to try your email wildcard like search on our email list with a small tweak.
Not all email address end with .com or...
September 29, 2015 at 7:27 am
Because in the string for sp_executesql, you're calling the sp as
EXEC R01OrderForm @Region, @District, @Dealer, @ProductSegment, @ReportPeriod, @LoginLevel
That code will assign the values to the parameters in the order...
September 28, 2015 at 2:27 pm
You could go for something like this:
WITH CTE AS (
SELECT '100' PAT_ID, 1200 PLAN_ID, 'ALPHA' PLAN_NAME UNION
SELECT '100' PAT_ID, 1300 PLAN_ID, 'BRAVO' PLAN_NAME UNION
SELECT '200' PAT_ID, 1200 PLAN_ID, 'ALPHA' PLAN_NAME...
September 28, 2015 at 11:52 am
Kim Crosser (9/28/2015)
September 28, 2015 at 10:40 am
I'm not sure if it's included in a recent version, but usually this is what it works.
=iif(isNothing(Fields!FV1.Value), Fields!FV2.Value, Fields!FV1.Value)
September 28, 2015 at 10:07 am
Viewing 15 posts - 4,081 through 4,095 (of 8,731 total)