Forum Replies Created

Viewing 15 posts - 6,811 through 6,825 (of 8,416 total)

  • RE: Trying to UnPivot without using multiple selects unioned together

    Is it too late to add this to the mix...?

    ;WITH

    TypeConvert AS

    (

    -- Convert to sql_variant for the upcoming...

  • RE: Poor Man's Enterprise Feature - Lock Pages in Memory

    Kristy Lanter (10/27/2009)


    Yeah, but what I was wondering was if it was really needed. Back a few years ago I read someplace it wasn't necessary to set it up...

  • RE: Poor Man's Enterprise Feature - Lock Pages in Memory

    Kristy Lanter (10/27/2009)


    How about Enterprise edition 64 bit?

    Enterprise Edition has always had the ability to lock pages in memory.

  • RE: With Nolock

    Yes I would think so too - I just haven't been able to make it behave the way we would expect yet.

    It's currently sat in my interesting-but-useless pile. The...

  • RE: Single User Mode

    Good luck, and you're welcome of course.

    edit: posting that, it's just occurred to me to ask you to check that your code doesn't switch context away from the target database...

  • RE: With Nolock

    I do agree with Mr Guru there about the ORDER BY thing, but as a matter of curiosity, I think the following also guarantees a repeatable order:

    WITH TS AS (SELECT...

  • RE: Single User Mode

    Interesting - and no, ALTER DATABASE is not allowed within a transaction.

    Are you sure you're not just encountering an error of some kind between the SINGLE_USER and MULTI_USER changes?

    An error...

  • RE: Single User Mode

    Ok, but in which database is the stored procedure defined? AttendaDW? My guess would be not ;c)

    The stored procedure needs to running in the context of the database...

  • RE: Single User Mode

    Activity Monitor connections are a favourite.

    If you need exclusive access to a database (for some reason...?) the traditional approach is to change context to that database (with the USE [database_name]...

  • RE: Any Cons to long column names.

    Andrew Gothard-467944 (10/26/2009)


    50 Characters? That's not a column name, that's an essay!

    Apparently, in the next release, all data will be stored compressed in the column names - there won't...

  • RE: With Nolock

    ranjitrjha (10/22/2009)


    GSquared,

    Your explanation makes sense but when i am running

    select top 10 * from table1

    select top 10 * from table1

    then for both queries, result set is same.

    It's only when I...

  • RE: Any Cons to long column names.

    I've come across what I believe to be both ends of the spectrum on this one.

    First up, an old application built to be compatible with any back-end database (restrain yourself...

  • RE: Invoking a SQL Server Webservice

    coboljobs2003 (10/20/2009)


    I am new to SQL server 2005 and I am trying to work on a project to invoke an existing webservice from SQL server 2005.

    (This webservice which is...

  • RE: Are the posted questions getting worse?

    Alvin Ramard (10/21/2009)


    Bob Hovious 24601 (10/21/2009)


    Sigh... I always over-design things.

    Before the XML data type, all data could be stored in tables with a no more than 4 columns. Now...

  • RE: Are the posted questions getting worse?

    Bob Hovious 24601 (10/21/2009)


    Emperor Paulpatine,

    XML makes db design much simpler too:

    create table XMLTable (ID bigint, Data xml)

    ...what's the ID column for? :laugh:

Viewing 15 posts - 6,811 through 6,825 (of 8,416 total)