Viewing 15 posts - 871 through 885 (of 1,048 total)
Yes, PL.ChartNo is numeric...
LocationId+'-'+Chart_no will comes as 1-1 not ASD-12
Also,
how can I update as a Select and dropping the where clause adding in (L.locationID+'-'+P.Faccount+'-'+P.Fpatient) and (PL.LocationID+'-'+PL.Chart_No) as...
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
November 2, 2012 at 4:38 am
Jason,
I replace line with your lines as :
inner join PatientLocDtl PL ON PL.PatientID = PP.PatientID
AND L.LocationId=PL.LocationId
Where
(P.Faccount+'-'+P.Fpatient)=PL.Chart_No
But I am getting error as I was getting before-
Msg 245, Level 16, State 1,...
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
November 2, 2012 at 4:02 am
Arthur,
where(L.locationID+'-'+P.Faccount+'-'+P.Fpatient)=(PL.LocationID+'-'+PL.Chart_No)
is not working.
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
November 2, 2012 at 3:59 am
ohhhh I am clear with that now... 😛
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
November 1, 2012 at 5:41 am
Thanks Bri,
can u plz explain why you put -1 in query?
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
November 1, 2012 at 5:38 am
nice discussion 🙂
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
November 1, 2012 at 5:13 am
I think main conceron of slyvain was about to tell about the error :
"The maximum limit for index or statistics key column list is 16"
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
November 1, 2012 at 12:51 am
Nice Question in the start of the week 🙂
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
October 28, 2012 at 11:21 pm
Thanks Koen and Lokesh 🙂
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
October 25, 2012 at 11:41 pm
One question, I am confused on this...
select ID, name name from person
select ID ID, name name from person
Both these statements dont give any error message and run successfully...
wht is it...
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
October 25, 2012 at 11:14 pm
god start with a coffee +2 🙂
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
October 23, 2012 at 10:58 pm
how can we restricted a view to a particular user only?
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
October 22, 2012 at 9:14 am
thanks Lowell...
intresting thing to know
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
October 22, 2012 at 9:04 am
Execute this code and you will get duplicate values in Identity values--
CREATE TABLE IdentTest
( Ident INT NOT NULL IDENTITY (1,1)
, varfield varchar(100)
)
INSERT INTO IdentTest VALUES ('xyz') -- <==...
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
October 22, 2012 at 12:42 am
Hi lokesh,
as you TRUNCATE the table then identity will be reset to 1 and now the ident value after a insert statement will be 1..
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
October 22, 2012 at 12:02 am
Viewing 15 posts - 871 through 885 (of 1,048 total)