Click here to Skip to main content
16,006,442 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: how to adapt the image width to a computer screen width Pin
Seraph_summer16-Aug-09 8:07
Seraph_summer16-Aug-09 8:07 
GeneralRe: how to adapt the image width to a computer screen width Pin
Abhishek Sur16-Aug-09 9:25
professionalAbhishek Sur16-Aug-09 9:25 
GeneralRe: how to adapt the image width to a computer screen width Pin
Seraph_summer16-Aug-09 10:25
Seraph_summer16-Aug-09 10:25 
GeneralRe: how to adapt the image width to a computer screen width Pin
Abhishek Sur16-Aug-09 10:31
professionalAbhishek Sur16-Aug-09 10:31 
QuestionHow to attach a DB to SQL Server ? Pin
comp_j16-Aug-09 5:41
comp_j16-Aug-09 5:41 
AnswerRe: How to attach a DB to SQL Server ? Pin
Abhijit Jana16-Aug-09 5:51
professionalAbhijit Jana16-Aug-09 5:51 
GeneralRe: How to attach a DB to SQL Server ? Pin
comp_j16-Aug-09 7:31
comp_j16-Aug-09 7:31 
AnswerRe: How to attach a DB to SQL Server ? Pin
Abhishek Sur16-Aug-09 10:10
professionalAbhishek Sur16-Aug-09 10:10 
Connect to master Database using your .NET object. Then run the stored procedure below :

EXEC sp_attach_db @dbname = 'dbname', 
     @filename1 = 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\dbname.mdf', 
     @filename2 = 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\dbname_log.LDF'


Please replace the path to the existing mdf and ldf files.

You can also create using

CREATE DATABASE [dbname] ON 
( FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\dbname.mdf' ),
( FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\dbname_log.LDF' )
 FOR ATTACH
GO

command

Hope you can do this now.

Abhishek Sur

My Latest Articles
Create CLR objects in SQL Server 2005
C# Uncommon Keywords
Read/Write Excel using OleDB

Don't forget to click "Good Answer" if you like to.

Questionchecking a radio button programmatically Pin
mbams16-Aug-09 4:36
mbams16-Aug-09 4:36 
AnswerRe: checking a radio button programmatically Pin
Not Active16-Aug-09 5:30
mentorNot Active16-Aug-09 5:30 
AnswerRe: checking a radio button programmatically Pin
Abhishek Sur16-Aug-09 6:33
professionalAbhishek Sur16-Aug-09 6:33 
QuestionConnecting to Oracle Database. Pin
srikantha_nagaraj16-Aug-09 1:35
srikantha_nagaraj16-Aug-09 1:35 
AnswerRe: Connecting to Oracle Database. Pin
Not Active16-Aug-09 5:31
mentorNot Active16-Aug-09 5:31 
AnswerRe: Connecting to Oracle Database. Pin
Abhishek Sur16-Aug-09 6:28
professionalAbhishek Sur16-Aug-09 6:28 
QuestionRe: Connecting to Oracle Database. Pin
srikantha_nagaraj16-Aug-09 16:54
srikantha_nagaraj16-Aug-09 16:54 
AnswerRe: Connecting to Oracle Database. Pin
Abhijit Jana16-Aug-09 18:17
professionalAbhijit Jana16-Aug-09 18:17 
AnswerRe: Connecting to Oracle Database. Pin
Abhishek Sur16-Aug-09 22:31
professionalAbhishek Sur16-Aug-09 22:31 
Questionupdate xml in real time from database Pin
leon8516-Aug-09 0:43
leon8516-Aug-09 0:43 
AnswerRe: update xml in real time from database Pin
Abhishek Sur16-Aug-09 6:14
professionalAbhishek Sur16-Aug-09 6:14 
GeneralRe: update xml in real time from database Pin
leon8516-Aug-09 17:45
leon8516-Aug-09 17:45 
QuestionSending Mail Problem Pin
pampam11015-Aug-09 20:52
pampam11015-Aug-09 20:52 
AnswerRe: Sending Mail Problem Pin
Abhijit Jana15-Aug-09 21:02
professionalAbhijit Jana15-Aug-09 21:02 
GeneralRe: Sending Mail Problem Pin
pampam11015-Aug-09 21:19
pampam11015-Aug-09 21:19 
GeneralRe: Sending Mail Problem Pin
Abhijit Jana15-Aug-09 21:35
professionalAbhijit Jana15-Aug-09 21:35 
GeneralRe: Sending Mail Problem Pin
pampam11015-Aug-09 21:51
pampam11015-Aug-09 21:51 

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.