Viewing 15 posts - 1,381 through 1,395 (of 6,679 total)
The question is about knowing datetime2 doesn't contain the time zone, not how to convert to a different datatype.
The question is misleading:
I need to assign this value from a...
January 19, 2021 at 8:12 pm
If you leave off the sub-seconds and do not include a period - Excel should display it correctly. This appears to work just fine: convert(char(19), getdate(), 121).
January 19, 2021 at 7:51 pm
The question is a bit misleading - as it mentions a concern about the time zone (which isn't actually part of the string - the string contains an offset which...
January 19, 2021 at 6:07 pm
Hi Jeffrey, many thanks!
I have the column in my table telling me the last time rows were added.
I guess I could use that one, but if I do, isnt...
January 19, 2021 at 5:44 pm
My recommendation would be to convert to project deployment - install and configure Integration Services Catalog - and rewrite/rebuild your packages as projects and deploy to the catalog.
The benefits far...
January 18, 2021 at 9:59 pm
When using the ISO format YYYY-MM-DD in SQL Server on a British English language and converting (implicit or explicit) that value to a datetime data type - it will be...
January 18, 2021 at 9:55 pm
Do you have a table that tracks your data loads? That table should have a date/time column that identifies the last time the load was processed and completed successfully.
With the...
January 18, 2021 at 9:44 pm
From 2008/2012 (package deployment model) to 2019 - export the packages to the file system, create new projects, add packages - modify packages to work in project deployment model, deploy...
January 18, 2021 at 9:36 pm
You asked if there are other ways to accomplish your goal - and yes, there are several...all of which start outside SQL Server. Two (of the many) methods are:
...
January 14, 2021 at 4:46 pm
That is very similar to how I process files - but I am getting the date from the file name. I also did it the long way - using an...
January 12, 2021 at 9:54 pm
Interesting approach - it doesn't have to be the best as long as it gets the job done.
January 12, 2021 at 8:11 pm
Are you using SSRS for the reports - or something else? If SSRS - then you have the option of using shared datasets and can control when and how often...
January 12, 2021 at 5:17 pm
As stated in the other thread you posted to - the problem is that SQL Server Agent uses tokens, and tokens are defined by $(token). Since your code has this:...
January 12, 2021 at 5:03 pm
Just to point out - you posted to a 2 year old thread. This really should be a new topic...
With that said, this issue was explained very well by Shawn...
January 12, 2021 at 4:57 pm
Using a script task - you can loop over the files, read the first 2 rows and build an array - sort the array as needed and return only the...
January 11, 2021 at 10:56 pm
Viewing 15 posts - 1,381 through 1,395 (of 6,679 total)