Forum Replies Created

Viewing 15 posts - 17,686 through 17,700 (of 18,923 total)

  • RE: Slow query help needed!!!!

    I already posted something that disproves that in this very thread... I think this is a lost cause. Let him not use the order by and get bitten later...

  • RE: Joining 2 tables

    HTH.

  • RE: Joining 2 tables

    On a last note, and outer join (left, right or cross) with a where condition like : where SomeCol = @SomeValue basically becomes an inner join if the search criteria...

  • RE: Joining 2 tables

    Select C.CategoryID, C.name, count(*) as Total from dbo.Category C LEFT OUTER JOIN dbo.Comments CM on C.CategoryID = CM.CategoryID and CM.UserId = @UserId

    GROUP BY C.CategoryID, C.name

    ORDER BY C.name

  • RE: need help with sql insert with concat

    Are the columns chars() or varchars()? If you use varchar instead of char then the trailing spaces will be removed automatically (or actually not added at all).

  • RE: DTS exec error!

    You should always use owner.objectname. You only need to add the database name for cross database/cross server queries.

  • RE: need help with sql insert with concat

    BTW this assumes that Pattern and Color cannot contain nulls

  • RE: need help with sql insert with concat

    INSERT INTO tblCatalog ( Product_ID, img )

    SELECT Product_Id, Pattern + '-' + Color + '.jpg' as img

    FROM dbo.Product_Dimension

  • RE: Joining 2 tables

    Do you mean something like this?

    Select C.CategoryID, C.name, count(*) as Total from dbo.Category C LEFT OUTER JOIN dbo.Comments CM on C.CategoryID = CM.CategoryID

    GROUP BY C.CategoryID, C.name

    ORDER BY C.name

  • RE: DTS exec error!

    I can't help you any further than this... maybe some dts guru will be more fit to solve your problem than me.

  • RE: Problem with searching a table containing apostrophes

    Wow, that's a nice quote.

  • RE: DTS exec error!

    you don't need to specify the dbname unless you are connection do northwind and want to get data from pubs.

    It's considered a best pratice to ALWAYS specify the owner of...

  • RE: Problem with searching a table containing apostrophes

    I think that xml can be good once is a while... It's like cursor, they have their good use that will beat a set solution... but it happens so rarely...

  • RE: Problem with searching a table containing apostrophes

    The boss has started thinking that it's time to start doing a full rewrite of the application... I'll try making him chose the .net environement... and then I'll chose C#...

  • RE: DTS exec error!

    This is sctricly a guess here, but you're still not qualifying the objects with there owners... I'm really not sure that this is the problem here but it could be...

Viewing 15 posts - 17,686 through 17,700 (of 18,923 total)