If you are using an sql database with a vb.net application, does the user need to have anything extra other than the .net framework installed for the program to run? Meaning, if I simply compile the application, are there any extra steps I need to take to make this work?
Thanks for the help!
According to your comment response on the question of having a SQL DB server somewhere:
Well duh, my question was referring to
drivers. Do they need any extra .dlls?
Nope, you should be good to go. :)
The only time you have to worry about this is if you use a 3rd party control or tool that isn't installed with the framework.
Related
I have my database in phpmyadmin.
Now I have to use that database in SQL server database.
But I cannot import .SQL file into visual studio 2010.
So please give me a solution so that I can use that database and perform CRUD operation also.
Okay so im trying to help you dude. but first, you must understand that phpmyadmin is just an RDMS environment for accessing, configuring, managing, administering, and developing all components of the RDMS. So what does it mean? you can still work on visual studio probably c# or vb (i guess) so you can perform a CRUD operation. How? these are the things you need to do:
know how to connect your prepared .net language (c# or vb) - you might need to look at Connector/NET mysql. you can google, its free.
familiarized on the said library.
find some tutorial on how to do crud operation. maybe this article is great for you. Good Luck
So I am using labview and their data connectivity tool kit only works with their 32 bit version. I need to use their 64 bit version though to be compatible with some of my other files.
If I have a local sql database, which I access using the mysql command line client, what would be the best way to talk to it? Should I use executables like bat files or is there a better method? Should I store data in a different way?
Thanks in advance for your help.
I have never really liked the data connectivity toolkit, mainly because it is Windows only. That being said, I recommend setting up a MySQL server on your computer and using TCP/IP to communicate with it. This community forum link is a good start, although there are some issues with this code. I use code based off of that in my software, unfortunately I cannot post that source code.
I've been coding in objective-c in Xcode for just over 2 days now. So please forgive me if I'm being stupid at all. I am from a C# / .NET background and am looking to extend my current solution from Windows platforms to Mac. I've searched far and wide for an answer to this requirement, and all I came up with is 'create a consumable web-service'. However, I don't want to do this.
So far, my application can parse JSON and send in via command line. One of the objects in the JSON is the SQL connection string. Now I need to be able to:
Create an open connection to a simple SQL Azure database, based on the NSString containing my SQL connection string
Execute a query, with parameters
Close and dispose of the SQL connection
Any and all help is appreciated
For talking to an SQL server from a Mac, you're going to need to have an appropriate ODBC driver, or a set of libraries that works directly with objective-c (or c).
ODBC isn't particularly well supported by OS X, so I'd avoid it unless you can find a tested and installable ODBC driver to work with it. With that said, we do make use of it in our products to talk to other (non-Azure) SQL databases and have found it stable and useful, as long as the drivers are good.
Otherwise, you're going to need to seek out an SDK that will work for you. As far as I can tell, they've open-sourced most of their SDK on github, but there isn't an OS X version there.
Thanks for your answer, and even though it does point me in the right direction, as you correctly stated, there is no OSX driver for Azure from Microsoft.
Because of this reason, i feel the original question, to connect to a SQL Azure database, has not been answered.
I believe the best, and correct, way to proceed is to do what i originally did not want to do and set up a consumable web-service for the DB calls my application required.
My apologies for not up-voting your response sooner, it was an oversight, I did not intend to be rude.
Thanks again for your reply gaige
I have written a program in vb.net 2008 (using .net 3.5). It's a decent size program. One part of this program is to access an online database and encrypt/decrypt files. To access db I use a hardcoded password. To encrypt/decrypt files I used a hardcoded key. No matter what I do I would need to hardcode one of the two things at least. For example: even if I store database password in an encrypted file I would need to hardcode key to decrypt it. Or vice versa.
So after doing some thinking I figured that I need to obfuscate my code so that at least these hardcoded elements/values wont be visible easily. Infact to test, I used a program to disassemble my program. And to my amazement, it showed me every line of code in my program. I felt as if my entire code is pasted in my exe.
Thus I need to obfuscate my code. See I do not need too advanced settings. My program is not among the top shareware programs or super popular that I need very high security. But I need enough security so that my basic code, variables and sensitive information (password etc) is not visible.
Please help me choose a good obfuscator which will do the job. It should not be too tedious to use and should be sufficient for me. Plus it should be trusted and secure. I mean I don't want my application to crash or be unstable after I obfuscate it.
I have downloaded trial of .net reactor from Ezriz and it seems to be fine. What do you guys suggest? I cannot affort something over $200. So is this product worth going for. You guys know better.
Thank you for your support.
Cheers,
Saurabh
Obfuscation cannot solve this problem. An attacker can change his hosts file to redirect the domain name to a database he controls. When you login he will get the username/password.
Another attack would be to use a debugger like ollydbg to obtain the username/password in memory. The username/password must be in clear text prior to use, and an attacker will be able to find it.
Security Through Obscurity will never work. You will never be able to control the client.
A better approach is to setup a a SOAP (WCF) server to abstract your database operations. The logic for building the queries must be server side. Assume that an attacker has full access to any functions you expose via SOAP.
I use Eziriz .NET Reactor for a while now and it works great for me. I used Eazfuscator before but it wasn't really powerful.
.Net Reactor has awesome features such as Anti ILDASM and Native Exe file generation. Also it'll fit your budget. You can use Trial before purchasing it and test if it works with your scenario.
You should strongly consider Babel .net obfuscator. In my opinion even though it is a console application it is by far the best for price, licensing (not locked to a single computer) and features.
I use Eazfuscator:http://www.foss.kharkov.ua/g1/projects/eazfuscator/dotnet/Default.aspx
It powerful and it's free. Wonderful tool extremely simple to use.
I've been trying to find a free database creator for mac os, and i'm not being able to find any. Anyone know of a free one i could download?
EDIT: I need that the application generate the sql (mysql in this case) also :)
ty
SQL Designer is web-based.
There's also more options at this question.
I think the Entity modeling stuff in XCode might be of us to you...
SchemaBank is another web-based one available.