Forum Replies Created

Viewing 15 posts - 1,861 through 1,875 (of 7,498 total)

  • RE: Error while creat the text file using SQL server 2005

    - can you elaborate on what you are actually trying to accomplish ?

    - why are you using xp_cmdshell ?

    - why aren't you using sqlcmd or bcp ? (maybe even just...

  • RE: Merge queries

    hoanglong88i (7/18/2011)


    Yes, thanks Mark. Its what I need, just remove the parameter 'ReceivedDate'.

    Place_ID AllAvai Today Tomorrow

    1201

    2211

    3000

    4000

    Hi Alzdba,

    I'm taking time on functions DATEADD and DATEDIFF. Yes, really I also feel my...

  • RE: Service broker

    have a look at my little SSB troubleshooting script 😉

    "Troubleshooting Service Broker (SSB)"[/url]

  • RE: Merge queries

    How about this:

    SELECT Place_ID

    , ReceivedDate

    , COUNT( case when ReceivedDate >= DATEADD(DD, DATEDIFF(dd,0, GETDATE()) ,0)

    ...

  • RE: Mirroring and Back-up strategy

    The log backups is a must to keep control over the log file size.

    Managing Transaction Logs by Gail Shaw[/url]

    and

    Why is my transaction log full?[/url]

  • RE: Create View- T-SQL Syntax error

    SQLkiwi (7/16/2011)


    I normally write such stubs the other way around, to avoid all that tedious messing about with quotes in the view definition:

    ...

    +1 because of the lack of 'create...

  • RE: Are the posted questions getting worse?

    edited: Almost posted code in The Thread .:blush:

    For those interested ...

    Just in case anyone could use a little hand slipstreaming SP1 into his SQL2008R2 ... 😀

    and SSC doesn't have a...

  • RE: Records from yesterday if not monday

    As already stated by Jayanth_Kurup those numbers depend on the datefirst parameter of your instance !

    Doublecheck it.

    Also have a look at the second query I provided, it will return the...

  • RE: Restoring From Backup

    Mind me tossing in my all time favorit when it comes to what the log is all about and why your choice of recovery model matters ?

    - Managing Transaction Logs[/url]

    and

    -...

  • RE: MAX vs TOP question

    Since we're at it, can you convert your scalar value function to a table value funtion.

    That should give you a noticable performance gain, but requires query modifications !

  • RE: Check Database Integrity uisng maintenance

    can you relate your case with this SP1 fix ?

    649391 DBCC corruption errors occur during SQL Server 2008 R2 collations when strings that have Jamo sequences that follow the Japanese...

  • RE: Check Database Integrity uisng maintenance

    check your maintenance plan log output (and sqlserver errorlog)

  • RE: Check Database Integrity uisng maintenance

    it states:

    The owner (WIN-69WL56MFLQH\Administrator) of job Integrity Checks.Subplan_1 does not have server access.

    Change the job owner to SA !

    ( this would be the only case one uses sa with sqlserver...

  • RE: Are the posted questions getting worse?

    Jim Murphy (7/14/2011)


    Koen Verbeeck (7/14/2011)


    Koen Verbeeck (7/13/2011)


    Gianluca Sartori (7/13/2011)


    Crystal ball needed here. I forgot mine at home. 😀

    I handed him "a" solution. And that he doesn't complain, he got *exactly*...

  • RE: Records from yesterday if not monday

    just to add to the replies ...

    1) of course. Your operator is ">=" !

    You should alter it with a ">=" and "<" ( between can have issues...

Viewing 15 posts - 1,861 through 1,875 (of 7,498 total)