Viewing 15 posts - 91 through 105 (of 108 total)
Jeff is correct use CURSOR for row by row processing but, remember there is a problem using curosr it will affect slower down the insertion.
so better you first validate...
November 23, 2007 at 9:50 pm
Guys,
As per me programming styles consist of writing code way, commenting, query forming, readblitiy of code...
is it correct ?
November 23, 2007 at 9:17 pm
Create table dbo.tmpTriggerTest
(
IDINT IDENTITY(1, 1),
Value1VARCHAR(10)
)
GO
Create table dbo.tmpTriggerTestHistory
(
IDINT,
Value1VARCHAR(10)
)
GO
Create View dbo.vw_tmpTriggerTest
AS
SELECT * FROM dbo.tmpTriggerTest
GO
Consider tat tmpTriggerTest is a table from different DB on same server.
I had created view namely vw_tmpTriggerTest which is...
November 23, 2007 at 2:19 am
sorry for d wrong reply...
Select * from of object on diff DB.
& trigger contains..... inserting record in history table, which schema is same.
November 23, 2007 at 1:17 am
Text of the view contains only...
SELECT *
FROM
November 23, 2007 at 12:15 am
Writing common sp for all is always complecated caz if suppose in future any changes have to be done it will affect the other ones .
so better to maintain it...
November 5, 2007 at 5:31 am
may be u should try this....
drop table #MyParent
drop table #MyChild
create table #MyParent
( myid int identity(1,1)
, myval char(1)
)
go
create table #MyChild
( mychildid int identity(1,1)
, myid int
, mynewval char(1)
)
go
insert #MyParent select 'A'
insert #MyParent...
November 5, 2007 at 5:19 am
Change the timeout expire limit & try to alter the table schema by query
🙂
October 23, 2007 at 3:43 am
tats true returning required rows (pagewise ) is alwasy better than retuning all data rows if paging is used.
Go ahead
October 23, 2007 at 2:29 am
Can u give an example of resultset u require..
October 19, 2007 at 6:06 am
thxs John, but in output result i want only distinct col_ref [ whatever may be the order by clause colname]
October 19, 2007 at 5:40 am
there is no such parameter or value from which i know the output.
October 3, 2007 at 7:07 am
thank you lowell, for your reply. but i want to do it without creating additional functions / SP.
is it possible...
September 21, 2007 at 6:53 am
R u trying to connect to different server. if yes then first you have to link that server using " sp_addlinkedserver "
September 21, 2007 at 4:54 am
Viewing 15 posts - 91 through 105 (of 108 total)