Forum Replies Created

Viewing 15 posts - 12,706 through 12,720 (of 14,953 total)

  • RE: SQL2005 Concurrent Users

    Have you tried using the Dedicated Admin Connection? (Look it up in Books Online if you're not sure how to do that.) That should allow you to fix...

    - 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: sql server 2005 enterprise edition

    Yes, I would expect this to run slowly. I'd start rewriting it from the GoTo statements (get rid of them and use Begin...End for the If), change the Not...

    - 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 create a generic trigger

    Here's a test you can run, that includes log-reading functions:

    create function LogReader_Table1

    (@XML_in XML)

    returns @T1 table (

    ID int,

    Act char(1),

    Col1_From varchar(100),

    Col1_To varchar(100),

    Col2_From varchar(100),

    Col2_To int)

    as

    begin

    insert into @T1 (ID, Act, Col1_From, Col1_To, Col2_From, Col2_To)

    select...

    - 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 create a generic trigger

    Yeah, I forgot about one detail. You have to assign the XML to an XML variable, then insert that. Otherwise, you get that error.

    As far as querying XML...

    - 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 create a generic trigger

    hengert (7/21/2008)


    I have to create a trigger for 9 tables. So, depending on how many columns each table has, it would be a nightmare to write.

    Unless you're talking about hundreds...

    - 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: Given an employee table( with columns Emp_ID,Emp_Name,Emp_Salary), how would you find out the fifth highest salary?

    Kaushal (7/21/2008)


    GSquared (7/21/2008)


    It depends.

    What if there are ties? Do you want the fifth record, even if there are five ties for highest?

    I think the OP wants to know 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: Copy Massive table to Different DB without a stoppage

    Can you run a backup of the source database, restore that under a different name, and do your export from that? (Either directly to the target server, or to...

    - 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 could do:

    select ManagerName

    from ManagersInfo

    inner join WorkInfo

    on EmployeeNumber between begin_value and end_value

    Does that get you what you need?

    - 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 System table that tracks table changes globally?

    There isn't such a 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: Copy Massive table to Different DB without a stoppage

    Are the databases on different servers?

    If so, you might want to export the data into a text file (or something similar), then bulk import it. You can bulk import...

    - 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: Cannot see database in Management Studio

    Is the database detached, or do you just not have the rights to see 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: What was your worst IT job you ever had?

    I've really only had two IT jobs, and neither has been bad. The first company was messed up, but my job was okay.

    One bad job I had was "stickering...

    - 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: Headline for Jul 8, 2008 - Professional Certification for DBA

    I try my hardest to be arrogant, but just can't seem to get it right! 🙂

    - 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: Using a temporary table

    And, perhaps more importantly, are you selecting from the temporary table in the same query (or on the same connection) as you created 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: performance impact of "Try...Catch"?

    Just as a test, I ran:

    create table #Runtime (

    Version int,

    Runtime int)

    go

    declare @Start datetime, @X int

    select @start = getdate()

    select @x = col2

    from dbo.sometable

    insert into #runtime (version, runtime)

    select 1, datediff(ms, @start, getdate())

    go...

    - 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 - 12,706 through 12,720 (of 14,953 total)