Forum Replies Created

Viewing 15 posts - 1 through 15 (of 61 total)

  • RE: Table Space Not Reclaimed

    I had shrunk the database after the delete but take no effect. As long as I know, shrink database only can be done when the the free spaces more than...



    Regards,
    kokyan

  • RE: Stripping the time value from datetime

    Dear Rebecca Starr,

    Very easy!

    Inside the instead of insert trigger, put this lines inside:

    SET @DATE = CONVERT(VARCHAR(8), getdate(), 112)

    Insert the date with value...



    Regards,
    kokyan

  • RE: Export datedata to text file

    Hi Loi Tan Vo,

    Try to use bcp (bulk copy). Refer to BOL for the syntacs and options (including in CSV or other...



    Regards,
    kokyan

  • RE: Issue with Index?

    myself,

    If you really can't avoid in using variable to query, i suggest to use sp_executesql instead of direct query. Ian is correct. When you are using variable in the select...



    Regards,
    kokyan

  • RE: Stored Procedures

    For maintainable purpose, you can separate the action to three "class", such as insert, update and delete called by a "super-class". For example,

    CREATE...



    Regards,
    kokyan

  • RE: Export datedata to text file

    Easy and clean cut. Just modify a bit of your query like below:

    SELECT CONVERT(VARCHAR, mydate, 105) AS MYNEWDATE FROM TBL1



    Regards,
    kokyan

  • RE: Restore to a different database

    May I know what is logical file name? Is it used to point to the physical file path as alias.



    Regards,
    kokyan

  • RE: xp_cmdshell & UNC

    Only users with sysAdmin rights can execute xp_cmdshell from the database or job. Another method is create a windows ID and register it as a domain user and then use...



    Regards,
    kokyan

  • RE: Month end date

    Thank you. I prefer David Burrows method - neat!



    Regards,
    kokyan

  • Viewing 15 posts - 1 through 15 (of 61 total)