Viewing 15 posts - 1 through 15 (of 192 total)
Rob Fisk (1/30/2011)
So for an update statement I may write this initially
SELECT m.*
--UPDATE m SET monkey = 'marmosette'
FROM monkeys m
WHERE MonkyID=2
Just make sure you write it like that. I have...
February 7, 2011 at 12:36 am
Slawek Guzek (1/29/2011)
Dear Jinlye, you are wrong, I'm afraid...That's my humble opinion.
There is nothing humble about your opinion.
If you read his post, you will see he is correct and...
January 29, 2011 at 1:31 pm
Gene Porter (1/25/2011)
If there's no start transaction specified won't the code fail on the rollback?
Every INSERT/UPDATE/DELETE statement is it's own implicit transaction. If, for example, that transaction fails 90% through,...
January 25, 2011 at 12:45 pm
I'm not in front of a server to test thins, but I wonder how this would perform an a large table. It seems to me the delete or update will...
January 25, 2011 at 9:01 am
doobya (7/17/2010)
I never yet saw an automatic failover solution that made a good determination when to failover
I prefer for a fast manual failover
All servers are configured to perform...
July 20, 2010 at 12:47 pm
If the Access front end is an ADP, then you're probably using the native SQL and could expand on the connection string.
If you're using an MDB and are thinking...
July 16, 2010 at 12:29 pm
Your connection string would look something like this:
Data Source=myServerAddress;Failover Partner=myMirrorServerAddress;Initial Catalog=myDataBase;Integrated Security=True;
The application will connect to whichever one is available, if the primary fails, the application connections will automatically switch...
July 15, 2010 at 11:27 am
Rudy Panigas (7/15/2010)
Here is what I found:
1) With mirroring, failing over (either way) requires work to be done at the application/workstation to point application to...
July 15, 2010 at 8:46 am
Two options come to mind:
1. Use the UNPIVOT command (http://msdn.microsoft.com/en-us/library/ms177410.aspx)
2. Assuming four columns:
SELECT CASE NUM
WHEN 1 THEN Col1
WHEN 2 THEN Col2
WHEN 3 THEN Col3
WHEN 4...
July 9, 2010 at 4:48 pm
I would add that mirroring is pretty good (and fairly easy to set up) with automatic failover.
July 2, 2010 at 3:23 pm
calvo (7/2/2010)
If you're worried about OS failure, either will work.
If you're concerned with disk...
July 2, 2010 at 3:20 pm
I thought that might be where you were going with this. You may find this a more straightforward technique
DECLARE @Users VARCHAR(MAX)
select @Users = COALESCE(@Users + ', ') + fullname
FROM (
SELECT...
June 23, 2010 at 8:42 am
You will need to union your two sets inside of a subquery and apply the FOR XML outside the subquery. That will get you your desired result, but what exactly...
June 22, 2010 at 6:58 pm
Keep in mind that most email clients do not automatically load images in emails for privacy reasons. I expect that isn't the issue, but I wanted to mention it.
The problem...
June 22, 2010 at 6:47 pm
I'm not sure what an error 156 is, but you've got at least three syntax errors:
In TSQL, the syntax for IF...ELSE is:
IF expression
BEGIN
...
END
ELSE
BEGIN
...
END
There is no then (also...
June 11, 2010 at 4:09 pm
Viewing 15 posts - 1 through 15 (of 192 total)