Viewing 15 posts - 1,681 through 1,695 (of 8,731 total)
I've used the clustered PK, but I don't remember if there was an actual improvement or not. There might be, but with a small number of rows (as parameters usually...
January 5, 2017 at 12:02 pm
CELKO (1/5/2017)
CREATE TABLE Players
(player_id CHAR(5) NOT NULL PRIMARY KEY,
first_name VARCHAR(10) NOT NULL,
last_name VARCHAR(10) NOT...
January 5, 2017 at 11:43 am
My suggestion is that you insert parameter values into a table for each parameter.
Basically, your stored procedures would have a format similar to this:
CREATE PROCEDURE SomeReport (
...
January 5, 2017 at 10:46 am
What happens when you run them both at the same time?
January 5, 2017 at 9:36 am
Use HAVING.
GROUP BY memberid HAVING COUNT( DISTINCT membername) > 1
or
GROUP BY memberid HAVING MAX(membername) <> MIN(membername)
January 5, 2017 at 8:22 am
Phil Parkin (1/5/2017)
Does anyone have any idea why a thread I created yesterdayhttp://www.sqlservercentral.com/Forums/FindPost1847804.aspx
appears to have removed or marked as spam?
Maybe you were selling kitchens? Or fake documents? :hehe:
January 5, 2017 at 7:18 am
Rasmus Remmer Bielidt (1/5/2017)
I didn't see anybody making this point, but COALESCE() absolutely needs a non-null argument or it will throw an error where...
January 5, 2017 at 7:16 am
drew.allen (1/4/2017)
Brandie Tarvin (1/4/2017)
I like CASE personally because it allows me to alter values being returned (or add new information) where as COALESCE just returns the original value.
But you can...
January 4, 2017 at 1:24 pm
Brandie Tarvin (1/4/2017)
Luis Cazares (1/4/2017)
Does this works?
Tip: don't try to do everything in a single pattern. Sometimes is easier to use several patterns.
NICE, Luis. And I can use a REVERSE(RTRIM(QuestionableColumn))...
January 4, 2017 at 12:26 pm
Eric M Russell (1/4/2017)
If the user entered codes are not relationally tied to any other table, then what are the ramifications of them being entered "wrong" ?
I guess is like...
January 4, 2017 at 12:23 pm
Thom A (1/4/2017)
Eric M Russell (1/4/2017)
January 4, 2017 at 10:37 am
Jeff Moden (1/4/2017)
BrainDonor (1/4/2017)
DBMS of the year, apparently - http://db-engines.com/en/blog_post/67At a 100,000 foot view, sounds more like a report on marketing success than anything else. 🙂
Close, but not quite.
January 4, 2017 at 8:14 am
Does this works?
IF (SELECT OBJECT_ID('tempdb..#MyTemp')) IS NOT NULL
DROP TABLE #MyTemp;
CREATE TABLE #MyTemp (QuestionableColumn CHAR(20));
INSERT INTO #MyTemp (QuestionableColumn)
VALUES ('ABC1GKUCEEF7AR169582'), --Good value
('ABC2G1WG5E37D1157775'), --Good value
('BCD3GTU2TEC9FG119962'), --Good value
('- ...
January 4, 2017 at 8:09 am
drew.allen (1/3/2017)
Luis Cazares (1/3/2017)
SELECT name = concat(First_Name, ' ', Last_Name),
Sports = STUFF(iif(Football = 'Y', '; Football','') + iif(Soccer = 'Y', '; Soccer','') + etc, 1, 2, '')...
January 3, 2017 at 2:37 pm
Stay away of multi-statement table-valued functions. They're great performance killers.
January 3, 2017 at 2:19 pm
Viewing 15 posts - 1,681 through 1,695 (of 8,731 total)