Forum Replies Created

Viewing 15 posts - 2,296 through 2,310 (of 2,894 total)

  • RE: openquery worked in SQL 2005 but not in 2008

    I have answer to your question. You get the error because something is wrong!

    Don't you mind to tell us the error you getting?

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Need to avoid table spool in view

    daveriya (8/4/2011)


    if you dont want to help,dont comment

    SQLServerCentral is the highly popular forum where SQL professionals offer free help to anyone who looks for it. In order to help you,...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Text to Columns in SQL

    You need to pivot results:

    SELECT crn, [1] as CODE_POS_1,[2] as CODE_POS_2,[3] as CODE_POS_3

    ,[4] as CODE_POS_4,[5] as CODE_POS_5,[6] as CODE_POS_6,[7] as CODE_POS_7

    ,[8] as CODE_POS_8,[9] as CODE_POS_9,[10] as CODE_POS_10

    from

    (

    SELECT t.crn,...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: runing SQL that resides in a table column

    In a sample you have posted, you have separate independent select statements, so it will be no much performance difference in running:

    SET @sql = 'Select * from table1;' + 'Select...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: MERGE statement to include new column that is an identity column. Don't know how to populate.

    Have you tried to execute your code and checked the results? It does work as it is!

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: runing SQL that resides in a table column

    The answer to your first question: Yes, it is possible to run an SQL statement that is held within a column of a table?

    The answer to your last question: Yes...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: openrowset executing stored procedure with parameter that can be NULL

    It's nothing to do with how NULL values are handled...

    And the eeror you get clearly tells you that : "...object has no columns"

    It's all to do with what OpenQuery...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: very slow query

    Looks like OP has lost interest in his issue...

    May be it was caused by something absolutely unrelated to SQLServer? May be he did not hit execute button? May be he...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Instanace Info

    Simple:

    SELECT InstanceID, InstanceName, EnvironmentSpec, LastRefreshDate

    FROM TableWhereItIsStored

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: very slow query

    "very slow query" from Lucky9?

    Are you sure you have choosen the right nick? :hehe:

    I would suspect that you do insert a lot into your table? Do you have regular DB...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: What is faster, MAX() with GROUP BY, OR CTE with ROW_NUMBER()?

    Pagan DBA (8/2/2011)


    ...

    As an aside, I'm sorry but BIT(1) = 1/0 is my preferred choice to VARCHAR(1) = Y/N. This is because in spite of my efforts, I have always...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: behaviour of LEN()

    nigel. (8/2/2011)


    or

    SELECT LEN(REVERSE('1 ')) 😛

    I wanted to put this first, but it has limitation: will not work for string with trailing spaces :hehe:

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: openrowset executing stored procedure with parameter that can be NULL

    Try to add the following straight after SET NOCOUNT ON line in your dynamic opwnrowset sql:

    IF(1 = 0)

    BEGIN

    ...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Database Mail - No Message-ID in Header?

    PaulSp (8/2/2011)


    ...

    Should the Provider be receiving the Message-ID now - or could there be a further issue..? It is incumbent upon us to provide the agreed Header data -...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Conversion failed when converting from a character string to uniqueidentifier.

    mahalaxmi.k62 (8/2/2011)


    ...

    Where am i going wrong.

    The first place where you are going wrong is in ignoring of what was advised to you.

    I wil try to advise the same again:

    Please...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

Viewing 15 posts - 2,296 through 2,310 (of 2,894 total)