Viewing 15 posts - 6,811 through 6,825 (of 26,490 total)
You mean like this?
/*
Eventdate. Status
20-01-2014 18:00 0
20-01-2014 18:30 0
20-01-2014 19:00 1
20-01-2014 19:30 0
20-01-2014 20:00 1
20-01-2014 20:30 0
20-01-2014 21:00 0
20-01-2014 21:30 0
20-01-2014 22:00 0
20-01-2014 22:30 1
20-01-2014 23:00 0
*/
create table dbo.EventsStatus(
...
April 5, 2014 at 1:58 pm
rui_leote (4/5/2014)
He he.It works.
Thanks.:-D:-P;-)
Now...
If I want to reset the counter for all days?
When it change the day, reset the counter.
He he
Which works? There are a couple of answers here...
April 5, 2014 at 1:30 pm
The following works in SQL Server 2012 and should work as far back as SQL Server 2005. Is this what you are attempting to accomplish?
/*
Eventdate. Status
20-01-2014 18:00 0
20-01-2014 18:30...
April 5, 2014 at 12:24 pm
Something like this?
declare @TestTab table (
GHRMSContingentID nvarchar(500)
);
insert into @TestTab
values (N'01234567oewqronasdf'),(N'A1234567uhcvoibndaweo'),(N'oadooeoawe');
select * from @TestTab;
select * from @TestTab where GHRMSContingentID like N'[A-Za-z0-9][0-9][0-9][0-9][0-9][0-9][0-9]%';
April 5, 2014 at 11:48 am
mark 95074 (4/4/2014)
I've had a report of missing data (restore from full was done, diff wasn't applied) in a db that has the following backup schedule:
daily full @10pm
6 hourly...
April 4, 2014 at 7:42 pm
Sean Lange (4/4/2014)
Lynn Pettis (4/4/2014)
Sean Lange (4/4/2014)
April 4, 2014 at 4:53 pm
Sean Lange (4/4/2014)
April 4, 2014 at 2:27 pm
Sounds like an EAV design. Based on that you should search on EAV or Entity Attribute Value and see what else you and find. I haven't used EAV...
April 4, 2014 at 12:16 pm
ray santalis-466762 (4/4/2014)
April 4, 2014 at 11:33 am
Sean Lange (4/4/2014)
Greg Edwards-268690 (4/4/2014)
SQLRNNR (4/4/2014)
Sean Lange (4/4/2014)
TomThomson (4/3/2014)
Steve Jones - SSC Editor (4/3/2014)
Revenant (4/3/2014)
Sean Lange (4/3/2014)
Greg Edwards-268690 (4/3/2014)
But...
April 4, 2014 at 8:28 am
TomThomson (4/3/2014)
Sean Lange (4/3/2014)
Greg Edwards-268690 (4/3/2014)
it was clear they had no idea what they wanted or needed.But finish it by Friday.
This is an everyday occurrence at my job.
Not if you...
April 3, 2014 at 7:43 pm
rehman-615909 (4/3/2014)
Thanks Jeff.
Actually, that was Sean.
🙂
April 3, 2014 at 2:27 pm
First, glad to help. Second, since you don't need the DISTINCT, drop it from my code.
April 3, 2014 at 12:51 pm
First, do you really need the DISTINCT in the select statement?
Second, try this:
Select distinct
a.intPersId
,mn.strFullname Name
,a.strSignature
...
April 3, 2014 at 12:32 pm
I agree with Gail. Also, you really should use sys.users not sysusers as sysusers is for backward compatibility and may be removed from future versions of SQL Server.
April 3, 2014 at 12:26 pm
Viewing 15 posts - 6,811 through 6,825 (of 26,490 total)