Forum Replies Created

Viewing 15 posts - 1,021 through 1,035 (of 1,409 total)

  • RE: join tabel

    xmanletoy (6/27/2013)


    i'm sorry master...but it said

    Msg 1033, Level 15, State 1, Line 13

    The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions, unless...

  • RE: Data copy

    To transfer data you can use BCP or SSIS (create from scratch or use import/export wizard from SSMS). These perform real good. Keep in mind the key-relations between the tables...

  • RE: Login failed for user

    Again: what is the message in the SQL Server log of the instance you're connecting to? Even if the login failes not all the times, you should be able to...

  • RE: Query improvement

    Krishna1 (6/27/2013)


    But if you see my query it has got differnt where clasues for the 2 query hence can not use roll up.

    I overlooked that the WHERE clause is different....

  • RE: Transaction log growing huge if DB is in simple recovery model

    You could shrink the LOG file when this has grown by a large one-time action. But if this (kind of) action is periodically recurring the LOG will grow back to...

  • RE: sp to move data between matching tables

    Create a linked server connection and use a

    SELECT ... INTO {linkedserver}.[{database}]..[{table}] FROM [{database}]..[{table}] WHERE statusflag = 0

    Update the statusflag on the source table after the insert (perhaps include an inner...

  • RE: Reporting Services: Please help

    Change the current schedule to match the execution times the reports needs to run. Create multiple schedules if you won't be able to solve it with just one schedule.

  • RE: Issue with triggers following migration

    There could be several options you should check. I'm not sure if all options I list below are required/related nor if the list is complete because I've never dealed with...

  • RE: Login failed for user

    Look in the SQL Server log of the instance you're trying to connect to. There should be a bit more specific error message, including a "severity" and "state". Depending on...

  • RE: money datatype

    A value is nothing more then that; just a value. This is also applicable to currency. Every amount in currency just represents a decimal value independent of the currency.

    Your application...

  • RE: Data copy

    It depends on your "dodgy" data. Why is your data 'dodgy'?

    One option is to drop the keys on the target, insert all data and recreate the keys. Perhaps a better...

  • RE: Query improvement

    Krishna1 (6/26/2013)


    What i wanted was like cube or rollup is there a way to make single query rather than union

    These functions are available in SQL Server (2008+). Take a look...

  • RE: Split total into specified intervals.

    Add a rownumber to your resultset. Create the blocks of the resultset with the values in your interval table:

    SELECT

    ...

    WHERE {rownumber} > (SELECT low_value FROM interval_table)

    AND {rownumber} <= (SELECT high_value FROM...

  • RE: join tabel

    If you just want to combine the results of all three queries to one single result, you'll can use UNION ALL to put the three queries together. Make sure all...

Viewing 15 posts - 1,021 through 1,035 (of 1,409 total)