C
C#8mo 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
Jimmacle8mo ago
your help won't be ASAP if you don't provide full details of what you want
nunumars
nunumarsOP8mo 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
Jimmacle8mo ago
what does your connection string look like?
nunumars
nunumarsOP8mo ago
this?
No description
Jimmacle
Jimmacle8mo ago
do you see that path in the string?
nunumars
nunumarsOP8mo ago
yess the database is working my problem is i cant transfer it to my usb
Jimmacle
Jimmacle8mo ago
and why is that?
nunumars
nunumarsOP8mo ago
hmm maybe the way i copied the file
Jimmacle
Jimmacle8mo 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
nunumarsOP8mo ago
i copied the whole project but when i checked it on my classmate's laptop the database isnt there
Jimmacle
Jimmacle8mo 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
nunumarsOP8mo ago
i didnt the file's not there
Jimmacle
Jimmacle8mo 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
nunumarsOP8mo ago
diff question ohh noo he doesnt have it
Jimmacle
Jimmacle8mo ago
i'm still not sure what you mean by that tbh did you give them the inventory.mdf file?
nunumars
nunumarsOP8mo ago
im sorry T-T here dif question
Jimmacle
Jimmacle8mo ago
no we're not done with this question
nunumars
nunumarsOP8mo ago
yea i saved the whole file
Jimmacle
Jimmacle8mo 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
nunumarsOP8mo ago
ohh i have to make a new database or just the file?
Jimmacle
Jimmacle8mo 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
nunumarsOP8mo ago
ohhh
Jimmacle
Jimmacle8mo ago
i don't know if it supports relative paths but i'd do that if possible
nunumars
nunumarsOP8mo ago
ill tryy it thank uu
Jimmacle
Jimmacle8mo 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
nunumarsOP8mo ago
it worked on my brother's pc ill try it to my classmate's pc later thank u so much
Jimmacle
Jimmacle8mo ago
:pepeok: $close
MODiX
MODiX8mo ago
Use the /close command to mark a forum thread as answered
nunumars
nunumarsOP8mo ago
aii
Want results from more Discord servers?
Add your server