Viewing 15 posts - 14,806 through 14,820 (of 26,486 total)
Wayne, it really depends. There seems to be a tipping point where a dynamic tally table beats a physical tally table.
Don't have specifics, and it could just be my...
January 25, 2011 at 12:01 pm
Brian, would you please post your final solution? I would like to see what you tweaked.
I usually make things more complicated than they need to be to start, so...
January 25, 2011 at 8:52 am
Grant Fritchey (1/25/2011)
Thanks everybody.And remember, buy Red Gate... kidding, just kidding. Put that rock down.
Stock or Products? 😉
January 25, 2011 at 6:48 am
Unless you are having disk space issues requiring you to make your database(s) small, don't shrink them. They will only have to grow later as additional data is added...
January 24, 2011 at 10:33 pm
Jeff Moden (1/24/2011)
Agh! Sorry, Lynn, I missed where you said...!!!! Nevermind, doesn't work !!!!
... at the bottom of your post.
That's okay, I think I fixed it!
Here is the...
January 24, 2011 at 8:37 pm
How about this as a solution?
SET NOCOUNT ON
CREATE TABLE #Sample
...
January 24, 2011 at 7:09 pm
Grant Fritchey (1/24/2011)
Jeff Moden (1/24/2011)
Grant Fritchey (1/24/2011)
Threadizens not on Twitter might not have heard the word. I just took a job with Red Gate. It's up on the blog.
Absolutely awesome....
January 24, 2011 at 5:03 pm
Does the table have a clustered index on it when you build the NC index?
January 24, 2011 at 5:01 pm
Sorry, lost. You tests show that if you don't specify the size, it won't go below the default size. If you indicate a size that is smaller that...
January 24, 2011 at 4:43 pm
Something like this:
CREATE TABLE [dbo].[tblCost](
[Unit] [varchar](6) NOT NULL,
[ApproverID] [char](6) NULL,
) ON [PRIMARY]
delete from [tblCost];
CREATE TABLE [dbo].[tblApprover](
[Unit] [varchar](6) NOT NULL,
[ApproverID] [char](6) NULL,
) ON [PRIMARY];
INSERT INTO dbo.[tblCost](Unit, ApproverID)
VALUES ('12345', 'Pa0004'),
('23456', 'Pa0002');
INSERT INTO...
January 24, 2011 at 4:38 pm
I have to ask the same question, why the dynamic sql. From what I can see it isn't needed.
January 24, 2011 at 3:45 pm
Haven't tested it, but shouldn't the code look like this?
SELECT AccountNbr, TransactionDate, TransactionAmount FROM
(
SELECT
AccountNbr,
TransactionDate,
...
January 24, 2011 at 3:33 pm
Just in case someone wants to play with my code, here it is.
create function dbo.ChangeDelimiters (
@pLine varchar(max),
@pSDim char(1),
@pRDim...
January 24, 2011 at 3:17 pm
Anyone have some code to generate a million row table for this particular problem? My brain isn't quite functional at the moment, but I may have a solution that...
January 24, 2011 at 3:12 pm
Brian McGee-355525 (1/24/2011)
CSV data with a fixed number of fields (in my case, 13), and an unlimited...
January 24, 2011 at 4:52 am
Viewing 15 posts - 14,806 through 14,820 (of 26,486 total)