Forum Replies Created

Viewing 15 posts - 2,206 through 2,220 (of 3,668 total)

  • RE: Disappearing table/columns kind of...

    I would get rid of the SELECT *.

    I've had problems when the underlying table structure changed but the stored proc did not pick up the changes.

    I would also switch to...

  • RE: Composite indexes A bit confused

    If you are doing searches and retrievals that use all the fields in index 2 then stick with index 2.

    Remember an index will be ignored if the query optimiser thinks...

  • RE: Backup log file

    How often does the data warehouse get populated?

    If it is a periodic load then having the database in simple recovery mode is OK. When you do a data load...

  • RE: CHAR vs VARCHAR

    CHAR is fixed length where as VARCHAR is variable length so VARCHAR should use less space than CHAR. The only caveat is that VARCHAR fields need to store something...

  • RE: SQL Sudoko

    Chris, it is obsolete.

    When I built the original solution I used temporary tables however I found that views worked just as well and the temporary tables weren't needed.

    The error is...

  • RE: Incorrect Syntax in a USE statement

    Depends on your permissions but you can do DROP db.dbo.view just as you can do SELECT * FROM db.dbo.view

  • RE: Identity(property)?

    No, only one table at a time can have INDENTITY_INSERT ON.

    What exactly are you trying to do?

  • RE: Tracking Stored Procedures

    Run the trace without using the profiler. The profiler GUI slaughters performance.

  • RE: Actual Reason to Use CLR

    Where separation in 'n' tier applications CLR functions have little use because each component is a specialised resource.

    Where the SQL Server is more of a one-stop-shop then the CLR functions...

  • RE: Tracking Stored Procedures

    In the short term I would run a trace.

    Other ways are to use the following to write to the Windows event log.

    RAISERROR('Procedure name xxxxxx ran',10,1) WITH LOG,NOWAIT

    You can have the...

  • RE: Question about maintaining indexes

    This a question to which the answer is "it depends".

    The only way of telling is by using DBCC SHOWCONTIG to see how fragmented the tables are.

    If you have tables on...

  • RE: The Hazards of IT

    I learnt to play the piano at the age of 5 and one of the first things they teach is how to hold your hands and wrists.

    So far I have...

  • RE: Writing SQL Faster

    Perhaps we are going about this the wrong way.

    I should like to suggest that Red-Gate make a sample application available to SSC members with the precise intention of getting SSC...

  • RE: Writing SQL Faster

    I use the RedGate products and find that they do speed things up.

    There is a layout file used SQL Refactor that can be edited to give you the layout you...

  • RE: Automated Monitoring Database Size Using sp_spaceused

    I'll look into it Marc. It should be possible but there is one thing I have found with SQL2005 and system tables. Basically you can't query them directly,...

Viewing 15 posts - 2,206 through 2,220 (of 3,668 total)