Viewing 15 posts - 10,366 through 10,380 (of 14,953 total)
Those look basically okay. Looks like they should do what you need.
If you want more data on the subject of logging, take a look at these two articles:
March 20, 2009 at 9:27 am
E-mail, cell phone and VPN are the top ones I think of first.
E-mail alerts from servers are definitely part of what keeps me efficient.
March 20, 2009 at 9:22 am
Because that way each insert is at the end of the table, and the table doesn't have to be split in the middle repeatedly because of inserts. Table splits...
March 20, 2009 at 9:18 am
Nice enhancement there! Definitely going in my goodies library.
(Actually, before it came up in this thread, I hadn't ever seen this solution at all before. Had to figure...
March 20, 2009 at 8:43 am
It's running 87 times because it increases by 1 each time, and there are 87 characters in the string.
March 20, 2009 at 7:45 am
The batch solution is what I ended up doing with something like this several years ago. Worked quite well.
March 19, 2009 at 2:57 pm
Yeah, the XML stuff definitely works best for strings of numbers. Add in text, and you run the risk of having to clean it up.
March 19, 2009 at 2:55 pm
Can you add a Case statment to the Diff value? "When Diff <=2 and abs(len(Name1)-len(Name2)) <= 1 then 'Y'". Will that solve what you need?
March 19, 2009 at 2:29 pm
Luke L (3/19/2009)
'course it did take 3 movies to turn Vader from the Dark Side, so I suppose you can't expect it to happen overnight.-Luke.
It only took six to turn...
March 19, 2009 at 2:20 pm
Look up "Common Table Expressions" (also called CTEs) in Books Online. It has a good example of how to use one to resolve hierarchies like this.
March 19, 2009 at 1:37 pm
Try something like this:
declare @Bin varbinary(100);
select @Bin = 0x004E4E1B;
select cast(@Bin as int);
Does that help?
March 19, 2009 at 1:36 pm
RBarryYoung (3/19/2009)
Dang it! I hate how slow I am on posts... :angry:
Well, your post is better organized and more eloquent than mine, so that's helpful.
March 19, 2009 at 1:22 pm
Try this, see if it helps:
if object_id(N'tempdb..#T') is not null
drop table #T;
create table #T (
ID int identity primary key,
Col1 char(1) not null);
insert into #T (Col1)
select substring('abcdefghijklmnopqrstuvwxyz', number, 1)
from dbo.Numbers
where number...
March 19, 2009 at 12:39 pm
Viewing 15 posts - 10,366 through 10,380 (of 14,953 total)