r/visualbasic • u/Rocket-Reatre • Sep 12 '18
Access DAO to SQL database.
Hello guys,
I've asked this question before, without any success. Now I got a little more experienced, so I'm able to explain myself better.
My company has a huge VB, wich contains of 15000 lines. Now this is connected to a access db, but because it needs to connect to a Maximo environment, it need to change to a sql database.
What are the easy ways or hard ways for me to change this. Or is there even an option to change this?
5
Upvotes
2
u/andrewsmd87 Web Specialist Sep 12 '18
You can import an access defense into sql server, just Google that. Then it'd be a matter of changing the connection. Note if it's set up properly that's in one spot. However my experience with legacy stuff using an access database means it's probably not.
In that case, it's a matter of using find and replace and finding all the connections and replacing them with a global connection string.
Obviously you'd want to test everything before doing this in production as access sql doesn't always translate to raw sql ver batim.
If you are thinking this was going to be easy, it won't. Things like this are generally a pretty big undertaking