Forum Replies Created

Viewing 15 posts - 46 through 60 (of 69 total)

  • RE: sproc Recompile issue.

    This sproc was pushed to the back burner until now. Now that it is resolved on my end, I just wanted to update the post with the solution I used....

  • RE: SQL Server login access rights

    There is no harm in using it. I've been using that sproc (and the sp_MSForEachTable) for quite a long time with out any problems. But officially MS doesnt support it....

  • RE: SQL Server login access rights

    My bad!!

    There is line in there that says

    and name like ''tester''

    you have to comment out that specific line, replace it with

    /*and name like ''tester'' */

    This like of...

  • RE: SQL Server login access rights

    Two things:

    1. The script (2nd) was not giving the db name earlier, so had to make a small edit to the script. I wonder if you have picked...

  • RE: SQL Server login access rights

    Actually, here is the complete script for all the databases.

    IF EXISTS (SELECT TOP 1 *

    FROM Tempdb.sys.objects...

  • RE: SQL Server login access rights

    I got this below code from sp_helpuser sproc.

    This will server your purpose, but you will have to run it on each db seperately.

    you can try using "sp_MSForEachdb" sproc...

  • RE: SQL Server login access rights

    you can use sp_helpuser

    exec sp_helpuser 'tester'

    results:

    UserName GroupName LoginName DefDBNameDefSchemaNameUserIDSID

    tester db_datareader NULL ...

  • RE: Can we Attach database files with out detaching?

    Actual database files are organized on D:,E:,F:,G:

    And this crash occured due to multiple power failures. Which makes me think that its the boot sector thats corrupt.

    I was thinking that...

  • RE: Not able Restore a Differential backup.

    Thank you Lynn.. It worked beautifully...

    🙂

  • RE: Not able Restore a Differential backup.

    🙁

    Tested that and realized...

    Thanks tho..

  • RE: Not able Restore a Differential backup.

    Thanks Lynn, I will try that!!

    Also, Since i already have restored the Full backup can't I do,

    RESTORE DATABASE [db1]

    NOUNLOAD, NORECOVERY;

    and then restore the Differential

    Will try both and...

  • RE:

    If you have figured out a way to come here with out clicking on the post name(which is blank). I think u have some patience.

    Apologise for double posting, but...

  • RE: sproc Recompile issue.

    Thanks Paul!!

    I will test it using the permanent tables.

    At this point I think it has to do with the Parameter Sniffing. For this reason (i think), the SQL server...

  • RE: sproc Recompile issue.

    First execute everything from query analyser or development studio that rules out any effects of the ado or ado.net layer you that's what you are using.

    I tried this, it takes...

  • RE: sproc Recompile issue.

    Thanks for the response Mohammed!!

    I tried the WITH RECOMPILE option, with no effect.

    Also, SP_Recompile will recompile the sproc once, in effect doing what With Recompile option is doing...

Viewing 15 posts - 46 through 60 (of 69 total)