Forum Replies Created

Viewing 15 posts - 2,956 through 2,970 (of 14,953 total)

  • RE: Query Optimization

    Thanks, that helps.

    I've started re-writing, but I'm struggling with the relationships between these tables.

    There's a connection from spvohdr_all to gltrxdet by the PO control number, which is denormalized in gltrxdet...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Question about stored procs, xp_cmdshell, and .NET applications

    The proxy account is for xp_cmdshell to use. It should have the rights needed to do what the stored procedure needs done, but no more than that.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Datatype Issue

    Long Integer in Access = Integer in SQL Server.

    Memo = varchar(max)

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: XML Query Help ....

    That one's not the text property, it's a value. Has to be queried differently:

    SELECT X.SR.query('.').value('declare namespace RS="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition";(/RS:DataSet/@Name)[1]',

    ...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: updating statistics

    SQL Server doesn't just keep stats on indexes. It can also keep stats on columns used in queries, even if they aren't indexed.

    There's a good article on it here:...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Are the posted questions getting worse?

    WayneS (11/2/2011)


    Stefan Krzywicki (11/2/2011)


    Thanks, I know I don't know everything and I might be reading things wrong, it helps to have extra opinions, especially from people who know what they're...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Query performance

    O.RecID being null doesn't necessarily mean a missing row. Might, but could also just be a nullable columns in the table.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Where are the good Senior Level DBA's?

    JamesMorrison (11/2/2011)


    sjimmo (11/2/2011)

    I think that the days of a DBA knowing about networking, OS', packets, NTFS cluster sizes, etc are falling to the wayside.

    Then they won't be DBAs long term.

    Learning...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Are the posted questions getting worse?

    Stefan Krzywicki (11/2/2011)


    GSquared (11/2/2011)


    Stefan Krzywicki (11/2/2011)


    I'm trying to find out what a support service is doing for some databases that another group here uses. We got a response that they...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: de-normalize normalized data.....

    Okay, so the dataset should be 1 column for the customer ID, and 14X3 (42) columns for the products. Got that.

    Got it on the data being provided as-is. ...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Stored Procedure Table Parameter Issue

    You can't use table variable names in column-qualification. Have to alias them for that.

    Exact problem is "@JobTbl.jobN".

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: can someone point me to a list of non-SARGable expresions?

    I've seen some Convert()/Cast() uses that were SARGable, like from DateTime to Date. Does that count?

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Are the posted questions getting worse?

    Stefan Krzywicki (11/2/2011)


    I'm trying to find out what a support service is doing for some databases that another group here uses. We got a response that they haven't done run...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Query Optimization

    Sorry. Wasn't clear enough. What I meant was I need the create scripts for them. Then I can create copies in a test database, and rewrite the query...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: can someone point me to a list of non-SARGable expresions?

    GilaMonster (11/2/2011)


    GSquared (11/2/2011)


    It's pretty much anything other than an equality comparison between a column and another column or between a column and a variable

    Inequalities are SARGable. It's not just equality...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

Viewing 15 posts - 2,956 through 2,970 (of 14,953 total)