Forum Replies Created

Viewing 15 posts - 481 through 495 (of 3,221 total)

  • RE: I am using temporay tables instead of table variables and cte in stored procedure would this be ok if 2000 users run the same stored procedure at the same time

    CREATE TABLE #Yaks (

    YakID int,

    YakName char(30) )

    select name

    from tempdb..sysobjects

    where name like '#yak%'

    Read this:

    http://www.sqlteam.com/article/temporary-tables

    Now I ran the code from the above, using two separate connections and this was my results:

    #Yaks___________________________________________000000000035

    #Yaks___________________________________________000000000033

    So...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: LEN function

    Here this works for me.

    SELECT Name,REVERSE(right(REVERSE(Name),12)) from sys.databases

    model model

    msdb ...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: LEN function

    Tara-1044200 (4/29/2012)


    Not sure if understood you guys correctly ?

    It depends

    I used a table to illustrate what could/would happen when using just the LEN function. Please review what I...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: How to Test Triggers ?

    For triggers read this.

    http://msdn.microsoft.com/en-us/library/ms189799.aspx

    2) Can you delete a parent table record if there is a child table record exits ? How ?

    Suggest you use google to search for "Cascade delete"

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: LEN function

    Phil Parkin (4/29/2012)


    Here is a sample: I guessed what Tara-1044200 was attempting to do.

    Indeed & a fair guess. But her post immediately after your suggestion seemed to indicate that things...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: LEN function

    Phil Parkin Posted Today @ 1:29 PM

    Now perhaps you would post your code which proves it does not?

    Here is a sample: I guessed what Tara-1044200 was attempting to...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: LEN function

    This may be your problem

    CREATE TABLE #T (Name1 VARCHAR(20))

    INSERT INTO #T

    SELECT 'ABCDEFGHIJKLMNOP' UNION ALL

    SELECT 'ABCDEFGHIJKL' UNION ALL --12 characters

    SELECT 'XYZ'

    SELECT DATALENGTH(Name1) AS 'Datalenth' FROM #T

    Returned:

    Datalength

    16

    12

    3

    For the two shorter entries...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Generating Test Data: Part 2 - Generating Sequential and Random Dates

    Jeff Moden (4/26/2012)


    TheSQLGuru (4/25/2012)


    Hey Jeff, can you put a downloadable file with the relevant operational code parts of the post? Thanks in advance, and wonderful stuff as always!

    If I...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Licensing

    Nice simple/easy question to start the week ...........THANKS

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: It is possible to convert Sql 2000 to 2008

    Microsoft has available (for free) Upgrade Advisor software which you can run before attempting the upgrade... it will advise you of most problems which you might encounter.

    http://www.microsoft.com/en-us/download/details.aspx?id=11455

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Are the posted questions getting worse?

    WayneS (4/27/2012)


    Well, I see that Steve is catching up from being in England... I have an article and a QotD being published on 5/10. ...

    For those that would like a...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Are the posted questions getting worse?

    Steve Jones - SSC Editor (4/26/2012)


    Current QOD status. I have them scheduled through May 9, plus a few random days out past that, but I also have 16 submitted right...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Can you restore a 2008 DB to 2005?

    Alas and alack, a day late and a dollar short, but I ran across this article today, and it might be what is needed.

    http://www.mssqltips.com/sqlservertip/2676/export-data-to-an-earlier-sql-server-version/?utm_source=dailynewsletter&utm_medium=email&utm_content=text&utm_campaign=2012424

    The author is: By: K. Brian...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Remove trailing space from a field

    SceloM (4/25/2012)


    Thanks,

    So having a check for char(9), char(10) and char(13) should cover me for the spaces?

    I have implemented the function on my full query and seems to be working...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Remove trailing space from a field

    Here is a general method to determine what that last character is.

    [DECLARE @A2 VARCHAR(50)

    SET @A2 = 'GAUTENG EAST 1'

    --The @A2 has a horizontal tab as the last...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

Viewing 15 posts - 481 through 495 (of 3,221 total)