Forum Replies Created

Viewing 15 posts - 16 through 30 (of 55 total)

  • RE: Sql View - Performance Tuning

    LutzM (9/26/2010)


    Ouch!! You'd better stop that query....

    I was hoping to prea-aggregate AdvStats and reduce the size of that part of your query.

    But, unfortunately, it seems like it won't help at...

  • RE: Sql View - Performance Tuning

    Yes, absolutely they are heavy tables.

    Yeah, I missed out the WHERE clause for it to behave like an INNER JOIN. What do you think was the cause of the SQL...

  • RE: Help on a simply Query

    I don't think the ClientId column is indexed, the only indexed column that I see is the ID of MyTable and this is already an existing design when I came...

  • RE: Help on a simply Query

    LutzM (8/18/2010)


    If you only need to know if a client id exists use EXISTS instead of COUNT(). See Gail's related blog[/url].

    Side note: Is there any index on clientId to...

  • RE: query for two database servers

    Hi guys, my bad..I was connecting to a different link server with no address data is present. This is okay now.

    Thanks for your help guys. Really appreciate it.

  • RE: query for two database servers

    Steve Jones - Editor (8/2/2010)


    How are you querying it? Same query? same permissions/user account?

    varchar(50) shouldn't be an issue in terms of size/type.

    Yes it is the same...here is the sample query.

    ...

  • RE: query for two database servers

    Thanks Steve. I just notice something, OPENQUERY as I tested it actually works but in the reports table, there is an address column of type varchar(50) that I need to...

  • RE: query for two database servers

    Steve Jones - Editor (8/2/2010)


    Depending on what you do, OPENQUERY can be easier to write. If you do a straight join, I believe that the entire table from a linked...

  • RE: query for two database servers

    Steve Jones - Editor (8/1/2010)


    You can setup a linked server between them, or you can use the OPENQUERY command from one server to get data from the other.

    Thanks for the...

  • RE: Delete Functionality

    Thanks for the help guys, really appreciate it. I think the DELETE CASCADE would help.

    Thanks,

    James

  • RE: Delete Functionality

    Yep but I was hoping I could see some sample implementation on how to do script for this one.

    Thanks.

  • RE: SP Installation Scripts

    Nabha (1/21/2010)


    Script all the sps (Obj exploere->right click on db -> tasks -> generate script) from a database, store it in one single sql file, open it in the...

  • RE: Bulk Insert Q

    Thanks Adi and Jeff for the prompt response. Will look/research into these suggestions you posted.

    James

  • RE: Update Last Row Value NOT NULL

    Good point there ALZDBA, since those are the only columns that exist on our db table..there should be index in where you can determine the latest one. I just wonder...

  • RE: Update Last Row Value NOT NULL

    Nabha - Thank you for your prompt response. Well the result is not what I want, I just need to get the last value of the columns Message and Description...

Viewing 15 posts - 16 through 30 (of 55 total)