10
Answers

Device Activation Error

Pravin Ghadge

Pravin Ghadge

14y
6.8k
1

Hi,
Iam using Sql 2000 as Back End
Iam attaching Database at runtime.
I have used foll code to attach database:
vConn.ConnectionString =
"Data source=Localhost;uid=" + UID + ";pwd=" + UPWD + ";database=Demo;AttachDbFileName=|DataDirectory|Demo.MDF;";
But while running code it giving me foll error:
Device activation error. The physical file name 'C:\Documents and Settings\admin\Desktop\Demo\Demo\bin\Debug\Demo.MDF' may be incorrect.
Could not attach database 'Demo' to file 'C:\Documents and Settings\admin\Desktop\Demo\Demo\bin\Debug\Demo.MDF'.
 
Plz help me out!
Answers (10)
0
Bechir Bejaoui

Bechir Bejaoui

NA 20.1k 5.3m 16y
Ok
0
egi roka

egi roka

NA 20 0 16y
A basic idea I have.
In the between time I've found this: http://www.sql-server-performance.com/tips/database_design_p1.aspx
This explains me the issue clearly and deeply. Thanx anyway.
0
Bechir Bejaoui

Bechir Bejaoui

NA 20.1k 5.3m 16y

First , have you ever basic idea about relational data base conception or not?