Forum Replies Created

Viewing 13 posts - 31 through 44 (of 44 total)

  • RE: Don''''t blame SQL please....

    In a scenario where you do a "select ... into", you will get an error if you do not use column aliasing.

     


    I feel the need - the need for speed

    CK Bhatia

  • RE: Stored procedures vs Imbedded SQL

    I noticed something in your post regarding storing images and documents. If these are being stored in the database, you might want to explore the possibility of storing them on...


    I feel the need - the need for speed

    CK Bhatia

  • RE: What way faster to delete?

    If you are going to delete 15 million rows out of 20 million, then there is a possiblility where you can instead insert the remaining 5 million into another table, then...


    I feel the need - the need for speed

    CK Bhatia

  • RE: Trace Analysis Utility?

    No - you werent dreaming.

    The utility is called Read80Trace and you can get it at

    http://support.microsoft.com/default.aspx?scid=kb;en-us;887057

    Regards

    CK

     


    I feel the need - the need for speed

    CK Bhatia

  • RE: Advanced logging and management in SQL Server 2000?

    You could run a trace using SQL Profiler and get all the activity that was done during a specified timeframe.

     


    I feel the need - the need for speed

    CK Bhatia

  • RE: Equivalent of user_source table (as in oracle) in SQL Server.

    You can query the syscomments table as follows

    select distinct object_name(id) from syscomments with (nolock)

    where ctext like '%Your_Column_Name%'

    However, if you have the same column name in multiple tables, you may not...


    I feel the need - the need for speed

    CK Bhatia

  • RE: Inserting rows into a table from a string list; a better way to do it?

    There is a set based method to do this - but you would need to create a permanent table created that has one column having 8000 rows with values 1...


    I feel the need - the need for speed

    CK Bhatia

  • RE: SELECT

    Assuming you have the same Primary Keys on all 4 tables, you can use the following to get rows in A that dont exist in either of B, C or...


    I feel the need - the need for speed

    CK Bhatia

  • RE: Weird error, probably easy

    Use BEGIN and END after the outer IF..ELSE construct.

     


    I feel the need - the need for speed

    CK Bhatia

  • RE: Ripping a date apart

    You can use the DATEPART function to extract a component of a datetime variable.

    To stick it back together, you would need to CONVERT them into a string datatype and concatenate...


    I feel the need - the need for speed

    CK Bhatia

  • RE: TSQL Debugger - how do I get to it/use it?

    I havent used it much myself - but the debugger can be launched from the Object Browser in Query Analyzer.

    You can get step-by-step instructions in BOL by searching under "Transact-SQL Debugger...


    I feel the need - the need for speed

    CK Bhatia

  • RE: Problem with dynamic order by

    Although this may not be a perfect solution - you can use the following as a workaround.

    I have tested it out in the Northwind database and used the Employees...


    I feel the need - the need for speed

    CK Bhatia

  • RE: Cursors or Direct T-SQL

    Your way (set based approach) would defintiely be better and faster.

    If I may make a suggestion, In addition, you could also try using EXISTS instead of IN. Generally, I...


    I feel the need - the need for speed

    CK Bhatia

Viewing 13 posts - 31 through 44 (of 44 total)