Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)

  • RE: Phone number formatting

    SELECT SUBSTRING(phonenumber,1,charindex('.',phoneNumber)-1) from table

  • RE: Reading xml string

    DRAFT

  • RE: DAteDifference problem in SQL

    How to rewrite this block in Oracle?.

  • RE: AdventureWorks DataBase

    [font="Comic Sans MS"]AdventureWorksDB.msi source code, 28053K, uploaded May 8 2007 - 292342 downloads

    AdventureWorksDBCI.msi source code, 29177K, uploaded May 8 2007 - 41144 downloads

    AdventureWorksBI.msi source code, 7393K,...

  • RE: Dynamic Query

    Thanx Chris.

    But my Problem is slightly Complex.What will be stored in strquery

    is a large dynamic query with many conditions.So Please suggest

    a way to directly use StrQuery if at all...

  • RE: Dynamic Query

    Create Table #employee

    (

    Empid int,

    Employee varchar(20)

    )

    Create Table #employee1

    (

    Empid int,

    Employee varchar(20)

    )

    Insert into #Employee values('1','Sirish')

    Insert into #Employee values('2','Sateesh')

    Declare @Strquery varchar(100)

    SET @StrQuery='Select Empid,Employee from #Employee'

    EXEC('INSERT INTO #employee1 (Empid,Employee) SELECT ''+@Strquery+''')

    Select * from #Employee1

    Getting Some...

  • RE: How to Identify in how many Storedprocedures hasa sp been called?

    After little bit of google search i came up with the following....

    SELECT Name

    FROM sys.procedures

    WHERE OBJECT_DEFINITION(object_id) LIKE '%SPname%'

    UNION

    SELECT Name...

  • RE: Question

    declare @name varchar(50)

    set @name = 'Smith,Fred,John,J.Smith,Ann,Mary,Ken,Ted,quen,Kin'

    What about separating more names?

    Will the same query work?

Viewing 8 posts - 1 through 8 (of 8 total)