Viewing 15 posts - 76 through 90 (of 95 total)
select convert(bigint,HashBytes('SHA1', convert(varchar, getdate(),121)+convert(varchar,rand())))
this should be a bit unique:cool:
May 29, 2008 at 10:17 am
He said that all columns are varchar, so "coloumn * 1" would just convert the varchar to an int/float then multiply by 1, giving the int value. Better off just...
May 29, 2008 at 9:47 am
SSIS can preview the file just fine and I opened it up in notepad++ and didn't see any issues with visible and special chars
May 29, 2008 at 9:28 am
...(i.e. 8.00 instead of 8.009) but also where I get 8.00 instead of 8.01....
you want 8.00 instead of 8.009. So you go from 3 spaces after to 2 spaces and...
May 29, 2008 at 9:17 am
if that did it, then hopeflly those Seq's keep incrementing. Also, those are 3 distinct selection statements going on, not the best.
May 16, 2008 at 9:26 am
I may have misunderstood something, but what about this?
create table #T (
Seq int primary key,
Account int,
Disp char)
--drop table #t
insert into #T (Seq, Account, Disp)
select 10,12345,'+' union all
select 20,23451,'' union all
select...
May 16, 2008 at 9:09 am
I haven't had to work with dynamic SQL yet, but I've heard some people mention that the execution plan can get messed up some times. You may want to see...
May 16, 2008 at 8:51 am
I don't work with multiple servers, but I heard of having different DB servers incrementing on different values.
eg..
db1 goes: 1,4,7.....
db2 goes: 2,5,8.....
db3 goes 3,6,9.....
Then you never have duplicate keys. But...
May 15, 2008 at 3:02 pm
...Non Clustered Index on BillingType and CobrandCode columns...
Sounds like MOST rows are being returned. An Index usually only helps if rows are ~95+% unique.
Anytime you're returning a ton of rows...
May 15, 2008 at 10:55 am
rbarryyoung (5/7/2008)
Unless the strings are huge, the difference is usually minuscule. The presence or absence of appropiate indexes and their selectivity makes a much bigger difference.
It's nice to know...
May 8, 2008 at 7:16 am
Here's a question. Would overall performance be better when joining on a dept id vs name because of the comparing of int vs string? I would assuming other tables store...
May 7, 2008 at 3:28 pm
I did a Goggle Search...Some say one thing, some say another...
If Google can't find it, it isn't real... 😛
on a side note, if everything you're comparing/returning is 'covered' by the...
May 7, 2008 at 3:17 pm
I've seen many times where MS said they plan on post Windows Server 2008 and SQL 2008 to be 64bit only. If you don't have a 64bit server by 2011,...
May 5, 2008 at 1:14 pm
I found "UPDATE STATISTICS ". Is there any way to script the command run on my raw tables parallel to the live table import or would I have to...
April 30, 2008 at 10:40 am
You can pretty much guaranteed your statistics are garbage when truncating and reloading.
Is your source data sorted according to the clustered index? If not you may be better off...
April 30, 2008 at 9:05 am
Viewing 15 posts - 76 through 90 (of 95 total)