Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Expert SQL Server 2005 Integration Services ISBN: 978-0-470-13411-5
This is the forum to discuss the Wrox book Expert SQL Server 2005 Integration Services by Brian Knight, Erik Veerman; ISBN: 9780470134115
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Expert SQL Server 2005 Integration Services ISBN: 978-0-470-13411-5 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 29th, 2007, 07:43 AM
Registered User
 
Join Date: Jun 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default usp_killusers

HI, on page 231 of the book, it is wtritten that a script called usp_killusers can be found on www.wrox.com. Whne I seach in downloads on wrox.com, I do not find it. Where can I find this script?

Thank you,
Ccote
  #2 (permalink)  
Old June 29th, 2007, 11:05 AM
Registered User
 
Join Date: Jun 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can just roll your own:

create proc usp_killusers
@dbname varchar(30)
as
declare @sql varchar(60)
declare kill_cur cursor fast_forward for
select 'kill ' + cast(spid as varchar) from master.dbo.sysprocesses where dbid = db_id(@dbname)

open kill_cur
fetch next from kill_cur into @sql
while @@fetch_status = 0
begin
   exec(@sql)
   fetch next from kill_cur into @sql
end
close kill_cur
deallocate kill_cur
go

hth, dKK

  #3 (permalink)  
Old July 1st, 2007, 08:56 AM
Registered User
 
Join Date: Jun 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by dakaratekid
 You can just roll your own:

create proc usp_killusers
@dbname varchar(30)
as
declare @sql varchar(60)
declare kill_cur cursor fast_forward for
select 'kill ' + cast(spid as varchar) from master.dbo.sysprocesses where dbid = db_id(@dbname)

open kill_cur
fetch next from kill_cur into @sql
while @@fetch_status = 0
begin
exec(@sql)
fetch next from kill_cur into @sql
end
close kill_cur
deallocate kill_cur
go

hth, dKK

HI, Thanks for your help! But the book should not tell readers something that seems to be not exact. If the usp_killusers exists, it should be available here. But waht you gave me will do the job.

Thanks again!
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off




All times are GMT -4. The time now is 06:36 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.