Viewing 15 posts - 1,846 through 1,860 (of 8,731 total)
Eric M Russell (11/18/2016)
Budd (11/18/2016)
DECLARE @PARAM1 VARCHAR(2000) = 'Tom','JOE','BUDD','TIM' --< Obviously this wont work
Select...
November 18, 2016 at 1:17 pm
Dear Santa,
I know you won't be able to bring me a new laptop this year, but could you just bring more RAM (and a new HDD) for my current one...
November 18, 2016 at 10:52 am
andrew gothard (11/18/2016)
Brandie Tarvin (11/17/2016)
Grant Fritchey (11/16/2016)
SP1 for 2016 (which also has CREATE OR ALTER).
A single development surface. This means all functionality in Enterprise is also in Standard and...
November 18, 2016 at 7:48 am
You need to split the string to be able to use the individual values.
DECLARE @PARAM1 VARCHAR(2000) = 'Tom,JOE,BUDD,TIM'
SELECT firstname
FROM Employees
WHERE firstname in (SELECT Item FROM dbo.DelimitedSplit8K( @PARAM1, ',')s);
The...
November 18, 2016 at 7:17 am
The code is full of errors. Also, it won't count DDL operations, just rows with an operation_date greater than now.
November 17, 2016 at 12:31 pm
MMartin1 (11/17/2016)
Jeff Moden (11/16/2016)
IMHO, cleaner code if you take the shortcut.
SELECT mychar FROM mydata WHERE mychar LIKE '[[]%'
That's how I went about doing it and then had to take a...
November 17, 2016 at 12:06 pm
Ed Wagner (11/17/2016)
whereisSQL? (11/17/2016)
Hugo Kornelis (11/17/2016)
Luis Cazares (11/17/2016)
crookj (11/17/2016)
TomThomson (11/17/2016)
Brandie Tarvin (11/17/2016)
crookj (11/17/2016)
Grumpy DBA (11/17/2016)
Brandie Tarvin (11/17/2016)
Ed Wagner (11/17/2016)
AcronymSynonym
Cinnamon
Stick
Ball
bat
Batgirl
Robin
Round
Square
Deal
Breaker
November 17, 2016 at 11:15 am
GilaMonster (11/17/2016)
jasona.work (11/17/2016)
So really, if you could figure out a way to live without Agent, you could drop down to Express and *really* save some money...
And with only 4 cores,...
November 17, 2016 at 10:15 am
crookj (11/17/2016)
TomThomson (11/17/2016)
Brandie Tarvin (11/17/2016)
crookj (11/17/2016)
Grumpy DBA (11/17/2016)
Brandie Tarvin (11/17/2016)
Ed Wagner (11/17/2016)
AcronymSynonym
Cinnamon
Stick
Ball
bat
Batgirl
Robin
November 17, 2016 at 9:38 am
Have you tried with HAVING? https://msdn.microsoft.com/en-us/library/ms180199.aspx
What are you trying to do? Shouldn't the subqueries be correlated somehow?
November 17, 2016 at 9:28 am
The sample data is no help. We don't have expected results and I'm not sure you know what to expect from that data.
November 17, 2016 at 9:02 am
Hugo Kornelis (11/17/2016)
Eirikur Eiriksson (11/17/2016)
Brandie Tarvin (11/17/2016)
Beatrix Kiddo (11/17/2016)
CREATE OR ALTER (Yes, we heard you !!!) – New CREATE OR ALTER support makes it easier to...
November 17, 2016 at 7:51 am
funbi (11/17/2016)
Luis Cazares (11/17/2016)
funbi (11/17/2016)
Laurie Dunn (11/17/2016)
This would also work and keep the code simple...SELECT *
FROM dbo.MyData
WHERE Left(mychar,1)='[';
Yeah I got
select * from MyData where CHARINDEX('[',mychar,0) = 1
which works fine,...
November 17, 2016 at 7:46 am
You're missing WHERE clauses. You might also be taking a bad approach. You need to create a cross tabs query which would be more effective.
Here's an article that describe them
http://www.sqlservercentral.com/articles/T-SQL/63681/
And...
November 17, 2016 at 7:40 am
funbi (11/17/2016)
Laurie Dunn (11/17/2016)
This would also work and keep the code simple...SELECT *
FROM dbo.MyData
WHERE Left(mychar,1)='[';
Yeah I got
select * from MyData where CHARINDEX('[',mychar,0) = 1
which works fine, then looked at...
November 17, 2016 at 7:03 am
Viewing 15 posts - 1,846 through 1,860 (of 8,731 total)