Forum Replies Created

Viewing 15 posts - 2,116 through 2,130 (of 14,953 total)

  • RE: validate imported spreadsheet data against the original spreadsheet

    Probably the answer being looked for was "query the Excel file and compare to the table". Most people would, I think, make the same mistake Sean did and assume...

    - 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: Easy way to search for a string any where within XML column?

    By search for a string, do you mean search for a word within the XML, or search for a substring within the XML?

    If words, then Full Text Indexing can work...

    - 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: Excel files locking tables

    Gianluca Sartori (1/27/2012)


    Why not use a snapshot?

    If you're not on Enterprise, it's not an option.

    But a warehouse type solution would be, regardless of SQL edition.

    Snapshot's definitely a great idea if...

    - 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 a transaction block speed up a query?

    I know how it goes on not being able to post because of IP policies, security, et al. I was just hoping you could, because we could probably help.

    Instead...

    - 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: validate imported spreadsheet data against the original spreadsheet

    Sean Lange (1/27/2012)


    Not sure what answer the interviewer was looking for but a couple of things come to my mind. First open the spreadsheet and compare row count from the...

    - 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: validate imported spreadsheet data against the original spreadsheet

    If the spreadsheet had a checksum for each row, it would be easy to check that against the imported data by checksumming what comes in vs that.

    Pretty much anything else...

    - 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: Is there a way to insert a record and then select that record

    You're welcome.

    - 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 a transaction block speed up a query?

    I'd need a lot more than just the script to begin fixing that, as already mentioned.

    Table and UDF definitions, definitely, and some insert statements to generate sample data, would start.

    I...

    - 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: Canadian Postal Code and US Zip

    Sorry about that. I have a Numbers table that includes integer values from 0-10,000. Comes in handy for dozens of uses.

    You probably only need a limited scope for...

    - 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: Is there a way to insert a record and then select that record

    There are a couple of ways to do that. Best (if you're in SQL 2005 or later), is the Output clause:

    insert into dbo.MyTable (column list)

    output inserted.*

    values (value list);

    If you'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: Are the posted questions getting worse?

    Brandie Tarvin (1/27/2012)


    GSquared (1/27/2012)


    Brandie Tarvin (1/27/2012)


    So, question of the day. How do you help people who refuse to be helped? People who are resistant to your suggestions of "test it"...

    - 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: Foreign Key reference with Synonym

    Foreign keys can only reference tables in the same database. They can't reference functions, views, et al.

    You might be able to compensate for that with a trigger on the...

    - 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?

    sturner (1/27/2012)


    GSquared (1/27/2012)


    Stop trying to help them.

    Personally, I am growing more and more fond of Celko's approach with each passing day.

    I understand the temptation, truly do.

    Just don't succumb to it.

    Or...

    - 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?

    Brandie Tarvin (1/27/2012)


    So, question of the day. How do you help people who refuse to be helped? People who are resistant to your suggestions of "test it" or "try this".

    I'm...

    - 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?

    GilaMonster (1/27/2012)


    My favourite 'not enough information' recently was at SQLTeam. Question basically stated "The following code throws an error. Please help

    Dim CPDHourUpdate As SqlDataSource = New SqlDataSource() CPDHourUpdate.ConnectionString = ConfigurationManager.ConnectionStrings("Application").ToString()...

    - 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,116 through 2,130 (of 14,953 total)