Forum Replies Created

Viewing 15 posts - 10,441 through 10,455 (of 15,381 total)

  • RE: Troubling SQL Query

    waqqas.zia (10/9/2012)


    Thanks for the reply Sean,

    Unfortunately due to data protection issues im unable to post any of my data or even samples of...

    i have however found a work around,

    Thanks...

  • RE: is it Okey to use.... ORDER BY while creating View???

    No it doesn't depend. It may appear to be ordered correctly right now but there is no guarantee it will always be in the correct order. If you want ordered...

  • RE: Troubling SQL Query

    Can you post ddl (create table scritps), sample data (insert statements) and desired output based on your sample data? I think once we can see the problem and have something...

  • RE: Is it the same (nolock) and with(nolock)

    jocast (10/9/2012)


    In a query is it the same

    select * from customers (nolock)

    and

    select * from customers with(nolock)

    is the word "width" necessary?

    Better yet, remove it entirely. It is not a magic...

  • RE: Recursive function - sql2008

    Your data structure for this is going to cause you nothing but grief. How do you know what the "root" of the task is?

    This is a running total type of...

  • RE: is it Okey to use.... ORDER BY while creating View???

    Ahmed_07 (10/9/2012)


    okay hear me out... first 🙂

    I Wanted to create a view with Order By clause so that the view to be ORDERED when I 'll use SELECT * query...

  • RE: Unable to update SQL Server database through code

    As previously suggested you should run a trace to see what actually hits your server.

    Also, you did such a great job protecting yourself from sql injection EXCEPT for the querystring....

  • RE: update table with next value

    ronan.healy (10/9/2012)


    still getting this error

    Msg 208, Level 16, State 1, Line 1

    Invalid object name 'IRBT2'.

    Is that a table? In your original post you did not mention that table.

    And fwiw you...

  • RE: Website can't connect. 500 error

    Oh holy cow of embarrassment....You are on a 64bit machine and trying to setup a DSN to a 32bit machine right? The DSN utility on a 64bit machine creates a...

  • RE: help me in selecting two rows

    vinay.varaala (10/8/2012)


    leave about that

    in below query how to pick up only product code 'C'

    select 1, 'UNLEADED', 'ABD00C', 'C', 'ULOOPPM', 5532.00 union all

    select 2, 'UNLEADED', 'ABD00H', 'H', 'ULOOPPM',...

  • RE: Grand total help

    Is this a report? If so, a calculated field would be easier.

    If not, there are a few ways to deal with this. They all involve the basic premise of:

    select...

  • RE: help me in selecting two rows

    vinay.varaala (10/8/2012)


    I had one more table called Cost_PID in that one column having Cost I joined this with Product.

    SELECT

    p.Prd_ID,

    p.[Product_name]

    ...

  • RE: help me in selecting two rows

    vinay.varaala (10/8/2012)


    alright

    I will explain it clearly from that first table unleaded product I want to sum up based on codetype like c,h and l.

    output should be in 3...

  • RE: Interesting Sql protocol issue around calling stored procedure with select and update

    Yes at that point all the data is on the client. Run a trace while running that code. It will not run a new query when you read the next...

  • RE: Translate rows in columns

    Hi and welcome to SSC. What you have posted as desired output looks more like a report then the results of query. You have column group headers and column names....

Viewing 15 posts - 10,441 through 10,455 (of 15,381 total)