Forum Replies Created

Viewing 15 posts - 1 through 15 (of 22 total)

  • RE: Searching (_) underscore in a Column

    Hi GSquared,

    Could you please tell me how to use square braces.

    Thanks

    "I Love Walking In The Rain So No One Can See Me Crying ! " ~ Charlie Chaplin

  • RE: Query to bring top latest record

    In addition to fraggle's solution, in case if you need the latest date inserted with respect to name considering the dates could be random instead of descending then the following...

    "I Love Walking In The Rain So No One Can See Me Crying ! " ~ Charlie Chaplin

  • RE: Unused Procedures and tables

    Thanks everyone.

    "I Love Walking In The Rain So No One Can See Me Crying ! " ~ Charlie Chaplin

  • RE: Convert alphanumeric to BigInt

    Oops,

    Forget to add the script of how the function is used on the table to get the required data.

    SELECT * FROM #Temp

    UPDATE #Temp SET Output = dbo.ufn_ExtractNumbersFromText(3,Data)

    SELECT * FROM #Temp

    Thanks

    "I Love Walking In The Rain So No One Can See Me Crying ! " ~ Charlie Chaplin

  • RE: Convert alphanumeric to BigInt

    Jeff,

    I have used your script both in UDF and as a query. But the problem is when the table records exceeds 10000, there is a performance issue. It takes more...

    "I Love Walking In The Rain So No One Can See Me Crying ! " ~ Charlie Chaplin

  • RE: TempDB and User DBs

    Fine .. Lemme check with that..

    Thanks

    "I Love Walking In The Rain So No One Can See Me Crying ! " ~ Charlie Chaplin

  • RE: TempDB and User DBs

    "You could query sys.tables in tempdb, but that isn't going to tell you what process created the table(s). " ..

    This is what i need that you have mentioned .....

    "I Love Walking In The Rain So No One Can See Me Crying ! " ~ Charlie Chaplin

  • RE: Nested Procs Or Single Proc

    Thanks

    "I Love Walking In The Rain So No One Can See Me Crying ! " ~ Charlie Chaplin

  • RE: Comparison Between LinQ and NHibernate

    Thanks. But could you be more precise?

    "I Love Walking In The Rain So No One Can See Me Crying ! " ~ Charlie Chaplin

  • RE: PLz help in developing this queryy...

    Hi nagesh,

    The solution you have specified wont work as it gets only the last row data and appends to your local variable.

    That is for the example provided by ashy,

    declare...

    "I Love Walking In The Rain So No One Can See Me Crying ! " ~ Charlie Chaplin

  • RE: PLz help in developing this queryy...

    I believe this might help..

    DECLARE @tbTemp TABLE(VCH VARCHAR(50))

    DECLARE @vchOutput VARCHAR(MAX)

    SET @vchOutput= ''

    INSERT INTO @tbTemp SELECT 'T'

    INSERT INTO @tbTemp SELECT 'E'

    INSERT INTO @tbTemp SELECT 'S'

    INSERT INTO @tbTemp SELECT 'T'

    UPDATE

    @tbTemp

    SET

    ...

    "I Love Walking In The Rain So No One Can See Me Crying ! " ~ Charlie Chaplin

  • RE: Conversion failed when converting the varchar int

    Hi,

    I have considered an example for your problem.

    DECLARE @vchTemp VARCHAR(10)

    SET @vchTemp = '2.6'

    SELECT CAST(CAST(@vchTemp AS NUMERIC(18,4)) AS INT)

    -- Output : 2

    SELECT CAST(CAST(@vchTemp AS DECIMAL) AS INT)

    -- Output : 3

    You can...

    "I Love Walking In The Rain So No One Can See Me Crying ! " ~ Charlie Chaplin

  • RE: how can i solve this problem?

    Can you give me a sample output of how the result should appear after querying your table.

    -------------------------------------------------------------------------

    To know how to ask questions and increase the chances of getting asnwers:

    http://www.sqlservercentral.com/articles/Best+Practices/61537/

    "I Love Walking In The Rain So No One Can See Me Crying ! " ~ Charlie Chaplin

  • RE: Lock table

    To avoid deletion from child table you need give restrict delete in table properties as per the role. Like, You need add the existing role in the permissions section of...

    "I Love Walking In The Rain So No One Can See Me Crying ! " ~ Charlie Chaplin

  • RE: SQL-Server 2005: Change Ordinal Column Position

    Hi,

    you can drop and create table the tblTest with backup of records.

    1. Generate create script of the tblTest with latest modifications.

    2. create a temp table (should be the old structure...

    "I Love Walking In The Rain So No One Can See Me Crying ! " ~ Charlie Chaplin

Viewing 15 posts - 1 through 15 (of 22 total)