Click here to Skip to main content
15,914,070 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to compress and decompress an image using GDI+ JPEG? Pin
Anthony Mushrow19-Sep-08 1:02
professionalAnthony Mushrow19-Sep-08 1:02 
QuestionOutlook Issue. Newbie Question Pin
kruegersck18-Sep-08 17:33
kruegersck18-Sep-08 17:33 
QuestionFIB Pin
Miss_hacker18-Sep-08 16:09
Miss_hacker18-Sep-08 16:09 
QuestionCan i write a small plugin for Internet Explorer in .Net ? Pin
SWSDEV18-Sep-08 14:28
SWSDEV18-Sep-08 14:28 
QuestionCrystal Reports Help Pin
Alldaypilot18-Sep-08 14:10
Alldaypilot18-Sep-08 14:10 
QuestionRead already opened file Pin
srabik18-Sep-08 13:27
srabik18-Sep-08 13:27 
AnswerRe: Read already opened file Pin
Guffa18-Sep-08 21:20
Guffa18-Sep-08 21:20 
GeneralRe: Read already opened file Pin
srabik20-Sep-08 3:48
srabik20-Sep-08 3:48 
Hi,
thanks so much for your answer. I googled for detaching the db. Unfortunately sp_detach_db says, that the db is currently in use.
My usage:

SqlConnection conn = daAuthors.Connection; //daAuthors is DataAdapter
if (daAuthors != null)
{
	daAuthors.Connection.Close();
	daAuthors.Dispose();
	daAuthors = null;
}
SqlCommand cmd = new SqlCommand(string.Format("sp_detach_db @dbname='{0}'", conn.Database), conn);
cmd.ExecuteNonQuery();


Then i read about ALTER DATABASE DatabaseName SET SINGLE_USER; to obtain exclusive access to db. But i don't know the database name, the "sysname". I have created the db in VS. For sp_detach_db it is path to *.mdf. When i run sp_helpdb, it shows me all db names, but they are just paths to dbs.
QuestionMouseMove in a container [modified] Pin
Rafone18-Sep-08 13:05
Rafone18-Sep-08 13:05 
AnswerRe: MouseMove in a container Pin
Ajay.k_Singh18-Sep-08 19:51
Ajay.k_Singh18-Sep-08 19:51 
GeneralRe: MouseMove in a container Pin
Rafone19-Sep-08 2:33
Rafone19-Sep-08 2:33 
GeneralRe: MouseMove in a container Pin
Ajay.k_Singh19-Sep-08 3:31
Ajay.k_Singh19-Sep-08 3:31 
GeneralRe: MouseMove in a container Pin
Rafone19-Sep-08 5:31
Rafone19-Sep-08 5:31 
AnswerRe: MouseMove in a container Pin
Rafone19-Sep-08 6:50
Rafone19-Sep-08 6:50 
QuestionCan a template parameter be restricted to primitive types? Pin
HosamAly18-Sep-08 11:24
HosamAly18-Sep-08 11:24 
AnswerRe: Can a template parameter be restricted to primitive types? Pin
Pete O'Hanlon18-Sep-08 11:31
mvePete O'Hanlon18-Sep-08 11:31 
GeneralRe: Can a template parameter be restricted to primitive types? Pin
HosamAly19-Sep-08 23:38
HosamAly19-Sep-08 23:38 
QuestionConcatenation or Data Type problem :s Pin
Muammar©18-Sep-08 11:11
Muammar©18-Sep-08 11:11 
AnswerRe: Concatenation or Data Type problem :s Pin
Mbah Dhaim18-Sep-08 12:54
Mbah Dhaim18-Sep-08 12:54 
GeneralRe: Concatenation or Data Type problem :s Pin
Muammar©18-Sep-08 23:06
Muammar©18-Sep-08 23:06 
QuestionProblems connecting to excel with c# 2005 over windows2000 Pin
R.A.C18-Sep-08 10:05
R.A.C18-Sep-08 10:05 
AnswerRe: Problems connecting to excel with c# 2005 over windows2000 Pin
Paul Conrad18-Sep-08 10:27
professionalPaul Conrad18-Sep-08 10:27 
GeneralRe: Problems connecting to excel with c# 2005 over windows2000 Pin
R.A.C18-Sep-08 12:10
R.A.C18-Sep-08 12:10 
GeneralRe: Problems connecting to excel with c# 2005 over windows2000 Pin
Paul Conrad18-Sep-08 12:20
professionalPaul Conrad18-Sep-08 12:20 
QuestionWho can help ? Pin
Mohammad Dayyan18-Sep-08 10:03
Mohammad Dayyan18-Sep-08 10:03 

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.