Forum Replies Created

Viewing 15 posts - 1,126 through 1,140 (of 1,166 total)

  • RE: Exporting From 2005, importing into 2000

    Can you post BCP format file?

     

    MohammedU
    Microsoft SQL Server MVP

  • RE: Problem with Create Database syntax

    When you drop the database sql will also drop the associated file in most of the time...

    You can make use xp_fileexist procedure to check file existence...

     

    MohammedU
    Microsoft SQL Server MVP

  • RE: execution of JOB steps

    I believe you are using sp_delete_job job in step to delete "report queue" job in step2.

    Does user who is executing the another procedure to run report queue job has the...

    MohammedU
    Microsoft SQL Server MVP

  • RE: Converting Database into XML File

    I never did like this...

    But you can use FOR XML cluase to save the data in xml format...

    MohammedU
    Microsoft SQL Server MVP

  • RE: Large delete statement problem

    I am purging the data from highly OLTP tables... some of my tables are accessed and inserted and updated by users all the time...

    I use the following method...

    1. Created the...

    MohammedU
    Microsoft SQL Server MVP

  • RE: Optimization job causing timeouts

    Main issue with your maintenance plan is Reorganize pages will Cause the indexes on the tables in the database to be dropped and re-created with the original FILLFACTOR that was...

    MohammedU
    Microsoft SQL Server MVP

  • RE: Renaming a file with Cmdshell

    Your script should work without any problem but....

    You are trying to rename .ldf file which is data base log file... if I am not mistaken...

    You can rename the file while...

    MohammedU
    Microsoft SQL Server MVP

  • RE: DTS Access Permission

    There is no option to hide few dts packages from one user and the few from other...

    You can hide everything or not...

    Execute permissions can be granted in a different way...

    MohammedU
    Microsoft SQL Server MVP

  • RE: DTS question SQL 2000

    Open the transformation task (the black arrow) properties. 

    On the last tab (Options) ...

    Check the "use fast load" checkbox. 

    UnCheck the "Check Constrainst" checkbox.

    Check the "Enable Identity Insert" check box...

    MohammedU
    Microsoft SQL Server MVP

  • RE: Random Select Query

    I believe you should use "ORDER BY NEWID() " in inner query to get the unique rows ...not the outer query to get the unique rows...

     

    MohammedU
    Microsoft SQL Server MVP

  • RE: Corrupt Database - Can''''t attach - Any third party tools?

    I don't think there any solution to resolve torn page error other than restoring the db from previous good backup.

    OR

    Put the db in engency mode and take the data out...

    MohammedU
    Microsoft SQL Server MVP

  • RE: Table valued functions - can the table definition differ based on parameters?

    I don't think it is possible.

    MohammedU
    Microsoft SQL Server MVP

  • RE: Stored procedure fails, but QA works

    Does Login used in VB to execute the procedure has the procedure execute permissions?

    1. While executing the procedure through VB, run sql trace to with ERRORS and BATCH STARTING and BATCH COMPLETED...

    MohammedU
    Microsoft SQL Server MVP

  • RE: Random Select Query

    Try this..

    SELECT  JokeID,

    JokeCatID,

    JokeTitle,

    JokeDesc,

    UserID

    from (

    SELECT DISTINCT top 5 JokeID,

    JokeCatID,

    JokeTitle,

    JokeDesc,

    UserID,

    newid()

    FROM jokes

    WHERE JokeCatID = SomeNumber

    ORDER BY NEWID()

    ) a

    order by JokeID

     

    MohammedU
    Microsoft SQL Server MVP

  • RE: How to audit who read what tables and rows and when

    For high OLTP server profiler may cause performance issues when you are auding all calls, So As Steve advised use SQL trace using the procedures... and save the trace data...

    MohammedU
    Microsoft SQL Server MVP

Viewing 15 posts - 1,126 through 1,140 (of 1,166 total)