Forum Replies Created

Viewing 15 posts - 9,061 through 9,075 (of 15,381 total)

  • RE: interesting query

    AllanP999 (3/14/2013)


    Great I now have the solution. Many thanks to you all.

    Which one did you use or was it a combination? It would be great if you would share what...

  • RE: How to Pivot table?

    vanapandi (3/15/2013)


    i want to show sales details by daily basis and sum of Qty.

    So do you only want to show columns for days? What happens when you have more than...

  • RE: DateDiff help to verify my code is correct or not?

    Dhananjay - did the example and explanation Lynn posted help you understand? The problem with datediff is calculates differences on a boundary. The results is how many of those boundaries...

  • RE: looping thru views

    Jeff Moden (3/14/2013)


    Alan.B (3/7/2013)


    Cursors, loops and dSQL fall under the last choice column but this is one of those cases...

    For tables you would do this:

    EXEC sp_MSforeachtable'SELECT TOP 1...

  • RE: DateDiff help to verify my code is correct or not?

    Lynn Pettis (3/14/2013)


    Sean Lange (3/14/2013)


    I haven't seen all the other threads but from what you posted I can't figure out why you are using DATEDIFF at all. It doesn't meet...

  • RE: union two tables with different columns.

    seshagirikudaravalli (3/14/2013)


    I have one current table and one history table. current table has three additional columns. Is it possible to join these two tables using union statement. I can not...

  • RE: What needs to consider when adding a password to the table

    Yes if there is no natural key you should add something like an identity column and make that your primary key.

  • RE: DateDiff help to verify my code is correct or not?

    I haven't seen all the other threads but from what you posted I can't figure out why you are using DATEDIFF at all. It doesn't meet your requirements and it...

  • RE: Need Help with DateDiff function

    duplicate post. Please direct all replies here. http://www.sqlservercentral.com/Forums/Topic1431270-392-1.aspx

  • RE: Capture Data Change

    Bobby Glover (3/14/2013)


    Thanks. Not using sa from the APP. Only when I update via SSMS it captures as sa.

    Gotcha. Change the user you login to SSMS with your captured data...

  • RE: looping thru views

    kevaburg (3/14/2013)


    Oooooops! It would appear I am talking out of holes normally reserved for other purposes!

    That is exactly the procedure I saw but I didn't read it...

  • RE: Capture Data Change

    Bobby Glover (3/14/2013)


    I'm trying to use CDC for auditing certain tables, the problem I find is it doesn't capture the user.

    I have tried using Default Constraints SUSNAME_USER and adding an...

  • RE: looping thru views

    Alan.B (3/14/2013)


    kevaburg (3/14/2013)


    What about using:

    exec sp_MSforeachview 'select top 1 from ?'

    That is not a stored proc that comes from SQL Server. If you can run this:

    exec sp_MSforeachview 'select top 1...

  • RE: Query Help

    Definitely need to provide more details. I would highly recommend that you use aliases in your queries. Your table names are very long and not terribly user friendly. I took...

  • RE: how to split the days between two month

    rifayeem (3/14/2013)


    in my webpage,if i select the month january,,it will call the query and retrive as 6days in the month of january,the remaining 3days will be retrived in the month...

Viewing 15 posts - 9,061 through 9,075 (of 15,381 total)