Very new to the world of advanced access and SQL Server 2005. I have now developed all my tables in SQL Server and added them to my blank database now in access using a ODBC connection. This topic is just for advice really, what would be the best way for me to create a form so that users within the company can input customer data without having to go onto SQL?
I have three tables 'Customer Table' 'Enquiry Source' & 'Admin Staff' - the 'Enquiry Source' & 'Admin Staff' consist of Enquiry Source ID, Enquiry Source Name, Admin Staff ID & Admin Staff Name which than have a link to the Customer Table.
When updating the tables myself in the SQL Side I use the ID's as integers but now I am in access I would like my users to be able to update these using the appropriate names on a list box. I have created a View in SQL and exported it to access but when I complete all the information and try and save the record it won't allow me to update multiple tables - which I understand is due to it being a View.
Is there an easier way of doing this so my teams can add new customers on the MS access front end system?
The Enquiry Sources are names of methods of referal: Newspaper, Recommendation, Google etc
The Admin Staff are names of employees creating the Customer.
Thanks Guys!
Callum
Link the three tables or three simple views on the tables. Use the form wizard to create a form based on the customer table. Use the list box or combo box wizard to create a control based on each of the two look-up tables. See create form to add records in multiple tables for some notes on how to use the wizards.
Related
I have to extract data from Microsoft Dynamics NAV and save it as CSV files. And I am trying to do it by creating an SSIS package.
Is there a way I can find the corresponding SQL table to a NAV table?
I remember one of the developers using a tool called 'Zoom' to view the tables. I do have access to Zoom but not sure how to find the underlying SQL table.
Tables on SQL server named the same as in Nav plus two things:
Not allowed characters are replaced with underscore. So "G/L entry" will become "G_L Entry"
If table exist for each company then company name with dollar sign as separator is added before table name. Like this "Cronus$G_L Entry".
I'm testing Master Data Services on SQL 2016 CTP 3.3 (azure VM). I've got a MDS model up and running. I can browse the model in Excel 2016 with the Master Data Services add-in.
If I create a new entity (table), it creates the new table and I can go into SQL server management studio to see the stg.NewTable with the column names I set.
When I add rows, and hit the publish button, I don't see the rows being added to the stage table for me to see in the database. Am I missing something ?
Thanks !
I'm an idiot.. MDS puts many many tables in by default, I wasn't looking in the obscurely named tables at the top. Just need to stop and look at the database structure!
When you load the data in MDS using Excel Add-in, the data is directly loaded into the entity table and not in the staging table. You can either extract the data using subscription view created on your entity or you can get the name of the entity table from mdm.tblEntity table and execute a select query on that table.
When you enter any data from MDS UI it gets stored in the mdm tables in MDM database. To get the data, you need Subscription Views and ETL(SSIS or any other tool)
I have a mini account software. In this software I can store multiple company data. The data is stored in SQL Server 2008 R2 database.
In current database I have a User table which stores all user names, a Company Master table which stores company details like name,address, session etc. and user ID as FK with user table. Next is tran table which link with company Master and stores vouchers details and others table link to tran tabel like bill, payment etc.
The app is build for small companies and professionals who keep & maintain there their client data. In that scenario all data is separate and mutually independedent. In case of the small company they maintain all subsidiary company's account related data in a single app. Some time they receipt or send any one subsidiary company data to that company or any government body or Audit firms. like mobile phone contacts, I can send all contacts or any selected contact.
Users used to select his/her company first form company Master and then add/edit reference data or view report on the basis of selected company ID.
Now my problem is the data volume is become very high on some client places because of 50 to 60 companies data are stored in a single database and how I get company ID wise backup or restore the data. Is filegroup of sql server can help on this matter? I have no knowledge of filegroup.
Please help me.
Do not split your SQL database into multiple SQL databases (either do not create more filegroups etc.) just because you need to get data filtered by the CompanyId. Everytime when your Client would need to create a new Company, your application would have to create a new database for it. This would also quite complicate things like app updates.
If you do not face any grave performance problems - like when using SQL Express and your client database is 9 GB (max. database size for Express is 10 GB) - leave 1 database for 1 client.
Be sure all your related tables are well indexed by the CompanyID column. Then you can provide means to export data by CompanyID from your application - custom reports, exports to csv files, Excel etc.
Database backup file is usually not used for passing data to other applications. Its goal is to assure disaster recovery - when the disk fails etc. then your client will be able to recover easily. On contrary when he would have 50 database files in place of just 1 he would have hard time restoring all those databases properly.
I found SimpleMembershipProvider to be pretty neat and productive.
I was wondering if there is a way to control the generate table/column names/datatypes.
You can control the table name for the user table and the column names for the user id and user name columns in it. You specify those in the InitializeDatabaseConnection method. The SimpleMembershipProvider expects the UserId column to be an IDENTITY column. It uses ##IDENTITY to obtain the ID of newly created records. Currently, the SimpleMembershipProvider only works with SQL Server (Express or Full) or SQL Compact 4.0 databases.
You can't change the schema of the membership or roles tables. The SQL for managing accounts and using those tables is hard-coded into the SimpleMemberhipProvider.
I need a database tool where i can easily add information to it.
Example:
I have 2 tables, customers and invoices. The database tool must show me input fields of the customer and invoices. invoice has a foreign key to customer. The input fields of invoices must have a dropdown where i can select the customer so i won't have to copy paste the ID of the customer.
The tags on your question suggest you may be creating test data. Have you considered a tool like RedGate's Data Generator?
If you want to enter the sample data manually (that's how I understood your question), Microsoft Access sounds like the tool of choice here:
Create a new Access DB and link to the SQL Server tables. Enter the customers directly in Table view. For the invoices, use the wizard to create a form, then create a combobox that references to the customers table.