Viewing 15 posts - 121 through 135 (of 224 total)
I'm not entirely sure if the remote server is a named instance. There are three servers on one IP address. One of them is using the default port (1433) and...
February 8, 2012 at 10:47 am
Another option is to remove the TRY/CATCH and ROLLBACK statements. This depends on what your calling environment expects.
SET XACT_ABORT ON
BEGIN TRANSACTION
EXEC proc1
EXEC proc2
COMMIT
In this case, rollback will be automatic if...
February 3, 2012 at 3:34 pm
Lamprey13 (2/3/2012)
There is also the MERGE statement.
CREATE TABLE t1 (a INT)
INSERT t1 VALUES (1),(2),(3),(4),(5)
CREATE TABLE t2 (a INT)
INSERT t2 VALUES (1),(2)
MERGE t1
USING t2 ON t1.a = t2.a
WHEN MATCHED THEN DELETE;
SELECT...
February 3, 2012 at 3:20 pm
It's been years since I've had to deal with ODBC, but I think I can point you in the right direction.
MS Access is holding an ODBC connection that it believes...
February 1, 2012 at 12:06 pm
Daylight savings exists so that I can double the number of mornings that I drive east staring at the rising sun and the evenings that I drive west into the...
January 20, 2012 at 10:40 am
Yep, compatibility level was the problem. All the databases in SS 2008 had been originally restored from SS 2005. My local sandbox was created new in SS 2008 R2.
Thanks!
January 9, 2012 at 12:57 pm
I've discovered that the composable DML approach only works on SQL Server 2008 R2, not SQL Server 2008. My production target is 2008, but I have R2 available on my...
January 9, 2012 at 11:38 am
This is an object-oriented concept. The concept isn't a bad idea in itself, it just doesn't apply to a relational database.
If you're using an object-oriented framework such as .NET for...
January 6, 2012 at 8:34 am
SQL Kiwi (1/3/2012)
The MERGE statement can OUTPUT directly to an INSERT statement (this is sometimes referred to as 'composable DML').
Thanks! I thought it should be possible in one...
January 5, 2012 at 1:45 pm
I decided to use a table variable. I sent the output into a table variable, then inserted into the history table where the key is not null. I could have...
January 3, 2012 at 1:11 pm
I have used serializable isolation level. I think of it as locking a key range.
There is no MERGE in SS 2005, which I was constrained to until recently, so...
December 29, 2011 at 11:56 am
I've used Service Broker in a single server setup in conjuntion with a .NET service application in two different scenarios.
In a manufacturing scenario, a machine-to-SQL interface ran a stored proc...
December 15, 2011 at 12:17 pm
I haven't been able to find the slow parts of the procedure becuase it's never slow in SSMS, nor in any database except production. We can only reproduce the issue...
January 28, 2011 at 1:00 pm
Viewing 15 posts - 121 through 135 (of 224 total)