Forum Replies Created

Viewing 15 posts - 31 through 45 (of 1,047 total)

  • RE: Bulk Insert - CSV with and without quotes

    You will need to use BCP with a format file. That way you can specify which columns are quoted and which are not. The format file has a way to...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: merging different clients data onto same box

    Brandie Tarvin (9/26/2013)


    Do not, under any circumstances, put them on the same DBs / same instance regardless of what services you are providing. It will be a maintenance nightmare, not...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Partitioning tables has made them much larger (triple in size)

    the row size appears to have increased commensurate with the size of the three nullable columns you added so that sounds consistent. Do me a favor and run DBCC...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Partitioning tables has made them much larger (triple in size)

    well if you are getting 23 rows per page and you were getting 60, the reason has to be a combination of fill factor and adding more columns. Post...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Partitioning tables has made them much larger (triple in size)

    What was you fill factor for the clustered and non-clustered indexes?

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Best way to move Several Million Record query results to a table?

    Yeah, you need to determine:

    1) how much memory is available on your server (or VM)

    2) what other processes or programs are running on that server

    3) max (and min) amount of...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Early Month end processing, How do you handle the dates?

    We do month end processing all the time (banking). So what I usually do is this:

    declare @LastMonth datetime

    declare @thisMonth datetime

    set @ThisMonth = convert(datetime,convert(char(6),getdate(),112) +'01')

    set @LastMonth = dateadd(month,-1,@ThisMonth)

    then all my data...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Best way to move Several Million Record query results to a table?

    Okay, now I understand what you mean. Well for one thing there could be a different query plan being used in the import wizard implementation because the query is running...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: The Loss of Trust

    I'm shocked... shocked to find out government has been spying on us!

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Best way to move Several Million Record query results to a table?

    CptCrusty1 (9/12/2013)


    I have a query that will utlimatley return several million records. The query itself is too much for the memory on the particular server it's on;

    I'm not...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: SSIS PACKAGE DATA DUMP FROM SQL VIEW TO CSV AND PUT IT ON A FTP SERVER

    I basically do the same thing except multiple times per day. I have a .net program that pulls the data via a stored procedure and builds the pipe delimited data...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Get resultset from query without running query.

    you could either use:

    select top(0) * from TABLE

    or you could use a where clause that would never return any rows:

    select * from TABLE where 0 = 1

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: TSQL QUERY HELP

    My bad... your count()'s should be sum()'s (I missed that the first time):

    select coll,

    sum(case when coll is not null and value is not null then...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Trimming column values in place (without temporary tables, etc)

    it is actually pretty straightforward :

    update table set varcharcol = ltrim(rtrim(varcharcol))

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: TSQL QUERY HELP

    Try it like this:

    select coll,

    count(case when coll is not null and value is not null then 1 else 0 end) CntCol,

    count(case when coll is not null...

    The probability of survival is inversely proportional to the angle of arrival.

Viewing 15 posts - 31 through 45 (of 1,047 total)