Viewing 15 posts - 106 through 120 (of 291 total)
You had it about right. Use a "not exists" clause. Here is an example presupossing two databases (db1 and db2) both with a tabled named t1 which have two columns...
June 22, 2007 at 12:25 pm
There are a lot of variables that you didn't touch on in making a decision of this nature, but based on what was provided I recommend a single database. My...
June 22, 2007 at 11:18 am
Ryan: I don't have a better solution of the top of my head. However you would be better off posting this as a new question. Most people won't read this...
June 22, 2007 at 11:07 am
I don't have any problems with tools, but what I don't need when I have a question is someone telling me to buy a tool. As I said before, help...
June 22, 2007 at 6:30 am
My last post had one method of doing it:
--this insert will create 5 rows for each sn (2345 and 4567)
insert into new_tb
select 5,getdate(),user, *
from tb_parts
where sn = '2345' or sn...
June 22, 2007 at 6:19 am
Jeff: No problem, it actually applied to me too, when I saw your post it was a "Duh! why didn't I think of that" moment
June 21, 2007 at 8:39 am
You could turn your Stored Procedure into a Function and then let the calling routine sort anyway it wants, for example:
if object_id('ufnEmployees') is not null drop function ufnEmployees
go
create function ufnEmployees...
June 21, 2007 at 8:20 am
Jeff: I checked out his login and he seems to only be able to promote one single product. It doesn't matter what the problem/question is the solution is always his...
June 21, 2007 at 7:45 am
declare
@msg varchar(100)
set
@msg = LTRIM(STR(
June 21, 2007 at 7:34 am
SQL 2000:
select ci, business, source, (case analyst when 'Chayan' then times else 'Nil' end) as Chyan,
(case analyst when 'Remya' then times else 'Nil' end) as Remya
from your table
--James
June 21, 2007 at 7:13 am
Well I don't suppose it matters at this point. Please try the last code batch I posted. It does not rely on the advanced features of 2005 and should run...
June 20, 2007 at 12:12 pm
Thanks Jeff, this is getting old. And thanks for the code that generates the 100 sequential numbers. I got that off a post of yours a few weeks back where...
June 20, 2007 at 7:09 am
The trigger is for the "TB_New" table. It will fire when ever an insert occurs to your "new table". By doing it this way you don't have to worry about...
June 20, 2007 at 7:01 am
David: that procedure would break and exit the routine prior to the error trap, however if you do the following:
begin
declare @sql_ nvarchar(100)
declare @error_ int
set @sql_ = N'Exec TestProcedure 10'
exec sp_executesql...
June 20, 2007 at 6:27 am
Viewing 15 posts - 106 through 120 (of 291 total)