i neeed to change ms access 2007 date format for all separate files together - ms-access-2007

how to change date format dd-mm-yyyy to mm-dd-yyyy for separate files in access.
currently I doing changes one by one for each file .
can I have a solution.?

Related

How to solve error gdk-05030 when importing csv data in SQL Developer

I have a problem importing a CSV file using SQL Developer. I created a table to import a 'date' data by using the code below
CREATE TABLE DEPARTMENT (
DATECOLUMN DATE
);
I imported the CSV by right clicking and so on.
Interestingly, the CSV 'date' data has a format of 'YYYY-MM-DD', but when loaded in SQL developer (preview, before importing), it took the format of 'MM/DD/YYYY'.
I believe this is the problem, because when trying to import, it returned error "gdk-05030", meaning the data contains more than needed (to fit the format).
To me, it looks as follows:
date format in a CSV file is yyyy-mm-dd (as you said)
when you queried the table after insert, you found out that values look differently - mm/dd/yyyy
it is because current settings use that date format. If you want to change it, run
alter session set nls_date_format = 'yyyy-mm-dd';
and then select rows from the table.
alternatively, go to SQL Developer's Preferences, and set desired date format in its [Database - NLS] section.

Import/convert my date column from Excel into a datetime datatype in SQL Server?

I am importing an Excel file in CSV format. The file has 1,048,576 rows.
So far I have not been able to import the file with datetime datatype or convert/cast the columns with dates to datetime data types. I can only import the date column as a nvarchar, varchar or sql variant. The only time I can convert the column is if the file is under 71000 rows. Otherwise I get an error that the conversion from string is out of range or failed. (Please see below for pictures and more detail)
I have tried the following
Casting or converting the columns
Changing the data type via the table design
Importing with date time datatype
Copy and paste the data to a datetime column
Checking and converting the date column in excel, before importing
Batch Inserting the document
Importing as a text file
Removing null columns in the excel file
Importing as non string variable
Creating a temporary table
Making temporary variables with datetime data types
Notes
I am using the developer edition of sql server
I am trying to get the date columns(transaction_date, date_created) into a
date time datatype, I can only have them as a narvchar datatype currently
How I Import The CSV File
Right clicking database, clicking task and import flat file
Error Messages
Error message when trying to convert via table design
Error message when importing csv file to sql server
Sample of The CSV File
Sample of the CSV File Showing About 10 Rows
Database Schema
Brief Synopsis of Desired Database, Trying to Get Date Columns to DateTime Data type
Function SQLDate(d)
SQLDate = WorksheetFunction.Text(d, "yyyy-mm-dd hh:MM:ss")
End Function
Note: "d" refers to date field.
Alternatively, you could convert Excel data to string:
TEXT(d,"dd mmmm yyyy hh:mm:ss")
Then convert as req. from within SQL. For further clarity in this regard - see screenshot below.
Citation: Thanks to H Javed

Get Current Date from TXT/LOG File

Just started using LogParser recently, and I'm new to SQL queries.
I'm trying to get LogParser to find a log file with today's date, then outputting specific contents of the file into a text document. For example:
Select Text INTO D:\LogParser\output\BlahYYYY-MM-DD.txt
From 'C:\Logs\BlahYYYY-MM-DDBlah.log'
where Text like '%exception%'
How do I get my query to search for today's date in the file name, while keeping the YYYY-MM-DD format, and output to a text file with the same date and format?
Unfortunately there is no way to use functions in the FROM (nor in the INTO) clause.
If you can get the date from some other means, you could save the query to a file, specify e.g. %MYDATE% instead of the date, and then run the query specifying the parameter values as follows:
LogParser file:myQuery.sql?MYDATE=...

Date format not consistent for a particular column in .csv file using app engine in peoplesoft

I am generating a report in .csv format. The file is having date fields. In those date fields, the date is coming in "dd/mm/yyyy" format and "dd-mm-yyyy format".
I have used to_char(date,'DD-MM-YYYY') for all date fields. Still I am not getting consistent date format. Please help me resolve this issue.
you can retrieve a date type from the DB and use a string field in the output file. In peoplecode use: DateToLocalizedString
PeopleSoft Documentation

Adding part of a filename to a SQL Server column

I am extracting data from a file daily and adding a timestamp to the ActiveDate column to capture when a particular record was imported.
Earlier we were using getdate() but we realized its not the most accurate solution for us. Fortunately the filename has a datestamp (something like XYZ 12232015).
Can I import the date as a date datatype into a field in Excel? I am not sure how to do that in SQL Server considering the file is saved on a shared drive. The file is moved to the archived folder after the SSIS package for the SQL code runs.
In SSIS you can get this using a Derived File Transformation.