Viewing 15 posts - 13,141 through 13,155 (of 14,953 total)
You can always build a set of left outer joins between the two tables. That'll give you which exact column was modified.
Something like:
select t1.Col1
from dbo.Table1 t1
left outer join dbo.Table2...
June 26, 2008 at 12:24 pm
If you don't need the data to actually mean anything, you can generate unlimited random data by doing something like:
;with Numbers (Number) as
(select row_number() over (order by t1.name)
...
June 26, 2008 at 12:21 pm
In 2005, take a look at Row_Number in Books Online. It's very simple and easy to use.
For 2000, take a look at Jeff Moden's Running Totals article on this...
June 26, 2008 at 12:17 pm
I know how to do it from within installation wizard, but haven't looked into a command line for it. But since it can be done from the installation wizard,...
June 26, 2008 at 12:14 pm
If the database is in Simple Recovery, no, you don't have anything of any interest in the transaction log. It only holds onto transactions till they commit, then junks...
June 26, 2008 at 11:58 am
I don't see any aggregate functions in this query. If I'm missing one, I'd try removing each piece of the Group By till you find the one that's the...
June 26, 2008 at 11:56 am
I also would try switching to the built-in notifications function and see if that handles it better.
As far as a job going on to a step that doesn't apply, I...
June 26, 2008 at 11:52 am
The first thing to do is define what you want it to do.
June 26, 2008 at 11:50 am
If the hierarchy is relatively static (doesn't change often), you might want to look up "nested sets" online. It does hierarchies MUCH faster than CTEs or other methods. ...
June 26, 2008 at 11:49 am
Am I mistaken, or did you answer your own question?
June 26, 2008 at 11:46 am
You can use a Numbers table for this. Or a recursive CTE. I use a calendar table for it. It's generally faster, and it gives me more...
June 26, 2008 at 11:44 am
There can be differences in performance and results between the two ways of writing the query. In a more complex query, having the join data in the From clause...
June 26, 2008 at 11:43 am
Mahesh Bote (6/26/2008)
[font="Verdana"]Try this...
declare @i varchar(100)
set @i = '''as400'',''cps'''
select * from t_system where systemcode in (@i)
Mahesh
[/font]
That won't work. "In" doesn't work that way with variables.
There are a couple...
June 26, 2008 at 11:39 am
Is it possible that the send-credentials are being messed up by the whole From part? I've used sp_send_dbmail for tons of things, including pretty high traffic stuff, and never...
June 26, 2008 at 11:35 am
David O (6/26/2008)
JeffHave you consider decaf?:w00t:
David
Nah. It's just that time of the hour for him. 🙂
He does have a good point. I've worked with people who could build...
June 26, 2008 at 8:26 am
Viewing 15 posts - 13,141 through 13,155 (of 14,953 total)