Forum Replies Created

Viewing 15 posts - 7,921 through 7,935 (of 9,715 total)

  • RE: Question about "Execute as "

    mchofman (6/1/2010)


    It is possible to run query at a linked server as another user with the EXECUTE AS statement. In the example below I login as user "Test" and I...

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • RE: small table + many DELETES + UPDATE = deadlocks

    mberry 51447 (6/1/2010)


    somehow I dont believe that use of the UPPER function is causing this.

    Every function included in a WHERE clause causes problems. It most instances, it can turn a...

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • RE: small table + many DELETES + UPDATE = deadlocks

    mberry 51447 (6/1/2010)


    Nope it is SQL_Latin1_General_CP1_CI_AS

    If the database is case insensitive, do you know why the vendor put an UPPER() function in the WHERE clause?

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • RE: How to findout who changed the sqlserver properties?

    If you don't have the auditing set up to keep this info, then there's really no way you can go back and find out who changed your server properties. Sorry....

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • RE: How to disconnect all users from a server ?

    Better method... Not really.

    Simplier (and not recommended) methods? Yes.

    1) Set all DBs to Single User mode.

    2) Take all DBs offline (will have to click the "Disconnect connected users"...

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • RE: Error: Connect to Management Studio

    Have you been able to connect to them before?

    If so, what recently changed on the computer? Service Packs? Other updates? New programs? Uninstall of old programs?

    If not, try re-installing the...

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • RE: small table + many DELETES + UPDATE = deadlocks

    She's not asking for the log file. Do you know how to do a deadlock graph?

    If not, let us know and we can walk you through it. If so, please...

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • RE: Linked Server Update - difference in behaviour SQL2005/SQL2000

    Try re-writing your code in ANSI style joins.

    UPDATE W

    SET TableNumber = T.TableNumber,

    LineNumber = T.LineNumber,

    .....

    UnitNumber = T.UnitNumber

    FROM [LINKED SERVER].DATABASE.dbo.TABLE1 AS W

    INNER JOIN [LINKEDSERVER].DATABASE.dbo.temporaryTABLE AS T

    ON W.IdentityID = T.IdentityID

    The method you...

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • RE: Question about "Execute as "

    To use "Execute AS," I'm pretty sure you need Sysadmin access or you need to be executing a proc that has that phrase *in* the code.

    If you only have read...

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • RE: Struggling to engage brain! SQL code requiring a simple solution!

    elutin (6/1/2010)

    SET @Package = NULLIF(@Package, '**SELECT ALL**')

    NULLIF? That's the first time I've heard of that function. I'm glad I read this thread.

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • RE: export table data to text file

    Is this a one time thing or something you'll be doing more than once?

    If more than once, I suggest using SSIS to create a package that you can kick off...

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • RE: small table + many DELETES + UPDATE = deadlocks

    It sounds to me that you're going about this the wrong way. You're focused on a single solution to the problem (i.e., that it was indexes) without actually checking the...

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • RE: Maintenance plan backup issue

    Sorry it took so long for me to reply. Been busy at work.

    On that screen shot you took, you forgot to check a box right above the path information you're...

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • RE: Maintenance plan backup issue

    Sorry, my company blocks that site. Can you attach the image to your next post?

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • RE: Maintenance plan backup issue

    pobeda (5/22/2010)


    Updated sql server to SP 3, did not help. So, Management studio on my PC older then on the server right now.

    This is why we asked about versions. Workstation...

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

Viewing 15 posts - 7,921 through 7,935 (of 9,715 total)