Forum Replies Created

Viewing 15 posts - 12,331 through 12,345 (of 14,953 total)

  • RE: Is Database Mail provided with 2005 Workgroup Edition?

    I've used workgroup edition. It does include database mail.

    - 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: CTE / VIEW

    Barry, when I said, "your" I meant Milu's. He miscopied yours.

    Milu, I actually answered on behalf of a number of other people, including Jeff Moden. If you look...

    - 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: Finding the last day of the month, for a date range

    declare @SDate datetime, @EDate datetime

    select @SDate = '1/8/2008', @EDate = '3/8/2008'

    select

    dateadd(month, number, -- Months in range

    dateadd(day, -1 * datepart(day, @SDate), -- Last Day of (prior) month

    dateadd(month, 1, -- Following...

    - 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: Temporary Tables

    Temporary tables can actually be quite valuable. I don't know of a specific single-source of data about using them. Best bet is starting with Books Online and doing...

    - 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: Questions about index and table fragmentation

    On small tables, SQL will sometimes not even bother doing anything if you tell it to defrag the index, because the fragmentation doesn't matter. On really small tables (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: Duplicate Records

    The easiest solution is going to be deleting from the combined table, before the final upload. You could dump them in the load from the vendor-specific tables, but that's...

    - 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: TEMP DB FULL

    On the cursors questions, take a look at the system views. There are a set of them for cursors.

    - 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 in SQL 2005 performance Tuning

    RAM utilization could definitely be an issue. If any of the reports are big enough, and you don't have the server configured to use all that RAM, they'll end...

    - 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 Developer Edition to SQL Server 2005 Migration

    There isn't "a" plan for that kind of thing. It depends too much on what you're doing, in what environment.

    You say you're migrating your production environment from Dev 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: CTE / VIEW

    Milu (8/11/2008)


    your code...

    Create View vwRecursiveAW AS

    WITH DirectReports(ManagerID, EmployeeID, EmployeeLevel) AS

    (

    SELECT ManagerID, EmployeeID, 0 AS EmployeeLevel

    FROM AdventureWorks.HumanResources.Employee

    WHERE ManagerID...

    - 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 times out from web app but runs fast from enterprise manager

    That's definitely odd. Are you certain that it's the SQL server that's timing out, and not something else in between the page sending the query and getting the data...

    - 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: Separate Login for a query in a stored procedure

    If you set up roles on the server (Security tab), you can tell a job to run under a particular login/role.

    - 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: Find the creation date of the column

    I don't know of a way to do that in SQL Server itself. Might be one, but I don't know of one.

    If you have a log parser, you should...

    - 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: [help] why SQL Server 2005 consume all of memory

    I'm assuming you mean gigabytes, not gigahertz, for your amount of memory.

    There's a setting in your server options for maximum (and minimum) memory. You need to make sure that's...

    - 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: Learning TSQ-L

    My personal favorite is the SQL Server Bible series by Paul Nielsen.

    What I really recommend, though, is go to a bookstore with a good IT section. Take a list...

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