✅ HELPPP I NEED THIS ASAP T_T
how do i transfer this using my usb? i need it for thesis T-T
29 Replies
your help won't be ASAP if you don't provide full details of what you want
i have to transfer my project to my usb but i cant find the database file
i used the built in database in vs
what does your connection string look like?
this?
do you see that path in the string?
yess
the database is working
my problem is i cant transfer it to my usb
and why is that?
hmm maybe the way i copied the file
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
i copied the whole project but when i checked it on my classmate's laptop the database isnt there
the database isnt therecan 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?
i didnt
the file's not there
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?diff question
ohh
noo
he doesnt have it
i'm still not sure what you mean by that tbh
did you give them the
inventory.mdf
file?im sorry T-T
here dif question
no
we're not done with this question
yea i saved the whole file
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
ohh
i have to make a new database or just the file?
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 computersohhh
i don't know if it supports relative paths but i'd do that if possible
ill tryy it
thank uu
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
it worked on my brother's pc
ill try it to my classmate's pc later
thank u so much
:pepeok:
$close
Use the /close command to mark a forum thread as answered
aii