Viewing 15 posts - 19,261 through 19,275 (of 22,214 total)
Take a look at the Books Online for the topic OUTPUT clause. That's exactly what you need. It can work with a single row insert, or with batches, and captures...
November 25, 2008 at 5:33 am
A "self Join" is when a single table is joined back to itself. You have two tables.
Can you better define what it is you're trying to do?
November 25, 2008 at 5:31 am
You can only run it once for a particular set of values, yeah.
Here, an example:
CREATE TABLE dbo.x
(ColNo1 INT NOT NULL,
ColNo2 INT NOT NULL,
Val VARCHAR(50) NULL)
ALTER TABLE dbo.x ADD CONSTRAINT...
November 24, 2008 at 1:23 pm
It's not the each one is a primary key. You're looking at the GUI and seeing a key next to each column. That means they're part of a compound primary...
November 24, 2008 at 12:55 pm
Lynn Pettis (11/24/2008)
November 24, 2008 at 11:30 am
Absolutely not a cursor.
If you're getting the error that you're violating the primary key, it's simply because you are, in fact, violating the primary key.
The purpose of the primary key...
November 24, 2008 at 11:25 am
Another vote for the Inside series of books. Fantastic stuff in there. Other than that, no other books come to mind as absolute must reads. You start to get into,...
November 24, 2008 at 11:17 am
Sure sounds like a possible case for transactional replication.
November 24, 2008 at 7:25 am
Yes.
If you want records that only meet the criteria defined AND records that don't, it seems a bit odd. What you're saying then is return everything.
The two limiting factors, the...
November 24, 2008 at 7:02 am
Actually, it looks like you've changed the structure of the query unnecessarily.
...from (Premium_Access
inner join Premium
on Premium_Access.rollup =...
November 24, 2008 at 6:30 am
Please don't cross-post. There are now two different discussions going on about the same topic. Please continue discussion at the other location:
http://www.sqlservercentral.com/Forums/Topic607252-1291-1.aspx?Update=1
November 24, 2008 at 6:05 am
This is a cross-post with this http://www.sqlservercentral.com/Forums/Topic607251-149-1.aspx
I'd suggest keeping discussion here.
November 24, 2008 at 6:04 am
Yeah, I was going to recommend SQL Compare from Red Gate too. There's also Apex SQL, they have a nice compare utility. Visual Studio Team System Database Edition comes with...
November 24, 2008 at 6:01 am
Nice article over here:
http://jmkehayias.blogspot.com/2008/09/monitoring-for-blocked-processes-on-sql.html
Interesting, but I'd need to read this on in more detail to see if it's really good:
http://searchsqlserver.techtarget.com/tip/0,289483,sid87_gci1162653,00.html
Nice one from MS on technet
November 24, 2008 at 5:58 am
Your options are severely limited.
First, check the execution plan. Identify where the scans are occurring, if any, and see if you can affect them with an index or three. Think...
November 23, 2008 at 10:28 am
Viewing 15 posts - 19,261 through 19,275 (of 22,214 total)