Viewing 15 posts - 346 through 360 (of 683 total)
This information is not recorded by default. The only way would be if you have backups, and you can work it out by trawling through them.
July 12, 2006 at 5:18 am
Hey, no worries Ken...
July 11, 2006 at 7:53 am
Is this a joke?
An alternative definition for the 'SillyDate2SQLDate' function is:
create function dbo.SillyDate2SQLDate(@SillyDate varchar(15)) returns datetime
as begin return '1 '...
July 11, 2006 at 6:31 am
Yes, I believe De Morgan felt the same.
July 11, 2006 at 6:13 am
Well, if we're simplifying...
ALTER TABLE Claims
ADD CONSTRAINT CKTbl_Claims_DateClosed
CHECK (NOT (ClaimStatusID = 2 AND DateClosed IS NULL))
(okay, it's probably not much simpler - if at...
July 11, 2006 at 2:49 am
That was just an example. Use your imagination!
ALTER TABLE Claims
ADD CONSTRAINT CKTbl_Claims_DateClosed
CHECK (ClaimStatusID <> 2 OR (ClaimStatusID = 2 AND DateClosed IS NOT NULL))
July 10, 2006 at 11:59 am
It's not clear to me, but maybe you want to create a dynamic order by?...
http://www.sqlteam.com/item.asp?ItemID=2209
If not, post some sample data and the result(s) you would like for it.
July 10, 2006 at 11:40 am
Just use the COLLATE keyword. Here's a simulated example...
--data
declare @t table (v varchar(10) collate Latin1_General_BIN)
insert @t
select 'ABC'
--calculation
select * from @t where...
July 10, 2006 at 11:34 am
Clearly you need to sort out your underlying data, but something like this should do in the meantime...
declare @t table (id int identity(1, 1), v varchar(20))
insert @t
...
July 10, 2006 at 11:24 am
You can just use some ANDs and ORs. E.g.
ALTER TABLE Claims
ADD CONSTRAINT CKTbl_Claims_DateClosed
CHECK (ClaimStatusID IN (0, 1) OR (ClaimStatusID = 2 AND DateClosed IS NOT NULL))
July 10, 2006 at 11:18 am
The only guarantee you have with these functions is that BINARY_CHECKSUM will always return the same value for 2 identical values, and CHECKSUM will always return the same value for...
July 10, 2006 at 8:08 am
Mirza - This looks like a dynamic pivot table requirement to me. The links and the code below should get you going in the right direction...
July 10, 2006 at 7:54 am
> and oddly enough are classified numeric
This issue looks like it was a consequence of the 'dodgy' isnumeric function. This article provides an 'isReallyNumeric' function, which can sometimes come in...
July 10, 2006 at 5:57 am
Here's a 'not recommended' way:
--data
create table #tableA (a int, b VARCHAR(3), c VARCHAR(4))
insert #tableA
select 1, 1, 1 union all
select 1, 1, 1 union all
select 1, 1,...
July 10, 2006 at 5:41 am
Viewing 15 posts - 346 through 360 (of 683 total)