728x90
반응형
728x170
#region SQL Express Server 연결 문자열 구하기 - GetSQLExpressServerConnectionString(databaseName, filePath)
/// <summary>
/// SQL Express Server 연결 문자열 구하기
/// </summary>
/// <param name="databaseName">데이터베이스명</param>
/// <param name="filePath">파일 경로</param>
/// <returns>SQL Express Server 연결 문자열</returns>
public string GetSQLExpressServerConnectionString(string databaseName, string filePath)
{
return string.Format("Data Source=.\SQLExpress;Initial Catalog={0};Integrated Security=True; AttachDBFileName={1}", databaseName, filePath);
}
#endregion
728x90
반응형
그리드형(광고전용)
'C# > Common' 카테고리의 다른 글
[C#/COMMON] Process 클래스 : Start 메소드를 사용해 인터넷 익스플로러 실행하기 (0) | 2014.11.30 |
---|---|
[C#/COMMON] 조합 정렬하기 (0) | 2014.11.30 |
[C#/COMMON] 칵테일 정렬하기 (0) | 2014.11.30 |
[C#/COMMON] 버블 정렬하기 (0) | 2014.11.30 |
[C#/COMMON] SQL 서버 연결 문자열 구하기 (0) | 2014.11.29 |
[C#/COMMON] MS Access 2007 연결 문자열 구하기 (0) | 2014.11.29 |
[C#/COMMON] MS Access 연결 문자열 구하기 (0) | 2014.11.29 |
[C#/COMMON] DateTime 구조체 : 주(Week) 수 구하기 (0) | 2014.11.29 |
[C#/COMMON] DateTime 구조체 : 마지막 주 일 수 구하기 (0) | 2014.11.29 |
[C#/COMMON] DateTime 구조체 : 마지막 주 일요일 구하기 (0) | 2014.11.29 |
댓글을 달아 주세요