C
C#9mo ago
nunumars

✅ HELPPP I NEED THIS ASAP T_T

how do i transfer this using my usb? i need it for thesis T-T
No description
29 Replies
Jimmacle
Jimmacle9mo ago
your help won't be ASAP if you don't provide full details of what you want
nunumars
nunumarsOP9mo ago
i have to transfer my project to my usb but i cant find the database file i used the built in database in vs
Jimmacle
Jimmacle9mo ago
what does your connection string look like?
nunumars
nunumarsOP9mo ago
this?
No description
Jimmacle
Jimmacle9mo ago
do you see that path in the string?
nunumars
nunumarsOP9mo ago
yess the database is working my problem is i cant transfer it to my usb
Jimmacle
Jimmacle9mo ago
and why is that?
nunumars
nunumarsOP9mo ago
hmm maybe the way i copied the file
Jimmacle
Jimmacle9mo ago
i don't use localdb but from what i'm reading attachdbfilename isn't recommended anyway but you said you can't copy it if that's not the problem, be more specific because i don't want to be trying to solve the wrong problem
nunumars
nunumarsOP9mo ago
i copied the whole project but when i checked it on my classmate's laptop the database isnt there
Jimmacle
Jimmacle9mo ago
the database isnt there
can you be more specific about what this means? is the file not there or is something else wrong? did you update your connection strings/project settings after changing the path?
nunumars
nunumarsOP9mo ago
i didnt the file's not there
Jimmacle
Jimmacle9mo ago
so when you're on your classmate's computer and it's trying to find your database in D:\thesis\connection\inventory.mdf, does that path actually exist on their computer?
nunumars
nunumarsOP9mo ago
diff question ohh noo he doesnt have it
Jimmacle
Jimmacle9mo ago
i'm still not sure what you mean by that tbh did you give them the inventory.mdf file?
nunumars
nunumarsOP9mo ago
im sorry T-T here dif question
Jimmacle
Jimmacle9mo ago
no we're not done with this question
nunumars
nunumarsOP9mo ago
yea i saved the whole file
Jimmacle
Jimmacle9mo ago
okay, so every time you move that project or run it on someone else's computer they're going to have to fix all the paths to that database file
nunumars
nunumarsOP9mo ago
ohh i have to make a new database or just the file?
Jimmacle
Jimmacle9mo ago
you don't have to make anything AttachDbFilename expects a path to a database file so you need to give it a valid path to the database file that is going to change if you're copying it around to flash drives or different computers
nunumars
nunumarsOP9mo ago
ohhh
Jimmacle
Jimmacle9mo ago
i don't know if it supports relative paths but i'd do that if possible
nunumars
nunumarsOP9mo ago
ill tryy it thank uu
Jimmacle
Jimmacle9mo ago
a relative path will make it look based on where the program is running, so if it's in the same place relative to the project then it should fix the issue "permanently" again, dunno if that is supported
nunumars
nunumarsOP9mo ago
it worked on my brother's pc ill try it to my classmate's pc later thank u so much
Jimmacle
Jimmacle9mo ago
:pepeok: $close
MODiX
MODiX9mo ago
Use the /close command to mark a forum thread as answered
nunumars
nunumarsOP9mo ago
aii
Want results from more Discord servers?
Add your server