Forum Replies Created

Viewing 15 posts - 58,861 through 58,875 (of 59,048 total)

  • RE: Table locking on large inserts/updates is KILLING me!

    If your going to update the table every day, then I'd use non-clustered indexes only.

    Another thing to try is to rebuild your data in a staging table that looks exactly...

  • RE: nchar vis nvarchar

    Frank wrote: >Could it be you're mixing some kind of presentational stuff in here, Jeff?

    Only for demonstration purposes... the pipes were so you could see the spaces. 

    I'm one of...

  • RE: How do I get log file space allocation and space used?

    Getting the usage is the hardpart... the names used below are the "logical" names for each file...

    SELECT FILEPROPERTY('northwind', 'spaceused')*1024*8
    SELECT FILEPROPERTY('northwind_log', 'spaceused')*1024*8

    To get the allocated file size for each file, use...

  • RE: nchar vis nvarchar

    Not a challenge here... I'd really like to know...

    Using the following code example, I get what most people would consider to be an "undesirable result"...

     CREATE TABLE #MyTest (TestChar CHAR(10))
     INSERT...
  • RE: Decorum in the Forums

    Very nice, indeed!  It's this type of attention to the forums that makes SQLServerCentral so great. 

    We all have to remember that a person asking a question has already swallowed...

  • RE: convert int to smallint

    It sounds to me that SMALLINT would be the most appropriate here but, if you use INT instead, you will not notice a huge performance change.  The big drawback of...

  • RE: Recommendations for learning SQL Server

    Since you're interested in the DBA side, in the Henderson book, he recommends just letting SQL grow on it's own using only the default settings... very, very bad idea.  The...

  • RE: convert int to smallint

    I agree with Steve... trap for errors if you are goin to build your own T-SQL to do this.  If you use Enterprise Manager to make the table design change,...

  • RE: Problems creating a index on view

    You'd be better off to run the SQL from the view in Query Analyzer once with the Index Wizard to create indexes on the underlying tables of the view.

  • RE: The letter N?

    >Does this necessarily mean that if I know my application(s) are only going to be used in the US, and won't ever need any other locale, I should save the...

  • RE: run job schedule evry 20 second HOW

    Perhaps you could have a stored procedure that runs continuously (loop back to start) with a WAIT DELAY '000:00:20'.  That would solve the problem of trying to schedule a job...

  • RE: Deadline Tomorrow - Limiting the zero value in averaging a row of data

    Karen,

    Bob and I both made the same boo-boo... in the code where the fields get added up, you must include all of that addition in parentheses or you'll get the...

  • RE: Deadline Tomorrow - Limiting the zero value in averaging a row of data

    There's many ways to do this but most will involve a loop or a (yeeeeech!) Cursor (Haaaaaack... Patooooooiiiii!), a temp table, or maybe some extra columns added to your existing...

  • RE: Gathering Year-to-Date Info

    Beryl,

    Borrowing on Kathi's idea, this may run a bit faster because it does no string manipulation or conversion and only has one comparson operator (=).  And it could easily be...

  • RE: Get sp names who is using given table name

    I agree that dependencies related tables are (more or less) unreliable but the SYSOBJECTS and SYSCOMMENTS tables are always up to date with the latest code for any given object.  The...

Viewing 15 posts - 58,861 through 58,875 (of 59,048 total)