Click here to Skip to main content
15,918,617 members
Home / Discussions / C#
   

C#

 
GeneralRe: Do I need to create a struct? Pin
bbranded14-Dec-09 8:37
bbranded14-Dec-09 8:37 
GeneralRe: Do I need to create a struct? Pin
Keith Barrow15-Dec-09 1:16
professionalKeith Barrow15-Dec-09 1:16 
AnswerRe: Do I need to create a struct? Pin
Luc Pattyn14-Dec-09 6:15
sitebuilderLuc Pattyn14-Dec-09 6:15 
QuestionSending CSV file when form fillout. Pin
zjaffary14-Dec-09 5:00
zjaffary14-Dec-09 5:00 
AnswerRe: Sending CSV file when form fillout. Pin
Saksida Bojan14-Dec-09 6:06
Saksida Bojan14-Dec-09 6:06 
QuestionAuthentication in a console application Pin
vinothkumar_Dhakshinamoorthy14-Dec-09 3:59
vinothkumar_Dhakshinamoorthy14-Dec-09 3:59 
AnswerRe: Authentication in a console application Pin
#realJSOP14-Dec-09 4:28
professional#realJSOP14-Dec-09 4:28 
Questionbackup Pin
farokhian14-Dec-09 3:47
farokhian14-Dec-09 3:47 
Hi all
I have a problem that became huge.
I want to make a backup from my database and if i attach my database to microsoft sql 2005 and use this connectionstring i can backup from my database correctly:
string connectionstring="Data Source=.;DataBase=mydatabase;Integrated Security=true"

but when i detach it from microsoft sql 2005 and add it to SQLEXPRESS and use SQLEXPRESS of visual studio by this connectionstring=@"Data Source=.\SQLEXPRESS;AttachDbFilename=" + Application.StartupPath + "\\Data\\mydatabase.mdf;" + "Integrated Security=True;User Instance=True";

but it didn't work and error delare that

"Could not locate entry in sysdatabases for database 'mydatabase'. No entry found with that name. Make sure that the name is entered correctly.
BACKUP DATABASE is terminating abnormally."

and because of some reason i want to use SQLEXPRESS.
what should i do?

note:This is my sql command for backup:
backup = string.Format(@"backup database mydatabase to disk='{0}'",addr);
backup.ExecuteNonQuery();
Questionthe Registry and DOS commands Pin
Antonio JVS14-Dec-09 2:40
Antonio JVS14-Dec-09 2:40 
AnswerRe: the Registry and DOS commands Pin
Md. Marufuzzaman14-Dec-09 3:01
professionalMd. Marufuzzaman14-Dec-09 3:01 
GeneralRe: the Registry and DOS commands Pin
Antonio JVS14-Dec-09 3:47
Antonio JVS14-Dec-09 3:47 
AnswerRe: the Registry and DOS commands Pin
S. Brozius14-Dec-09 3:18
S. Brozius14-Dec-09 3:18 
AnswerRe: the Registry and DOS commands [modified] Pin
EliottA14-Dec-09 3:28
EliottA14-Dec-09 3:28 
GeneralRe: the Registry and DOS commands Pin
Antonio JVS14-Dec-09 3:54
Antonio JVS14-Dec-09 3:54 
GeneralRe: the Registry and DOS commands Pin
EliottA14-Dec-09 4:08
EliottA14-Dec-09 4:08 
QuestionHow to read a file from any kind of documents and display its contents? Pin
CoderForEver14-Dec-09 2:00
CoderForEver14-Dec-09 2:00 
AnswerRe: How to read a file from any kind of documents and display its contents? Pin
OriginalGriff14-Dec-09 2:06
mveOriginalGriff14-Dec-09 2:06 
GeneralRe: How to read a file from any kind of documents and display its contents? Pin
CoderForEver14-Dec-09 2:42
CoderForEver14-Dec-09 2:42 
GeneralRe: How to read a file from any kind of documents and display its contents? Pin
#realJSOP14-Dec-09 2:51
professional#realJSOP14-Dec-09 2:51 
GeneralRe: How to read a file from any kind of documents and display its contents? Pin
CoderForEver14-Dec-09 2:59
CoderForEver14-Dec-09 2:59 
GeneralRe: How to read a file from any kind of documents and display its contents? Pin
#realJSOP14-Dec-09 3:01
professional#realJSOP14-Dec-09 3:01 
GeneralRe: How to read a file from any kind of documents and display its contents? Pin
Eddy Vluggen14-Dec-09 3:03
professionalEddy Vluggen14-Dec-09 3:03 
GeneralRe: How to read a file from any kind of documents and display its contents? Pin
#realJSOP14-Dec-09 4:27
professional#realJSOP14-Dec-09 4:27 
GeneralRe: How to read a file from any kind of documents and display its contents? Pin
Eddy Vluggen14-Dec-09 5:37
professionalEddy Vluggen14-Dec-09 5:37 
GeneralRe: How to read a file from any kind of documents and display its contents? Pin
#realJSOP14-Dec-09 6:28
professional#realJSOP14-Dec-09 6:28 

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.