Viewing 15 posts - 286 through 300 (of 346 total)
I think the only way to do this is via dynamic sql
Cursors never.
DTS - only when needed and never to control.
November 20, 2001 at 3:46 pm
It probably comes down to
'Can my system be implemented on the platform'.
The answer is almost certainly yes on both SQL Server and Oracle.
It will work better if it is...
Cursors never.
DTS - only when needed and never to control.
November 19, 2001 at 6:42 pm
Sorry - that site (amazing grapics!) is hosted by ntl and I've lost the ability to update it.
I'll add you when I move it somewhere else. Plan to host it...
Cursors never.
DTS - only when needed and never to control.
November 19, 2001 at 6:27 pm
This sp
sp_nrLocks
Will give you a list of the locks held and spid info and can give the commands that the spid is executing.
You can maybe get the page that is...
Cursors never.
DTS - only when needed and never to control.
November 19, 2001 at 6:21 pm
>> A sp is compiled at creation, isn't it
Not any more - it is compiled at first run - and possibly at every run if it is dependent on transient...
Cursors never.
DTS - only when needed and never to control.
November 19, 2001 at 5:59 am
You can use sp_executesql to run the d-sql - set a return parameter from @@rowcount and return that.
There is an example of using sp_executesql to return parameters from d-sql and...
Cursors never.
DTS - only when needed and never to control.
November 19, 2001 at 5:48 am
You can just run
select 'dbcc dbreindex(' + name + ')' from sysobjects where xtype = 'U'
(or something like that).
The run the output
Alternatively it's not difficult to write a script to...
Cursors never.
DTS - only when needed and never to control.
November 19, 2001 at 5:46 am
You can use the com object calls to use it.
If you want to use xp_sendmail you can stop the mail service and start it again with a different return address...
Cursors never.
DTS - only when needed and never to control.
November 16, 2001 at 6:57 pm
I suspect that it is more possible to design a database write code in sql server to utilise the available memory more efficiently (that might just be because I...
Cursors never.
DTS - only when needed and never to control.
November 16, 2001 at 12:18 pm
Have you looked in the bol?
A fill factor defines how much free space should be left in a page. The moer free space the more likely that new data can...
Cursors never.
DTS - only when needed and never to control.
November 16, 2001 at 5:10 am
you could send a kill <spid> command from another connection. It will close the connection <spid> if at all possible.
Cursors never.
DTS - only when needed and never to control.
November 15, 2001 at 7:03 pm
select id, name = max(name)
from tbl
group by id
Cursors never.
DTS - only when needed and never to control.
November 14, 2001 at 4:09 pm
You have a mls_photo table which has the trigger on it and you want to insert into the mls table in the trigger?
If that's the case then
insert mls (...)
select ...
from...
Cursors never.
DTS - only when needed and never to control.
November 14, 2001 at 12:14 pm
I'd left one reference to inserted which is probably why it fails
CREATE TRIGGER photo_numbers
ON mls_photo
FOR INSERT , UPDATE
as
insert into mls(p_mod_date_time, photo)
Select Left(CONVERT( varchar , getdate() , 1),8),
case when m.medium_photo...
Cursors never.
DTS - only when needed and never to control.
November 14, 2001 at 10:23 am
have you looked in the bol?
try
Datediff(mi, Logtime, Getdate())
Cursors never.
DTS - only when needed and never to control.
November 13, 2001 at 7:28 pm
Viewing 15 posts - 286 through 300 (of 346 total)