showing a version of my Application in result

  • Hi There..

    I have 69 SQL DB servers and every server have identical tables but on three database when I am querying the table it populating the Application version in the column compare with other database servers which running the same table (most of them have the same information in the result) not populating the Application version information in the result

    can anyone tell me why it populating the application version in the result

  • its should not include the Application version in the result.. and its hard coded so its not like someone doing it when entering the data..

  • fawad.majid (11/25/2013)


    Hi There..

    I have 69 SQL DB servers and every server have identical tables but on three database when I am querying the table it populating the Application version in the column compare with other database servers which running the same table (most of them have the same information in the result) not populating the Application version information in the result

    can anyone tell me why it populating the application version in the result

    so you are saying in three specific databases, you get an additional column of data you were not expecting?

    sounds to me like someone modified the structure of the tables in those three databases, and added the data/applciation version to the table as well.

    the Answer, if it's not obvious to you yet, is to explicitly list the desired columns

    so instead of this:

    exec sp_msForEachDB 'SELECT * FROM [?].dbo.MyTableName;'

    --do this instead

    exec sp_msForEachDB 'SELECT Column1,Column2,OtherColumns FROM [?].dbo.MyTableName;'

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • Unfortunately, there is no way to answer this question as we don't know anything about your databases, application(s), environment to be able to tell you anything. We don't have crystal balls.

  • No No!

    not additional column ... there is a column name RPTBO_HTML column in the table, in the result it getting the same data as other database are but it adding the Application version as well.. its like this

    query run and get the data from the table... and in above mentioned column not like other tables in other databases it also including this statement in the same column ... Ill post it to make it clear..

    There is other data in this column plus its adding this line which causing the problem and its not in other databases ...

    * Report results were calculated using Allscripts Professional EHR version: 10.0"

  • fawad.majid (11/25/2013)


    No No!

    not additional column ... there is a column name RPTBO_HTML column in the table, in the result it getting the same data as other database are but it adding the Application version as well.. its like this

    query run and get the data from the table... and in above mentioned column not like other tables in other databases it also including this statement in the same column ... Ill post it to make it clear..

    There is other data in this column plus its adding this line which causing the problem and its not in other databases ...

    * Report results were calculated using Allscripts Professional EHR version: 10.0"

    nope, not clear yet, at least for me.

    show us the actual query you are running.

    if you are getting DATA that doesn't match your expectations, you'll need to look at either why the data is wrong, or why your query is not gettign the "right" data...bad grouping, top 1 without order by, who knows...we'd need to see your query to help diagnose.

    *edit*:

    are you running a query in an applicaiton, or from SSMS?

    the text you quoted implies some report application named "Allscripts Professional EHR version: 10.0" " was used, and not SSMS.

    maybe the evaluation version inserts that data, but the "Professional " version does not?

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply