Viewing 15 posts - 4,891 through 4,905 (of 5,394 total)
You cant use IF / ELSE in DML queries.
You can use CASE / THEN / ELSE instead:
update test set REC_HHMMSSHS
= CASE
WHEN exists(select cast(cast(abs(round(cast( left(cast(REC_HHMMSSHS as char(8)) , 2) as int)-1...
August 19, 2009 at 3:42 am
I vote for virtual machine!
Sun VirtualBox if possible.
Benefits:
1) No expense
2) You can take snapshots and revert to previous state when something wrong is done (and it will happen...)
3) You can...
August 18, 2009 at 8:05 am
If you have to rollback the transaction you will have to do it in the same job step.
Italy played really bad in the confederations cup, but I didn't find...
August 18, 2009 at 3:29 am
In fact this is one of the weaknesses of this strategy.
There's no technical solution to this issue: when a user wants to display a 1 mln rows report, we...
August 18, 2009 at 3:19 am
DBCC CHECKDB runs againt master and tempdb with no errors. I wouldn't say it fails, I would say it doesn't behave exactly as you expect.
August 17, 2009 at 6:30 am
It's hard to give an advice without having the whole picture.
I suggest you take a look at this article http://www.sqlservercentral.com/articles/SQLServerCentral/66909/ and provide as much information as you can.
Regards
Gianluca
August 17, 2009 at 6:04 am
It depends on what you have to do with errors. If you want to perform some particular action in case of error, you can hanlde it directly in the sql...
August 17, 2009 at 3:01 am
There's no asynchronous transaction feature. You can process commands asynchronously with a queue table and return controlo to the application as soon as you have populated the queue table.
August 17, 2009 at 1:55 am
Varchar(max) is a replacement for old-style LOB type text.
If you set 'large value types out of row' to OFF with sp_tableoption you will end up having 8000 bytes stored...
August 16, 2009 at 10:59 am
You can return an integer value from a stored procedure:
CREATE PROCEDURE usp_doSomeStuff(@param1 as int)
AS
BEGIN
SELECT SomeColumns FROM SomeTable
RETURN @@ROWCOUNT
END
EXEC @totalRows = usp_doSomeStuff
Don't...
August 15, 2009 at 1:51 pm
Crystal Reports is a pain.
That said, I have struggled a lot in the past to find myself the best way to feed it the data to display.
If you use stored...
August 15, 2009 at 11:32 am
Thanks Barry,
I sent you a PM with the article attached.
Gianluca
August 15, 2009 at 8:15 am
Matt Miller (8/14/2009)
August 15, 2009 at 6:50 am
I can't believe it! I'm almost finished with my article!
It took me three months. I could have written the "Divina Commedia" in this time...
Is anybody interested in reviewing my...
August 14, 2009 at 5:46 pm
Viewing 15 posts - 4,891 through 4,905 (of 5,394 total)