Forum Replies Created

Viewing 15 posts - 21,571 through 21,585 (of 26,490 total)

  • RE: Query freezes Server: SQL Server 2005 Windows 2003

    Single Proc? Dual Proc? Quad Proc? Single Core? HyperThreaded? Dual Core? Quad Core?

    Disk subsystems? Are they then same/similar?

  • RE: store proc

    Nope. Permission issue.

  • RE: Are the posted questions getting worse?

    Any help on that thread would be welcome. Based on further information from the OP, I'm thinking something written using SMO may be a better option than a stored...

  • RE: store proc

    This may take more work. Even under a privledged account, I get an error with the CREATE DATABASE part of the stored proc.

    Don't give up hope yet. If...

  • RE: store proc

    Mike Levan (4/9/2009)


    I think Tara wants to check dbname from 4 different servers and more over she dont need to give create command, she can directly create database as it...

  • RE: store proc

    Lowell (4/9/2009)


    don't you have to add a USE DATABASENAME command before you add the user, otherwise it would just re-add the user to the existing connected database?

    Probably. Work got...

  • RE: Are the posted questions getting worse?

    Steve Jones - Editor (4/9/2009)


    GilaMonster (4/9/2009)


    There are times I wish I could reach through the computer screen and beat some sense into people...

    And having seen the Gilamonster in action, I'm...

  • RE: Are the posted questions getting worse?

    GilaMonster (4/9/2009)


    Lynn Pettis (4/9/2009)


    And then there are those who really should not be giving advice. The code provided here wouldn't even pass a check in SSMS.

    Are we really surprised?

    Honestly?...

  • RE: Are the posted questions getting worse?

    And yes, I just posted a warning regarding my code and SQL Injection.

  • RE: store proc

    ********* WARNING ***********

    A quick aside regarding my code. It needs more work. Currently it is wide open to SQL Injection. This would be a good opportunity for...

  • RE: Finding previous/next record based on criteria without using a cursor

    I think mzak deserves a Gold Star and a big round of applause!

  • RE: Are the posted questions getting worse?

    And then there are those who really should not be giving advice. The code provided here wouldn't even pass a check in SSMS.

  • RE: store proc

    The only thing I haven't done yet is actually test the procedure, but the following code will actually create the procedure.

    CREATE PROCEDURE dbo.CreateNewClientDatabase (

    @DBName varchar (128),

    ...

  • RE: store proc

    Mike Levan (4/9/2009)


    CREATE PROCEDURE CreateNewClientDatabase

    @DBName varchar (128),

    @Username varchar (30)

    WITH EXECUTE AS 'dbo'

    AS

    if not exists(select dbid from master.sysdatabases where name = @DBName)

    CREATE DATABASE @DBName

    print 'Database @DBName Created'

    else

    raiserror("Database already...

  • RE: Error in differential backups

    Are you using the Native SQL Server Backup or a third-party tool?

Viewing 15 posts - 21,571 through 21,585 (of 26,490 total)