Forum Replies Created

Viewing 15 posts - 271 through 285 (of 341 total)

  • RE: Need a solution to display data Column wise from rows

    That is not really what SQL was designed to do.

    Your best bet would be to do this in a reporting tool.

    There are possible approaches, but the SQL would be...

    The more you are prepared, the less you need it.

  • RE: Large database question in regards to performance.

    I'd really suggest looking for the areas that are slow. Then look for an answer.

    The more you are prepared, the less you need it.

  • RE: How can I change my index scan to and index seek

    While you have an index for each of the items, the optimizer has decided that it is easier to just read the whole table, rather than to read each of...

    The more you are prepared, the less you need it.

  • RE: Importing XML files to SQL Server 2005 on a daily basis

    best approach would be to setup an SSIS package.

    use SQL server agent to run it as needed (daily, etc)

    Have the package look for new XML files, open up, read as...

    The more you are prepared, the less you need it.

  • RE: insert into from one table to another

    Agree, use IDENTITY_INSERT ON, and don't for get to issue the OFF command.

    And for the select, if possible, use a where command that ensures that the id's being inserted do...

    The more you are prepared, the less you need it.

  • RE: Combine multiple tables into 1 table

    Rather than actually combining the tables into a new table, I would suggest setting up a materialized view over all the tables. (that is view with index)

    This will be...

    The more you are prepared, the less you need it.

  • RE: Performance: convert char to decimal, or decimal to char ?

    Interesting question.

    You may have to test both approaches. you not only have the comparison time, you also have the convert time. Converting a char to a...

    The more you are prepared, the less you need it.

  • RE: How to display the part of the string after ':'

    A+ for keeping at it.

    The more you are prepared, the less you need it.

  • RE: Trigger or check constraint

    Also, if you are getting the table locked up, it could be that your query within the trigger has decided that it needs to issue a table lock. So,...

    The more you are prepared, the less you need it.

  • RE: FK's...do they improve query performance

    it really depends on the query, and if you have indexes on the FK's. The optimizer will consider, and for reporting, return speed is important. If you do...

    The more you are prepared, the less you need it.

  • RE: date comparison

    with the convert statement, you have the third optional value, which tells the convert statement how to format the value which is for character converts, not datetime.

    So drop...

    The more you are prepared, the less you need it.

  • RE: dealing with timestamp

    the best approach would be to use a trigger.

    On insert, populate createdate = getdate(), modify date = NULL or really better = getdate()

    On update, update the modify date = getdate()

    -...

    The more you are prepared, the less you need it.

  • RE: SQL SERVER 2005

    sql server agent is your friend. as noted above, it schedules jobs, and does it well.

    The more you are prepared, the less you need it.

  • RE: Not equal to operator

    Wow,

    First off, build a new table for the database that has the 111-11-1111 format, with two columns, one with the original value, and the other with the new, cleaner...

    The more you are prepared, the less you need it.

  • RE: DataBase Design

    We'll that fact that you are asking is a start in the right direction. But not something that can be answered in a forum.

    1) really focus on what are...

    The more you are prepared, the less you need it.

Viewing 15 posts - 271 through 285 (of 341 total)