Click here to Skip to main content
15,910,234 members
Home / Discussions / Database
   

Database

 
QuestionAvoid using cursors inside Store procedure - why? Pin
MarkWagner811-Aug-08 8:41
MarkWagner811-Aug-08 8:41 
AnswerRe: Avoid using cursors inside Store procedure - why? Pin
Ashfield11-Aug-08 8:52
Ashfield11-Aug-08 8:52 
GeneralRe: Avoid using cursors inside Store procedure - why? Pin
MarkWagner811-Aug-08 9:24
MarkWagner811-Aug-08 9:24 
GeneralRe: Avoid using cursors inside Store procedure - why? Pin
Manas Bhardwaj11-Aug-08 10:54
professionalManas Bhardwaj11-Aug-08 10:54 
Questionupload image in data base.. Pin
amit201111-Aug-08 5:31
amit201111-Aug-08 5:31 
AnswerRe: upload image in data base.. Pin
Blue_Boy11-Aug-08 5:36
Blue_Boy11-Aug-08 5:36 
AnswerRe: upload image in data base.. Pin
Manas Bhardwaj11-Aug-08 5:38
professionalManas Bhardwaj11-Aug-08 5:38 
QuestionBackup failed on VISTA but successfully run on XP Pin
sunil goyalG11-Aug-08 4:28
sunil goyalG11-Aug-08 4:28 
hi all,
i use following procedure for backup of a database


 Private Sub BackupDatabaseUsinSMO(ByVal DatabaseName As String, ByVal UserName As String, ByVal Password As String, ByVal ServerName As String, ByVal DestinationPath As String)<br />
<br />
        Dim conn As ServerConnection = New ServerConnection(ServerName, UserName, Password)<br />
        Dim myServer As Server = New Server(conn)<br />
<br />
        Dim backup As Backup = New Backup<br />
        backup.Action = BackupActionType.Database<br />
        backup.Database = DatabaseName<br />
        DestinationPath = System.IO.Path.Combine(DestinationPath, DatabaseName + ".bak")<br />
        backup.Devices.Add(New BackupDeviceItem(DestinationPath, DeviceType.File))<br />
        backup.Initialize = True<br />
        backup.Checksum = True<br />
        backup.ContinueAfterError = True<br />
        backup.Incremental = False<br />
        backup.LogTruncation = BackupTruncateLogType.Truncate<br />
        backup.SqlBackup(myServer)<br />
<br />
<br />
    End Sub


above code works well on XP OS but when i run this code on VISTA machine then it give error "Backup failed for Server 'Machine\Instance'." Inner Exception is {"An exception occurred while executing a Transact-SQL statement or batch."}

anybody have idea that how can i perform BackUp and Restore operation on VISTA .I use SQL Server 2005 Express edition
GeneralRe: Backup failed on VISTA but successfully run on XP Pin
SimulationofSai11-Aug-08 5:08
SimulationofSai11-Aug-08 5:08 
GeneralRe: Backup failed on VISTA but successfully run on XP [modified] Pin
sunil goyalG11-Aug-08 21:13
sunil goyalG11-Aug-08 21:13 
QuestionConvert to hours Pin
Agweet11-Aug-08 2:39
Agweet11-Aug-08 2:39 
AnswerRe: Convert to hours Pin
Colin Angus Mackay11-Aug-08 2:49
Colin Angus Mackay11-Aug-08 2:49 
GeneralRe: Convert to hours Pin
Manas Bhardwaj11-Aug-08 4:56
professionalManas Bhardwaj11-Aug-08 4:56 
GeneralRe: Convert to hours Pin
Ashfield11-Aug-08 5:08
Ashfield11-Aug-08 5:08 
GeneralRe: Convert to hours Pin
PIEBALDconsult14-Aug-08 4:08
mvePIEBALDconsult14-Aug-08 4:08 
QuestionHow to wirte this query Pin
varshavmane11-Aug-08 1:12
varshavmane11-Aug-08 1:12 
AnswerRe: How to wirte this query Pin
Ashfield11-Aug-08 1:26
Ashfield11-Aug-08 1:26 
GeneralRe: How to wirte this query Pin
varshavmane11-Aug-08 1:46
varshavmane11-Aug-08 1:46 
GeneralRe: How to wirte this query Pin
Ashfield11-Aug-08 3:09
Ashfield11-Aug-08 3:09 
GeneralRe: How to wirte this query Pin
varshavmane11-Aug-08 3:26
varshavmane11-Aug-08 3:26 
GeneralRe: How to wirte this query Pin
Ashfield11-Aug-08 4:39
Ashfield11-Aug-08 4:39 
GeneralRe: How to wirte this query Pin
Blue_Boy11-Aug-08 5:39
Blue_Boy11-Aug-08 5:39 
QuestionStored Procedure not Found but There(Strange) Pin
Vimalsoft(Pty) Ltd11-Aug-08 0:22
professionalVimalsoft(Pty) Ltd11-Aug-08 0:22 
AnswerRe: Stored Procedure not Found but There(Strange) Pin
Paddy Boyd11-Aug-08 2:10
Paddy Boyd11-Aug-08 2:10 
GeneralRe: Stored Procedure not Found but There(Strange) Pin
Vimalsoft(Pty) Ltd11-Aug-08 3:05
professionalVimalsoft(Pty) Ltd11-Aug-08 3:05 

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.