Click here to Skip to main content
15,913,055 members
Home / Discussions / Database
   

Database

 
GeneralRe: dataReader not executing properly Pin
Rob Graham21-Jul-05 6:22
Rob Graham21-Jul-05 6:22 
GeneralRe: dataReader not executing properly Pin
WetRivrRat22-Jul-05 9:49
WetRivrRat22-Jul-05 9:49 
GeneralRe: dataReader not executing properly Pin
Rob Graham22-Jul-05 10:42
Rob Graham22-Jul-05 10:42 
GeneralRe: dataReader not executing properly Pin
WetRivrRat22-Jul-05 10:48
WetRivrRat22-Jul-05 10:48 
GeneralRe: dataReader not executing properly Pin
Rob Graham22-Jul-05 11:13
Rob Graham22-Jul-05 11:13 
GeneralHelp About Working with DataBases Pin
korso_rogan20-Jul-05 23:21
korso_rogan20-Jul-05 23:21 
QuestionHow can i clear all database connection via t-sql script Pin
m.rastgar20-Jul-05 20:28
m.rastgar20-Jul-05 20:28 
AnswerRe: How can i clear all database connection via t-sql script Pin
Alomgir Miah21-Jul-05 4:10
Alomgir Miah21-Jul-05 4:10 
Try this

ALTER DATABASE DatabaseName WITH ROLLBACK IMMEDIATE RESTORE DATABASE
DatabaseName FROM DISK = 'C:\DatabaseBackup.bak'

The ALTER DATABASE command will automatically kill all connections to the database being restored. This command prevents the need to query master.dbo.sysprocesses to kill existing connections in order to complete the restore.



Alomgir Miah
Live Life King Size
GeneralRe: How can i clear all database connection via t-sql script Pin
m.rastgar21-Jul-05 11:59
m.rastgar21-Jul-05 11:59 
GeneralRe: How can i clear all database connection via t-sql script Pin
Alomgir Miah22-Jul-05 5:59
Alomgir Miah22-Jul-05 5:59 
GeneralRe: How can i clear all database connection via t-sql script Pin
Alomgir Miah22-Jul-05 10:02
Alomgir Miah22-Jul-05 10:02 
GeneralRe: How can i clear all database connection via t-sql script Pin
m.rastgar22-Jul-05 12:17
m.rastgar22-Jul-05 12:17 
Questionhow to serialize (save) object into SQL Server? Pin
maaaxwell20-Jul-05 16:02
maaaxwell20-Jul-05 16:02 
AnswerRe: how to serialize (save) object into SQL Server? Pin
Christian Graus20-Jul-05 17:27
protectorChristian Graus20-Jul-05 17:27 
GeneralRe: how to serialize (save) object into SQL Server? Pin
maaaxwell21-Jul-05 15:32
maaaxwell21-Jul-05 15:32 
GeneralRe: how to serialize (save) object into SQL Server? Pin
Christian Graus21-Jul-05 16:21
protectorChristian Graus21-Jul-05 16:21 
GeneralDynamically creating DTS package Pin
Martin@captivasystems20-Jul-05 9:30
Martin@captivasystems20-Jul-05 9:30 
GeneralRe: Dynamically creating DTS package Pin
ToddHileHoffer21-Jul-05 10:00
ToddHileHoffer21-Jul-05 10:00 
GeneralRounding Problem of DateTime field Pin
zsharon1120-Jul-05 4:22
zsharon1120-Jul-05 4:22 
GeneralRe: Rounding Problem of DateTime field Pin
Albert Pascual20-Jul-05 7:44
sitebuilderAlbert Pascual20-Jul-05 7:44 
GeneralRe: Rounding Problem of DateTime field Pin
zsharon1120-Jul-05 11:05
zsharon1120-Jul-05 11:05 
GeneralLinking problems helppppp please!!! Pin
zvanolli20-Jul-05 1:32
zvanolli20-Jul-05 1:32 
GeneralRe: Linking problems helppppp please!!! Pin
Marc Soleda20-Jul-05 3:29
Marc Soleda20-Jul-05 3:29 
Generalquestion on using transaction Pin
ppp00120-Jul-05 0:54
ppp00120-Jul-05 0:54 
GeneralRe: question on using transaction Pin
Selahattin Bostanci20-Jul-05 22:35
Selahattin Bostanci20-Jul-05 22:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.