Microsoft Access 2007: save relative directory path in database table - ms-access-2007

I created a table with column "Directorypath" and a form with an input field for "Directorypath". When I create new database entry with the form and write something in the "Directorypath"-field (form-mode), the input is correctly stored in my table.
But in this field I want to store the relative path from my directory, so I wrote "=[Application].[CurrentProject].[Path]" (form-edit-mode). In the form-mode the path in the inputfield is shown correct but when I want to save the new entry, every other fields are saved but the "Directorypath"-field is empty (in database).
What should I do to save the path in database? My field has the fieldtype "text".
Hope anyone could help me!

Related

Problem appending CSV upload to existing BigQuery table

I've been used to quickly uploading a CSV file to append data to an existing table in BigQuery.
I've made the new table name the same as the existing table, and I've then had options to overwrite or append data to the existing table.
This seems to have changed in the past few days and there is a new BigQuery console UI.
When I try and create a new table from a CSV file upload, under the table name field it currently says:
Unicode letters, marks, numbers, connectors, dashes or spaces allowed.
The job will create the specified destination table if needed, or the
table must be empty if it already exists.
However, when I try and create a table with the same name as an existing table (even though the existing table is empty), I get a red warning saying:
Table already exists
Does anyone know if this feature has now been removed or how to easily append data?
The long way round is to upload a CSV to a new table, then query the new table and set the destination to append or overwrite an existing table. Not ideal, particulalry having to define a new table schema.
In order to append a CSV file to an existing BigQuery table when using the Console, please follow the instructions below:
In the Explorer panel, expand your project and select a dataset.
Expand the Actions option and click Open.
In the details panel, click Create table.
On the Create table page, in the Source section:
For Create table from, select Upload.
Browse file from system
On the Create table page, in the Destination section:
For Dataset name, choose the appropriate dataset.
In the Schema section, for Auto detect, check Schema and input parameters to enable schema auto detection. Alternatively, you can manually enter the schema definition
Click Advanced options.
For Write preference, choose Append to table
Please review this document that expands on the same topic.

How to store files on mysql server

I need to send files like an image or pdf to a mysql database from a vb.NET form. How can i do this? is there a specific column type? what type of sql query should i write to send the file?
You can upload and save file in a folder in the server, and the filename or path of the file in the database along with an unique identifier.
If you really want to save the file in database (which is highly not recommended) you can use blob datatype. but it is mostly recommended to save the file pathname in the database column as a string, while you store the file to a local storage, and when you need to display the file, you just get the path saved in your database column, this should give you the file.

Capture Multiple File Names into a column on SSIS

Hope you can help me.
I am looking to retrieve multiple file-names into a column from files I wish to upload onto SQL in a custom column on SSIS.
I am aware of using Advanced Editor on the Flat File Source in Component Properties > FileNameColumnName. However, I am not sure how to make sure it picks up all the file names or what to enter in this field?
I can upload the files and all the data it holds but not the filename into a column.

How to add image to table cell and read the image's url value from database field in ssrs?

I am working on a ssrs report. I have a table and it is linked to a database query.
Query returns a field which includes image urls of every item.
For example:
ID Name URL
1 Line1 https://www.servername.com/images/a.jpg
2 Line2 https://www.servername.com/images/b.jpg
Then i add an image from toolbox to table's last cell. Then from Image Properties, i choose database, then i choose database field and MIME type then i click OK.
After i run the report, i see crosses instead of image. Why is it happening? How can i show the images properly?
Screenshot
Thanks.
when you set the source to database you are saying that the image is stored in the database. What you actually have stored is a link, so you need to use image source external and add the data field to the expression for the "use this image".
Select External - then in the dropdown for the "Use this Image" select the data field that has the url in it.
At run time it will pull the url from the database and show the image.
Regards,

Store filename in variable and create tables with the filename in SSIS

I've few excel source files in one folder in SSIS. I want to pull data from these excel files and load in to SQL tables.
My problem is I want to save all the files names one by one and want to create SQL table with exactly same name as filename
and then want to load each excel file in corresponding table.
Please help me how to create a package for this.
Jayvee has presented the high level view which is good enough! Let me add in bit detail.
I am assuming that you have dynamic Excel file connection.
Declare a variable and named it as FileName. And assign it the first file name which is available in the folder.
Place Foreach Loop Container and double click on it. Specify the Folder: and Files: as shown in image below.
In the same Foreach Loop Editor, go to Variable Mappings. Select Variable from drop down list. This is the same variable which we defined in first step. Set its Index to 0. Click OK.
Remaining task is same as Jayvee explained.
See this link for further help. And this for Result Set Property Not Set Correctly. I think setting ResultSet property to SingleRow will do the job.
your control flow should look like this: