Forum Replies Created

Viewing 15 posts - 76 through 90 (of 362 total)

  • RE: Print pop up is not popping up

    [font="Verdana"]Hi Jack,

    I am facing this problem in SQL Server 2005 as well as in SQL Server 2008. Please let me know if you have any idea on this.

    Thanks,

    Mahesh[/font]

  • RE: custom sequence generator

    [font="Verdana"]Yes Jeff, I have noted that. Any ways Thanks 🙂

    Mahesh[/font]

  • RE: custom sequence generator

    [font="Verdana"]Try this.

    Create Table dbo.SeqNum

    (

    AccountNbrInt

    ,CreateDateDateTime

    )

    Go

    Insert Into dbo.SeqNum

    Select 59961, '01/05/2009' Union All

    Select 59961, '01/06/2009' Union All

    Select 59961, '01/07/2009' Union All

    Select 32187, '01/05/2009' Union All

    Select 32187, '01/06/2009' Union All

    Select 22195, '01/10/2009' Union All

    Select...

  • RE: DTS Package Error

    [font="Verdana"]Thanks Greg. I have missed to rename the Task but the step. So the conflict was. Anyways. thanks again.

    Mahesh[/font]

  • RE: Update statement in a parameterized stored procedure

    [font="Verdana"]You have to use Dynamic SQL in SProc, shown below

    Create Proc dbo.usp_Update

    (

    @table VarChar(25)

    ,@param1 VarChar(25)

    ,@param2 VarChar(25)

    )

    As

    Begin

    Begin Tran

    ...

  • RE: Insert Statement taking too long

    [font="Verdana"]First execute the select statement separately with execution plan on. Find out where query is taking too much time to execute. Fix it and then try to insert.

    Mahesh

    [/font]

  • RE: Is it possible to call a Stored Procedure in a SELECT statement?

    [font="Verdana"]Absolutely it is not possible. Instead user User defined function[UDF]. You can call UDF in select statement.

    Mahesh[/font]

  • RE: What is "query correlation"

    [font="Verdana"]

    GilaMonster (2/11/2009)


    Mahesh Bote (2/11/2009)


    [font="Verdana"]When Inner query is joined with Outer query, it is called co-related query. and the relation is called as query co-relation[/font]

    Only when the inner query contains a...

  • RE: Calling Stored procedure at specific time

    [font="Verdana"]This can be done through Job Scheduling. The same discussion can be found @ http://www.sqlservercentral.com/Forums/Topic653497-145-1.aspxHowever I am totally agree with Lowell.

    Let us know the complete details.

    Mahesh[/font]

  • RE: What is "query correlation"

    [font="Verdana"]When Inner query is joined with Outer query, it is called co-related query. and the relation is called as query co-relation

    Mahesh[/font]

  • RE: Convert rows in columns

    [font="Verdana"]

    Vijaya Kadiyala (2/6/2009)


    HI Mahesh,

    You have provided partial solution, i.e. converting rows into Columns. But his requirement is slightly different. i.e Convert a Column which contains concatenated string into multiple columns....

  • RE: Convert rows in columns

    [font="Verdana"] simple example for PIVOT:

    CREATE TABLE #temp123

    (

    Country varchar(15),

    Variable varchar(20),

    VaribleValue int

    )

    Go

    INSERT INTO #temp123 VALUES ('North America','Sales',2000000)

    INSERT INTO #temp123 VALUES ('North America','Expenses',1250000)

    INSERT INTO #temp123 VALUES ('North America','Taxes',250000)

    INSERT INTO #temp123 VALUES ('North America','Profit',500000)

    INSERT...

  • RE: Roll back

    [font="Verdana"]

    Lee From Bangalore (2/5/2009)


    Hi Buddy's

    This is lee

    1). I opend a newquery window

    2). I updated one row

    how to roll back it. Before that I didn't given begint tran.

    Regards

    lee

    Always follow:

    Begin

    Begin Transaction

    Update /...

  • RE: Convert rows in columns

    [font="Verdana"]PIVOT operator will help in this case. For more information refer BOL

    Mahesh[/font]

  • RE: how can i solve this problem?

    [font="Verdana"]Let us know in details what exactly you are trying to do?

    Mahesh[/font]

Viewing 15 posts - 76 through 90 (of 362 total)