Viewing 15 posts - 76 through 90 (of 362 total)
[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]
March 13, 2009 at 9:05 am
[font="Verdana"]Yes Jeff, I have noted that. Any ways Thanks 🙂
Mahesh[/font]
March 11, 2009 at 12:10 am
[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...
March 10, 2009 at 10:48 pm
[font="Verdana"]Thanks Greg. I have missed to rename the Task but the step. So the conflict was. Anyways. thanks again.
Mahesh[/font]
March 10, 2009 at 3:56 am
[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
...
February 15, 2009 at 12:45 am
[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]
February 15, 2009 at 12:19 am
[font="Verdana"]Absolutely it is not possible. Instead user User defined function[UDF]. You can call UDF in select statement.
Mahesh[/font]
February 12, 2009 at 5:41 am
[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...
February 11, 2009 at 10:50 pm
[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]
February 11, 2009 at 9:48 pm
[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]
February 11, 2009 at 9:27 pm
[font="Verdana"]
Vijaya Kadiyala (2/6/2009)
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....
February 9, 2009 at 1:30 am
[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...
February 6, 2009 at 8:28 am
[font="Verdana"]
Lee From Bangalore (2/5/2009)
Hi Buddy'sThis 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 /...
February 6, 2009 at 7:22 am
[font="Verdana"]PIVOT operator will help in this case. For more information refer BOL
Mahesh[/font]
February 6, 2009 at 7:13 am
[font="Verdana"]Let us know in details what exactly you are trying to do?
Mahesh[/font]
February 6, 2009 at 6:19 am
Viewing 15 posts - 76 through 90 (of 362 total)