Viewing 15 posts - 1,141 through 1,155 (of 3,008 total)
In SQL Server integer math 22801/12 = 1900 = 22800/12 😀
October 28, 2010 at 2:09 pm
Something like this should do what you want:
select
a.*
from
OPENQUERY ( RHSQL ,
'
Select
Brook2.dbo.GetCurrentAdmissionDate(1) as AdminDate,
Brook2.dbo.GetDOTFromDOA(1),
Brook2.dbo.GetCurrentAdmissionDate(1) as DischargeDate
from
Brook2.dbo.Admission
' ) a
Note that you will have to build the whole query dynamically to pass the...
October 28, 2010 at 1:21 pm
If anyone is wondering where 22801 came from:
Make Date function (like in VB)
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=22339
Although I would have assumed that anyone would realize without explanation that 22801/12 = 1900 😉
October 28, 2010 at 1:07 pm
Dan Guzman - Not the MVP (10/28/2010)
Michael Valentine Jones (10/27/2010)
Dan Guzman - Not the MVP (10/27/2010)
October 28, 2010 at 12:37 pm
Ninja's_RGR'us (10/28/2010)
Michael Valentine Jones (10/28/2010)
Ninja's_RGR'us (10/28/2010)
Michael Valentine Jones (10/28/2010)
Ken McKelvey (10/28/2010)
October 28, 2010 at 10:42 am
Ninja's_RGR'us (10/28/2010)
Michael Valentine Jones (10/28/2010)
Ken McKelvey (10/28/2010)
While snapshot isolation can be very useful, you should google 'write skew anomolies', check your code and do a lot of testing.
SQL Server handles...
October 28, 2010 at 10:25 am
Ken McKelvey (10/28/2010)
While snapshot isolation can be very useful, you should google 'write skew anomolies', check your code and do a lot of testing.
SQL Server handles this the following way:
Understanding...
October 28, 2010 at 10:17 am
Ninja's_RGR'us (10/28/2010)
Michael Valentine Jones (10/28/2010)
Have you tried setting your database to use row-version isolation?
ALTER DATABASE MyDatabase...
October 28, 2010 at 9:56 am
You need to design the database to model the reality of the data as closely as possible. If there is a many to many relationship, even in a small...
October 28, 2010 at 9:32 am
Have you verified you are using the normal read committed isolation level for both transactions?
Have you tried setting your database to use row-version isolation?
ALTER DATABASE MyDatabase SET READ_COMMITTED_SNAPSHOT ON;
ALTER DATABASE...
October 28, 2010 at 8:11 am
The database design has to be able to handle all cases. Even if 99.99% of cars have only one owner, you need to allow for the 0.01% where there...
October 28, 2010 at 8:02 am
The script on the link below does a very good job of this without making any schema modifications, so it is a safer way to go.
Truncate All Tables
October 28, 2010 at 7:28 am
Dan Guzman - Not the MVP (10/27/2010)
DATEADD(MONTH,x,'2010-Jan-01')
Where x is the month you are looking...
October 27, 2010 at 9:59 pm
Toreador (10/27/2010)
Hugo Kornelis (10/27/2010)
* yyyymmdd - for dates without time portion. No dashes....
October 27, 2010 at 9:53 am
Ray K (10/26/2010)
Michael Valentine Jones (10/26/2010)
4. At halftime of the football game, we walked over and watched the soccer team's game on the next field.
Speaking as someone who has collegiate...
October 26, 2010 at 5:59 pm
Viewing 15 posts - 1,141 through 1,155 (of 3,008 total)