Click here to Skip to main content
15,920,956 members
Home / Discussions / Database
   

Database

 
GeneralRe: Regarding sum of a column Pin
Pete O'Hanlon15-Apr-08 23:24
mvePete O'Hanlon15-Apr-08 23:24 
GeneralRe: Regarding sum of a column Pin
ChandraRam16-Apr-08 1:23
ChandraRam16-Apr-08 1:23 
QuestionRe: Regarding sum of a column Pin
mrcsn17-Apr-08 2:51
mrcsn17-Apr-08 2:51 
QuestionRe: Regarding sum of a column Pin
mrcsn21-Apr-08 20:00
mrcsn21-Apr-08 20:00 
GeneralRe: Regarding sum of a column Pin
ChandraRam21-Apr-08 20:10
ChandraRam21-Apr-08 20:10 
GeneralRe: Regarding sum of a column Pin
mrcsn21-Apr-08 20:27
mrcsn21-Apr-08 20:27 
GeneralRe: Regarding sum of a column Pin
ChandraRam21-Apr-08 20:53
ChandraRam21-Apr-08 20:53 
Questionsqldmo backup issue (Cannot open backup device) Pin
JoZ CaVaLLo15-Apr-08 21:36
JoZ CaVaLLo15-Apr-08 21:36 
Hi...

I'm trying to get programmatically a backup file of my database, here is the code:


<br />
//Get a temporary file<br />
string BakFilePath = System.IO.Path.GetTempFileName();<br />
<br />
//create a backup class instance<br />
SQLDMO.Backup bak = new SQLDMO.BackupClass();<br />
//set the backup device = files property ( easy way )<br />
bak.Devices = bak.Files;<br />
//where to store<br />
bak.Files = "[" + BakFilePath + "]";<br />
//set the database to backup<br />
bak.Database = "MyDB";<br />
bak.BackupSetDescription = "Something";<br />
<br />
//perform the backup<br />
bak.SQLBackup(srv);<br />


Under VS2005 c# SQL Server 2005, in debug mode there are no problem.
When installing on a win xp with SQL Express 2005, I have the following error:
<br />
[Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open backup device 'C:\Documents and Settings\JOZ\Local Settings\Temp\tmp19.tmp'. Operating system error 5(Access denied).<br />
[Microsoft][ODBC SQL Server Driver][SQL Server]BACKUP DATABASE is terminating abnormally.<br />


I like sqldmo backup because is really quick... but this issue is driving me crazy... Can somebody help me please? Shucks | :-\

Life is not short... the problem is only how you organize yourself

GeneralRe: sqldmo backup issue (Cannot open backup device) Pin
SimulationofSai16-Apr-08 1:24
SimulationofSai16-Apr-08 1:24 
GeneralConnection of MS-Access 2007 to VC++2005 Pin
Le@rner15-Apr-08 19:56
Le@rner15-Apr-08 19:56 
GeneralRe: Connection of MS-Access 2007 to VC++2005 Pin
ChandraRam16-Apr-08 1:12
ChandraRam16-Apr-08 1:12 
Questionhow can i write a trigger for backup of table and calling a web service in sql server 2005? Pin
elham.a15-Apr-08 19:10
elham.a15-Apr-08 19:10 
QuestionDetecting a broken connection in SQL-ADO Pin
Ben_Slater15-Apr-08 10:46
Ben_Slater15-Apr-08 10:46 
GeneralRe: Detecting a broken connection in SQL-ADO Pin
SimulationofSai16-Apr-08 1:29
SimulationofSai16-Apr-08 1:29 
QuestionRe: Detecting a broken connection in SQL-ADO Pin
Ben_Slater16-Apr-08 5:08
Ben_Slater16-Apr-08 5:08 
QuestionHow to access a table in sql2005 database from stored procedure in another database Pin
Shaimmaa15-Apr-08 8:31
Shaimmaa15-Apr-08 8:31 
GeneralRe: How to access a table in sql2005 database from stored procedure in another database Pin
Sankar Komma 15-Apr-08 10:12
Sankar Komma 15-Apr-08 10:12 
GeneralRe: How to access a table in sql2005 database from stored procedure in another database Pin
Mycroft Holmes15-Apr-08 22:26
professionalMycroft Holmes15-Apr-08 22:26 
Generaltransaction log in sql server 2000 Pin
sohne15-Apr-08 7:34
sohne15-Apr-08 7:34 
GeneralRe: transaction log in sql server 2000 Pin
Mark J. Miller15-Apr-08 12:02
Mark J. Miller15-Apr-08 12:02 
GeneralRe: transaction log in sql server 2000 Pin
sohne15-Apr-08 12:29
sohne15-Apr-08 12:29 
GeneralRe: transaction log in sql server 2000 Pin
GuyThiebaut16-Apr-08 1:09
professionalGuyThiebaut16-Apr-08 1:09 
GeneralImporting Excell to SQL Pin
Daniel_Logan15-Apr-08 2:57
Daniel_Logan15-Apr-08 2:57 
GeneralRe: Importing Excell to SQL Pin
DerekFL15-Apr-08 4:44
DerekFL15-Apr-08 4:44 
GeneralRe: Importing Excell to SQL Pin
Daniel_Logan16-Apr-08 23:56
Daniel_Logan16-Apr-08 23:56 

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.