So, I'm trying to work with this API, but it keeps telling me my sqlapi.dll is missing from my computer. I can literally see the file though. I moved a copy to my system32 as well, and still no luck. I tried some regvsr32 run command for it and nothing. Says sqlapi.dll is not compatible with 64 bit
Nevermind, moved it into my VS folder and it runs. Now it just doesn't actually connect to the server. Not sure what im doing wrong here, the documentation for this api is next to nothing.
I gave this a try last nite, with probably the same issue as ResidentBiscuit. The cast makes a big difference, my error is now
Connection failed with code 28000 Login failed for user 'Sean'
18456
The 18456 is x.ErrNativeCode().
I dont think its the database as I can connect to it from c#, but that code I used doesn't require password. Perhaps the password is an issue?
Wow that worked without any issue. Any idea as to why that worked? I'm trying to make a back end to a database management system, and I feel like it would be good if users could actually log in
sUserID. A string containing a user name to use when establishing the connection. If sUserID parameter is empty, SQLAPI++ Library requests a secure, or trusted, connection to SQL Server.