Viewing 15 posts - 19,666 through 19,680 (of 26,490 total)
johan.brohn (7/22/2009)
Doesnt work when date1 is not null and date2 is nullKen McKelvey (7/22/2009)
CASE
WHEN COALESCE(date2, 0) < COALESCE(date1, 0)
THEN date2
ELSE COALESCE(date1, date2)
END
CASE
WHEN @d1 < COALESCE(@d2,'20991231') THEN @d1
ELSE @d2
END
Actually...
July 22, 2009 at 6:04 am
You can not restore a SQL Server 2008 backup to a SQL Server 2005 system regardless of the compatibility mode of the database.
If you need to move a database from...
July 22, 2009 at 5:55 am
sarvesh singh (7/22/2009)
When i run a query :
select * from shifthistory where vfrom='2009-07-23 00:00:00'. i get an error.
...
July 22, 2009 at 5:52 am
Not sure what you mean by an external device, but one possible cause could be permissions. A second could be a network error or problem with the network configuration.
July 21, 2009 at 9:30 pm
Just a guess based on my knowledge of backups and restores only, haven't worked in a logshipping environment yet, but no I don't think you can do that.
July 21, 2009 at 9:14 pm
Can you provide us with the DDL for the table(s), some sample data (as insert statements), and expected results based on the sample data. From looking at your picture,...
July 21, 2009 at 4:50 pm
GilaMonster (7/21/2009)
Lowell (7/21/2009)
July 21, 2009 at 4:19 pm
Backups are not logged in the transaction log.
July 21, 2009 at 4:08 pm
JohnSQLServerCentral (7/21/2009)
July 21, 2009 at 4:03 pm
The problem with @sql's version is that the AND in the WHERE clause should be an OR. Change it and check out the results.
July 21, 2009 at 3:54 pm
I think its fun. Something different to make one think.
July 21, 2009 at 2:56 pm
Looking closer at your code, this is in a trigger isn't it.
July 21, 2009 at 2:55 pm
Why would you want to change from a set-based solution to a cursor-based (row by row) solution?
Your current method is more efficient.
July 21, 2009 at 2:53 pm
Yes. and you are probably running on a X86 version of the OS as well.
July 21, 2009 at 2:51 pm
Viewing 15 posts - 19,666 through 19,680 (of 26,490 total)