Forum Replies Created

Viewing 15 posts - 10,906 through 10,920 (of 15,376 total)

  • RE: Given Letter, Get Next Letter in Alphabet

    Or you could start over at 'a'.

    declare @MyChar char(1) = 'z'

    select NextLetter = case @MyChar when 'z' then 'a' else char(ascii(@MyChar) + 1) end

    Or you could add collation to make...

  • RE: RANK/TOP WITHOUT TIES

    Luis Cazares (8/29/2012)


    I tested my last solution and won't give the exact results.

    Try this instead:

    ;with MyRank (col1)

    as

    (

    select 6 union all

    select 5 union all

    select 4 union all

    select 3 union all

    select 2...

  • RE: RANK/TOP WITHOUT TIES

    Luis Cazares (8/29/2012)


    Another option:

    ;with MyRank (col1)

    as

    (

    select 5 union all

    select 4 union all

    select 3 union all

    select 2 union all

    select 1 union all

    select 1 union all

    select 1

    )

    SELECT TOP 5 col1

    FROM...

  • RE: Trace Flag Forcing All Dependancies to exist at Proc Creation?

    he said it's an unsupported flag, but doesn't know the number.

    Sounds to me like a lot of smoke blowing is going on there. 😛

  • RE: Extract 5 digit and 3 digit numerics

    Kumar SQL (8/29/2012)


    I have a table like this-

    Sno Text

    1 Batch 58701, Sub -000 .

    2 ...

  • RE: RANK/TOP WITHOUT TIES

    This is pretty simple using Row_Number. Please notice how I posted sample data to make this a lot easier for anybody else. You should do something similar in your future...

  • RE: How to copy the database from external server to my local system server through Stored Procedure

    kamasat (8/29/2012)


    Hi Sean Lange,

    Thank you for your reply.

    In my client place, to take backup of the database, in SQL server, there is an option 'Generate Scripts' which is not allowed...

  • RE: Using Sparse Columns with SELECT ... INTO

    Great question Wayne.

  • RE: How to copy the database from external server to my local system server through Stored Procedure

    kamasat (8/28/2012)


    Hi,

    I tried using the stored procedure to connect to the external server bu am unable to connect by entering the correct server name, user name and password. I don't...

  • RE: Trace output question

    mak101 (8/28/2012)


    GilaMonster (8/28/2012)


    I recommend you do not run the Profiler GUI against a busy production server. It's far more overhead than a server side trace.

    Set up a server side trace,...

  • RE: Trace output question

    mak101 (8/28/2012)


    I need to store trace output to file. Can I store output to local machine and not on server? I do have admin rights to the sql server for...

  • RE: error

    harri.reddy (8/28/2012)


    from oledb source to multitask to oledbdestionation in data flow task.

    i am getting this error on OLEDB Destination

    As others have already stated, you need to provide more details. What...

  • RE: Help With Foreign Keys

    david_a_wallace (8/28/2012)


    Thanks for your help, I'll keep on with this method of making numeric autonumber IDs instead of using things like people's names.

    The reason the ContainerTypeID is in the contact...

  • RE: Select Query

    Sean Lange (8/28/2012)


    You can also expand the table in SSMS. You can click and drag the "Columns" folder to a query window and you will have comma separated list of...

  • RE: Select Query

    You can also expand the table in SSMS. You can click and drag the "Columns" folder to a query window and you will have comma separated list of all the...

Viewing 15 posts - 10,906 through 10,920 (of 15,376 total)