Forum Replies Created

Viewing 15 posts - 14,251 through 14,265 (of 14,953 total)

  • RE: Having a GO statement between individual DML statements in a SQL script

    Network resources? No effect at all.

    - 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: Backups

    Narizz28 (4/11/2008)


    I agree with Ignacio A. Salom Rangel. The question was can you start it, not can you run it simultaneously. You can start it alright, it will just queue...

    - 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: Having a GO statement between individual DML statements in a SQL script

    It should reduce lock times. Since each batch is run as a set, breaking up the batches with "go" should let each one complete without holding more resources. ...

    - 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: which one is faster?

    Depends on what you're doing and on how many cores the CPUs have.

    If they both have the same number of cores, then the 3Ghz CPU will probably be faster than...

    - 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: JDBC error - not the full result set

    Have you tried running the sub-query in the Exists function all by itself?

    Just, "SELECT id FROM func1(2,2) WHERE id = blah1", in Management Studio, in that database.

    That might give you...

    - 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 as an input parameter for stored procedure

    Max size of XML data type is 2 Gigabytes.

    - 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: Store Big Data in Server from Application

    Michael Earl (4/10/2008)


    I'm sure I'll get yelled at by someone for this post...

    Don't be too bound on the "Stored Procedures are the only way" approach.

    They are not necessarily the fastest...

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

    You can either use the char() function, or you can use the characters you want directly.

    For example:

    replace('abc', 'b', '1')

    Will result in the "b" being replaced by a "1", which would...

    - 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: How to convert from decimal to binary in SQL?

    You'd have to modify the function to deal with decimals. Probably split the integer portion from the decimal portion and the function separately on the integer, then run 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: How to convert from decimal to binary in SQL?

    There's a UDF for converting to any base from base 10 at:

    http://www.intersoftdevelopment.com/IDI-ASPNET/Free-Source-Code.aspx?CodeID=5&Code=SQL+Server+Convert+Decimal+Number+to+Hex+Binary+Any+Base

    It's not the most efficient code ever, and it's RBAR (inline scalar UDF), but it does 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: Store Big Data in Server from Application

    It depends on how you're generating the 1-million rows of data.

    If what you're doing is importing large files, then BCP/Bulk Import/SSIS is going to be much faster than calling a...

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

    The char() function (not to be confused with the char() datatype) returns whatever character is assigned to the number in the parentheses.

    Examples:

    select char(33), char(34), char(35)

    returns:

    !"#

    char(32) happens to be the space...

    - 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: Need help denormalizing query for a report

    Pivot can be used that way, you just have to trick it.

    Max(ID) = ID

    If you aggregate on the column you group by, you end up with the column exactly as...

    - 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: No XP, but Look Forward To 7

    Derek:

    I understand your point. I was agreeing with you. SQL has enough consistency problems already without even more being added, was my point.

    - 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: difference between log shipping and transactional replication

    Per Books Online:

    "Transactional replication typically starts with a snapshot of the publication database objects and data. As soon as the initial snapshot is taken, subsequent data changes and schema modifications...

    - 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 - 14,251 through 14,265 (of 14,953 total)