Viewing 15 posts - 7,546 through 7,560 (of 26,490 total)
Amazing how some make comments when they take what others say out context. Sometimes you really do have to look at the entire quote, not just the part you...
May 22, 2013 at 12:42 pm
ScottPletcher (5/22/2013)
GilaMonster (5/21/2013)
Shrink alone can't speed up a query.
Isn't that an overly broad assertion? If, for the sake of argument, some/all of the disk extents added were scattered all...
May 22, 2013 at 12:40 pm
patrickmcginnis59 10839 (5/22/2013)
Lynn Pettis (5/22/2013)
dndaughtery (5/22/2013)
sqlcmd -Q "exec dbo.MySproc" -S "MyServer" -d "MyDatabase"
and Im getting the following error:
Named Pipes Provider: Could not open...
May 22, 2013 at 12:09 pm
Oh, wait:
from
((examination as b inner join examination as pre on b.related_exam_id = pre.id) left join preliminary_exam on pre.procedure_id = preliminary_exam.id)
-- shouldn't there be some kind of join between these?
((examination...
May 22, 2013 at 11:30 am
Can't really tell. Are you getting some kind of error?
May 22, 2013 at 11:28 am
dndaughtery (5/22/2013)
sqlcmd -Q "exec dbo.MySproc" -S "MyServer" -d "MyDatabase"
and Im getting the following error:
Named Pipes Provider: Could not open a connection to SQL...
May 22, 2013 at 8:21 am
patrickmcginnis59 10839 (5/22/2013)
Brandie Tarvin (5/22/2013)
patrickmcginnis59 10839 (5/21/2013)
L' Eomot Inversé (5/21/2013)
May 22, 2013 at 7:35 am
chris.rogers00 (5/21/2013)
It's all down to preference.
DECLARE @FictionalDate DATE = '1969-12-15'
DECLARE @bdays...
May 21, 2013 at 1:37 pm
Edit: Copied wrong data to this post.
May 21, 2013 at 1:28 pm
shrsan (5/21/2013)
Am adding Timestamp Column from derived column into the table.
Do u have an expression fro derived...
May 21, 2013 at 10:14 am
KoldCoffee (5/21/2013)
Would it be ok with you not to post to my topics for about 6 months? There are so many people on...
May 21, 2013 at 9:11 am
Then try this when all the dates are valid:
DECLARE @TABLE_NAME TABLE(
NAME VARCHAR(30),
BDAY CHAR(8))
INSERT INTO @TABLE_NAME(NAME,BDAY)
VALUES('A','19901022')
INSERT INTO @TABLE_NAME(NAME,BDAY)
VALUES('B','19940523')
INSERT INTO @TABLE_NAME(NAME,BDAY)
VALUES('C','19980602')
INSERT INTO @TABLE_NAME(NAME,BDAY)
VALUES('D','19590525')
INSERT INTO @TABLE_NAME(NAME,BDAY)
VALUES('E','20130521')
INSERT INTO @TABLE_NAME(NAME,BDAY)
VALUES('F','20130620');
select
*
from
...
May 21, 2013 at 8:41 am
First, run the following query against your data:
select * from dbo.yourTableNameHere where isdate(date_of_birth) = 0;
If this returns any records you have dates that aren't dates and those need to be...
May 21, 2013 at 8:31 am
mw112009 (5/20/2013)
Select date_of_birth from person
--This gives values in the YYYYMMDD format like 19700101
I want a list of people whose birthdays are within the...
May 20, 2013 at 2:44 pm
Have a look at this:
declare @ThisDate datetime = getdate();
select @ThisDate, dateadd(hour, 7, dateadd(week, datediff(week,0,@ThisDate), -1));
set @ThisDate = '20130519';
select @ThisDate, dateadd(hour, 7, dateadd(week, datediff(week,0,@ThisDate), -1));
set @ThisDate = '20130516';
select @ThisDate, dateadd(hour, 7,...
May 20, 2013 at 2:42 pm
Viewing 15 posts - 7,546 through 7,560 (of 26,490 total)