Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
GeneralRe: UI For C# Pin
atoi_powered13-Jul-12 11:03
atoi_powered13-Jul-12 11:03 
AnswerRe: UI For C# Pin
Pete O'Hanlon13-Jul-12 12:20
mvePete O'Hanlon13-Jul-12 12:20 
GeneralRe: UI For C# Pin
atoi_powered13-Jul-12 12:56
atoi_powered13-Jul-12 12:56 
GeneralRe: UI For C# Pin
Mycroft Holmes13-Jul-12 13:37
professionalMycroft Holmes13-Jul-12 13:37 
GeneralRe: UI For C# Pin
Pete O'Hanlon13-Jul-12 22:11
mvePete O'Hanlon13-Jul-12 22:11 
QuestionC# - Isolated Storage Database Programming - Windows Phone Pin
ashish712-Jul-12 22:57
ashish712-Jul-12 22:57 
AnswerRe: C# - Isolated Storage Database Programming - Windows Phone Pin
Richard MacCutchan12-Jul-12 23:48
mveRichard MacCutchan12-Jul-12 23:48 
GeneralSp_attach_db Pin
pranee2412-Jul-12 6:34
pranee2412-Jul-12 6:34 
SqlConnection conn = new SqlConnect(
"Integrated Security=SSPI;Data Source=DBSRV1;Initial Catalog=master");
SqlCommand cmd = conn.CreateCommand();
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = "sp_attach_db";
cmd.Parameters.Add("@dbname", SqlDbType.NVarChar, 128).Value = "MyDB";
cmd.Parameters.Add("@filename1", SqlDbType.NVarChar, 260).Value =
@"C:\Program Files\Microsoft SQL Server\MSSQL\Data\MyDB.mdf";
cmd.Parameters.Add("@filename2", SqlDbType.NVarChar, 260).VAlue =
@"C:\Program Files\Microsoft SQL Server\MSSQL\Data\MyDB.ldf";
try
{
conn.Open();
cmd.ExecuteNonQuery();
}
finally
{
conn.Close();
}

This is OK but i need to get the DataBase Name and File Name from TextBox,i Tried but its not working any Help
GeneralRe: Sp_attach_db Pin
Richard MacCutchan12-Jul-12 6:40
mveRichard MacCutchan12-Jul-12 6:40 
GeneralRe: Sp_attach_db Pin
Wes Aday12-Jul-12 6:47
professionalWes Aday12-Jul-12 6:47 
AnswerRe: Sp_attach_db Pin
Luc Pattyn12-Jul-12 11:59
sitebuilderLuc Pattyn12-Jul-12 11:59 
GeneralRe: Sp_attach_db Pin
KSaiPrasad12-Jul-12 19:30
KSaiPrasad12-Jul-12 19:30 
GeneralConvert Asp.net web application App_Code folder to DLL Pin
petermku12-Jul-12 4:53
petermku12-Jul-12 4:53 
AnswerRe: Convert Asp.net web application App_Code folder to DLL Pin
shubham salwan12-Jul-12 9:25
shubham salwan12-Jul-12 9:25 
AnswerRe: Convert Asp.net web application App_Code folder to DLL Pin
ZurdoDev12-Jul-12 10:58
professionalZurdoDev12-Jul-12 10:58 
QuestionC# execute reader to liste Pin
coucou00812-Jul-12 4:02
coucou00812-Jul-12 4:02 
AnswerRe: C# execute reader to liste Pin
BobJanova12-Jul-12 4:08
BobJanova12-Jul-12 4:08 
GeneralRe: C# execute reader to liste Pin
coucou00812-Jul-12 7:24
coucou00812-Jul-12 7:24 
GeneralRe: C# execute reader to liste Pin
Ennis Ray Lynch, Jr.12-Jul-12 4:42
Ennis Ray Lynch, Jr.12-Jul-12 4:42 
AnswerRe: C# execute reader to liste Pin
Luc Pattyn12-Jul-12 8:34
sitebuilderLuc Pattyn12-Jul-12 8:34 
GeneralRe: C# execute reader to liste Pin
Ennis Ray Lynch, Jr.12-Jul-12 8:53
Ennis Ray Lynch, Jr.12-Jul-12 8:53 
GeneralRe: C# execute reader to liste Pin
Luc Pattyn12-Jul-12 9:17
sitebuilderLuc Pattyn12-Jul-12 9:17 
GeneralRe: C# execute reader to liste Pin
jschell12-Jul-12 10:24
jschell12-Jul-12 10:24 
GeneralRe: C# execute reader to liste Pin
Eddy Vluggen12-Jul-12 9:17
professionalEddy Vluggen12-Jul-12 9:17 
AnswerRe: C# execute reader to liste Pin
Luc Pattyn12-Jul-12 9:30
sitebuilderLuc Pattyn12-Jul-12 9:30 

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.