Forum Replies Created

Viewing 12 posts - 256 through 267 (of 267 total)

  • RE: Shirnkfile ?????

    When shrinking the log I have founnd I have to do the following:

    backup log @database

    with no_log

    then I can shrink the log:

    dbcc...

  • RE: How to determine Free Space in data file?

    Alternatively you could use:

    sp_spaceused

    If you don't specify a table name it reports the space used by the database. You might need to run

    sp_spaceused @updateusage = 'true'

    to make...

  • RE: How to determine Free Space in data file?

    Try DBCC CHECKALLOC ('<database_name>').

    This gives details about every table in the database but does give the number of used pages and the number of reserved pages.

    Jeremy

  • RE: GROUP BY as Columns

    Tim,

    If you do this:

    select distinct firm, sum(balance) as balance

    from Invoices

    where ClintId = 1

    Group by Firm

    you will get a total by firm with a firm Id but it is still in...

  • RE: Your Recommendations on Query / Cursor in case?

    Thanks for the info.

    I have a csv feed from another system and I need to do inserts/updates in my system. Some of these feed files are large (can be...

  • RE: Your Recommendations on Query / Cursor in case?

    Crispin,

    Forgive my ignorance, but how do you loop through a table if you don't use a cursor?

    Jeremy

  • RE: Concatention Problem

    If I understand it, you want to denormalise the data from many rows into a single string.

    This might work:

    declare @concat_string varchar(8000), @masterid int, @GeoState char(2), @GeoCity varchar(50), @prev_masterid int

    /* Initialise...

  • RE: Can one SP return a Recordset to another?

    Just be aware that you cannot nest insert ... exec statements.

    What this means is that procedure a cannot use an insert #table exec procedure b if procedure b uses an...

  • RE: SQL 7 Trans log too big. How shrinK

    I have found that DBCC SHRINKFILE does not always work.

    I have had to do the following and then use DBCC SHRINKGILE to free up space:

    backup log <database_name>

    with no_log

    Jeremy Kemp

  • RE: A Lookup Strategy Defined

    I totally agree. I developed something very similar 4 or 5 years ago and it saves so much development time.

    We now have over 60 different types of...

  • RE: Progress on long queries?

    David,

    I have found that with long running queries it is often better to break the query up into a number of smaller queries.

    The main reason for this is that if,...

  • RE: Parent Child Relationships

    Nico,

    Thanks for the suggestions but I actually want the product to be located twice in the product dimension as I need it to be reported into two separate groups.

    Also, ...

Viewing 12 posts - 256 through 267 (of 267 total)