Forum Replies Created

Viewing 15 posts - 6,826 through 6,840 (of 13,469 total)

  • RE: Stored Procedure Does not exist, what yes it does

    Carlton Leach (9/6/2011)


    Does the dbo schema own the stored proc?

    Carlton..

    I was thinking along the same lines...it might not be owned by dbo:

    select

    schema_name(schema_id) as SchemaName,

    name...

  • RE: Login failure

    the default database assigned to the login CORP\shilpa was dropped; change it to master adn try to log in again.

  • RE: Restore the Database ask Username and Password

    you can't.

    once a person connects to SQL server, additional verifications are not possible from SSMS.

    So if they have permissions to perform a a backup or a restore, you can't make...

  • RE: Looking for help taking the RBAR from this problem

    how does a row number example perform?

    SELECT

    Server_Id,

    Data_Timestamp

    FROM

    (SELECT

    ROW_NUMBER() OVER (PARTITION BY Server_Id ORDER BY Data_Timestamp DESC) AS RW,

    ...

  • RE: Invalid-object-name-mytemptable

    just a copy paste error...you left the column name attached to teh table name:

    Insert into #FullDataGrid

    Select '', createdtotal,'','',''

    from #datecreated

    INNER JOIN #DateCreated.CreatedDate

    on #MasterDate.Date = #DateCreated.CreatedDate;

  • RE: how rollback works in sql server?

    wow...changing that setting that i posted the screenshot of is SUCH a bad idea in SQL server.

    testing that, i updated one row in a table, and saw i got...

  • RE: update the date field in a table after each update

    to follow up on what Pablo said, here's a simple example:

    CREATE TABLE WHATEVER(

    WHATEVERID INT IDENTITY(1,1) NOT NULL PRIMARY KEY,

    DESCRIP VARCHAR(30)

    )

    INSERT INTO WHATEVER(DESCRIP)

    SELECT 'APPLES' UNION

    SELECT 'ORANGES'...

  • RE: Table backup

    even a filegroup backup might not be all you need; if all the tables are backup up in a file group, and then a change occurs to one of them,...

  • RE: Table backup

    just the methods you probably already know:

    SELECT INTO MyTABLE_bak FROM MyTABLE, or if you want to put them in a different database, SELECT INTO SELECT INTO SpecialDatabase.dbo.MyTABLE_bak FROM...

  • RE: Large Comment Blocks Causing Issues

    well i found a post stating the obvious: adding debug stuff like PRINT statements would slow down a proc, and forgetting to sue using SET NOCOUNT ON to avoid extra...

  • RE: Large Comment Blocks Causing Issues

    David Paskiet (9/2/2011)


    As I remember the article, that is the root of the problem. Due to the large block, the compiler/execution plan cant do it's thing properly. so...

  • RE: Large Comment Blocks Causing Issues

    can you get an execution plans of the same proc with and without the huge comment blocks? that would be where i'd look first, i think...there's GOt to be ...

  • RE: Large Comment Blocks Causing Issues

    comments are ignored by SQL server completely...it's much more likely that because you edited the procedure, it was recompiled,a nd the recompilation made a better plan, which executes faster than...

  • RE: Can you Update Multiple Views in one go?

    paul88 (9/2/2011)


    Cheers Lowell, that allowed me to do it a good bit quicker than manually changing each one, thanks

    glad i could help!

    you can try to get fancy, and do something...

  • RE: Please help analyzing MS SQL Database Logfile(s)

    erkan.erbil (9/2/2011)


    On 08/31/2011 between 13:00 - 14:00 o clock on PROD Servicemanager DB data in Tables XXXXXXM1 / XXXXXXM2 were deleted. We don't know how and by whom.

    Appserver Logs showed...

Viewing 15 posts - 6,826 through 6,840 (of 13,469 total)