Forum Replies Created

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

  • 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?

  • RE: Error in differential backups

    Did you check the SQL Server Logs, not the SQL Server Agent Logs.

  • RE: Show MVP Status on forum posts

    Steve Jones - Editor (4/9/2009)


    GSquared (4/9/2009)


    duh duh duh - duh duh duh duh duh duh ...

    I got that right away, hmmm, what does that say about me?

    My kids wanted to...

  • RE: Moving data from one table to 3

    sward (4/9/2009)


    Hi Again,

    Ok, here it is, the sample code i gave you was a mini replication of what i need to do, the field names and stuff are diffrent but...

  • RE: Show MVP Status on forum posts

    GSquared (4/9/2009)


    duh duh duh - duh duh duh duh duh duh ...

    Hmmmmm ....

    Just doesn't seem to work that way.

    Here, this'll be better! (Attached)

    That was perfect!

  • RE: Show MVP Status on forum posts

    RBarryYoung (4/8/2009)


    EdVassie (4/8/2009)


    This would show to new users to SQLServerCentral that advice given by an MVP is potentially correct and they should take notice of what is said.

    Heh....

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