Linking VB to MS Access Database [closed] - vb.net

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have a project to create an MS Access Database driven, VB application.
I need to use SQL coding, so cant just use the standard add data source.
The database would need to be able to have information accessed from the database as well as being able to add more data through the application.
Any help would be great.
Thanks

It seems as though you need a place to start looking, instead of what your question is asking. I'll provide a list.
Connecting to an MS Access Database (OleDb) See here
Referring to your connection string from the config file rather than inside each sub/function. If you have to recompile with a different connection string you only need to change it in one location.
Using SQL in VB.NET. See here.
Using SQL in VB.NET is looked down upon because it's essentially an "error-less" string. People use Linq for a lot of their database needs. That might be a little advanced at this stage in the game.
Take the time to become familiar with these procedures, and look up the documentation regarding OleDb class, parameterizing queries, etc.

Related

Create SQL Server "creator" account which cannot view or delete data [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
Good afternoon, I am looking to see if anyone knows if there is a way to create a "creator" user in SQL. Yes this is Microsoft SQL Server.
I would like this user to be able to:
Create objects (functions, stored procedures, tables, views)
Insert data as needed
I would like this user to NOT be able to:
View or delete any data.
Any input would be appreciated, doing testing now.
I will try the db_denydatareader - and this account will be used by an automated process only, we simply want to deny reader as it's not needed and in-case the user was compromised.
Thanks!
Tough one...
First of all, I am assuming Microsoft SQL server.
Read this:
Permissions (Database Engine)
You can try db_owner and and db_denydatareader on the user, since you are testing now. It is a long shot. But even if it works, the user might then change data and it looses its integrety.

How to decompile a access database without starting/opening it? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
In our deployment chain we compress the access-database before sending it to the user.
As there where some troubles we want to decompile it too.
But unfortunately decompiling (as described here: How does one decompile and recompile a database application? ) seems to require to start/open the database.
As we deploy very frequently, I am searching for a way to decompile the database without opening/starting it.
Don't believe that you can de-compile without launching the application. (even from command line). The only possible approach would be to create a blank database and import everything. This I suppose could be automated, and the result would be a database that not been compiled. So, a import of all objects into a new blank database is a "possible" solution, but it would involve code to transfer objects into that new blank database. Not likely worth the effort, but is a possible. And one could also consider the save-as text to export all objects into a text file, and then re-build a new solution based on those text files (this is how source code control works with access, and thus even building from a GIT repository is possible).

How to protect a stored procedure file from reading - SQL Server [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I want to generate a file that contains a stored procedure query and I want to share it, but I need to protect it from reading. This query will be used by another person in his own database and server.
I want to give a SP to another person to use in a different environment but doesn't want them to be able to read the TSQL in the SP.
How can I do that?
You can use the WITH ENCRYPTION clause. However, it is known to be ineffective and easily broken, and there are third party tools available that will let your client break it.
If you want to do it anyway, a tutorial can be found here.
If you use WITH ENCRYPTION along with a thoughtfully constructed EULA, your client should not accidentally see the code, and if he purposefully goes to the trouble to crack your code encryption, you will have civil recourse (i.e. you can sue them).

How to create an exe to run SQL commands which ask for parameters [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a series of fairly simple SQL update commands that are used to update order owners in one of our databases. i.e.
UPDATE POHEAD
SET BYRUSR_ID = upper('J123456')
WHERE BYRUSR_ID = upper('J654321')
AND po_st IN (1, 4, 5, 6, 10,11);
COMMIT;
I want to enable our business users to make the changes, and thought that the best solution would be to create an application file that takes the parameters (olduser, newuser) and when the user clicks OK, the file opens a connection to the database (oracle) to make the updates.
While investigating I found a number of guides for creating exe files with .net but none that used SQL or asked for parameters. I haven't used .net before, so don't know where to start.
Using a PHP webform was considered but is not feasible.
Appreciate any help you can provide.
It's a rather vague question so I hope that this is what you need:
Usually, the best way to build a standalone-application which connects to SQL is via PHP. If you know a tiny bit of HTML, you can even create an HTML page in which your users can enter data and click on a button and the PHP script in the back-end will connect to the SQL-database and return the results on the next page.
Here a link for the beginning:
http://www.w3schools.com/php/php_mysql_connect.asp
There are also alternatives to connecting PHP with SQL (SparkSQL, Hadoop, ...) but I think that this is the simplest way of creating such an app.

Is it possible to dump a mysql schema into latex tables? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I am documenting a database, and it would be great to have the functionality to update the tables automatically based on the current state of the database.
I know phpmyadmin does this, but it is a buggy gui that doesn't provide many options- so I end up having to write a script with sed to find and replace things that I don't want and add things that I do.
You can accomplish this via SHOW TABLES and SHOW CREATE TABLE command.
It may not be an easy task to reconcile what has and has not changed. But, the basic approach here is to get a list of the tables in a database, and then run the SHOW CREATE TABLE table_name command for a full spec on the schema. Also, you could use the EXPLAIN command; however, though it's similar, it also contains higher-level information. I'd argue that SHOW CREATE is best since that's all you need to see to replicate the schema.
If I had more specifics about how you wanted to use this information, I'd ammend this with more information. Especially what programming language you're using to connect to mysql. You can actually even use the command line to get this info, but you'll want some intelligent processing in order to do a reconciliation against existing fields in your replicated data containers.