Viewing 15 posts - 6,766 through 6,780 (of 26,490 total)
Sean Lange (4/9/2014)
Lynn Pettis (4/9/2014)
Well, looks like Sean and I have similar but different solutions.
Yes indeed. One suggestion I would offer is to include an order by for your subquery...
April 9, 2014 at 3:02 pm
GilaMonster (4/9/2014)
allaspects (4/9/2014)
Lynn is obviously trolling. Sad that on a resource such as this website, someone is out to troll and not help.
You might want to google Lynn's contributions here...
April 9, 2014 at 3:00 pm
Well, looks like Sean and I have similar but different solutions.
April 9, 2014 at 2:05 pm
Try this. Please note that the script also drops the table when completed to keep my sand box database clean.
CREATE TABLE [dbo].[Luke_PS2](
[Ward or Team Name] [nvarchar](255) NULL,
[Date] [datetime] NULL,
[Setting]...
April 9, 2014 at 2:00 pm
Satheesh E.P. (4/9/2014)
Create Table Test01(
business_date date)
1. Insert into test01 (business_date) values ('2013may6')
2. Insert into test01 (business_date) values ('20140409')
In the above example both the statement will succeed. But as per our requirement, the first statement should fail on inserting (i.e)...
April 9, 2014 at 11:11 am
GilaMonster (4/9/2014)
sql-lover (4/9/2014)
GilaMonster (4/9/2014)
sql-lover (4/9/2014)
I need to know how to update sys.indexes view or system catalog directly on SQL2012.
You can't. sys.indexes is not a table, it's a view.
Please, don't try...
April 9, 2014 at 11:03 am
sql-lover (4/9/2014)
GilaMonster (4/9/2014)
sql-lover (4/9/2014)
I need to know how to update sys.indexes view or system catalog directly on SQL2012.
You can't. sys.indexes is not a table, it's a view.
Please, don't try the...
April 9, 2014 at 10:57 am
Steve Jones - SSC Editor (4/9/2014)
A short piece on what the BPE is in SQL Server 2014 and how to implement it.
Haven't started looking at SQL Server 2014 so I...
April 9, 2014 at 10:40 am
First, sys.indexes is not a table but a system view. As the error message indicates it is made up of multiple tables and you can't update multiple tables at...
April 9, 2014 at 9:56 am
OMG!
yuvipoy (4/9/2014)
all of the sudden it happened today and i am...
April 9, 2014 at 8:28 am
Simple, don't use NOLOCK.
April 9, 2014 at 8:15 am
Jeff Moden (4/9/2014)
born2achieve (4/9/2014)
Hi Jeff,I totally agree your logic and will follow that. yes of course, knowledge can only be developed when we try.
you are great mentor. thank you.
Thank...
April 9, 2014 at 8:10 am
kish1234 (4/8/2014)
I have started putting together the logic for the above requriement..
CASE
WHEN RecurrenceType =1 and Recurrenceinterval =2 and datediff(day,'07/01/2013', RecurrenceStart)/ 14 < 7 then 'Week1'
When RecurrenceType =1 and...
April 8, 2014 at 5:53 pm
awcrestview (4/8/2014)
Thanks for you help Lynn, you're awesome. Below is from your recommendation with minor change to get what I needed.
WHERE start_datetime >= dateadd(hour, -1, dateadd(day, datediff(day, 0, (getdate)),...
April 8, 2014 at 1:09 pm
Viewing 15 posts - 6,766 through 6,780 (of 26,490 total)