Viewing 15 posts - 31 through 45 (of 147 total)
Ignoring the issue I was having which now works, the reason I am unpivoting is because I am getting an upload every month from a spreadsheet that I am uploading...
April 15, 2018 at 9:54 pm
You don't need the actual table for the select as I am not actually getting any data from it. I just need to read a table for the unpivot. I don't...
April 13, 2018 at 9:43 am
The reason this is being done is because we are setting up an archival database that will be sent about 40,000 records at a crack but only about two weeks...
April 9, 2018 at 1:14 pm
That appears to be it.
I am going to try it on my bigger query but it makes absolute sense once I saw it.
Thanks a lot
February 23, 2018 at 3:14 pm
I figured it out.
Inserts do not add records to the History table. Updates and Deletes do.
Thanks.
October 25, 2016 at 1:55 pm
I did find that the format seemed to be wrong as suggested. So I just followed the same format as the original CREATE and it worked
CREATE TABLE [dbo].[data_load](
[ID] [INT]...
October 25, 2016 at 1:49 pm
Actually, I did find that I was on 2012 instead of 2016. When I put the same CREATE on 2016 it worked.
But then I tried to use my actual...
October 25, 2016 at 12:14 pm
True.
That could be an issue if you have rows that large. I have a customer where some of out tables column definitions exceed the row size by hundreds of...
September 12, 2016 at 3:14 pm
Which is why, as I mentioned, I use both. I use audit tables on the tables I need to audit but I also have 5 columns on all my...
September 10, 2016 at 1:46 pm
That would be correct for a many to many relationship and would be applicable only if you also want take into account that more than one employee can be at...
September 9, 2016 at 10:37 am
I think that is what the original design was doing - many addresses for one employee.
It looks like the user wanted to keep track of each address an employee was...
September 8, 2016 at 2:30 pm
I would never use these as foreign keys. I agree that would be a pain.
September 8, 2016 at 10:38 am
Actually, not the case on checking audit table vs actual table. If I want to check last person checked on a table and I need to use the audit...
September 8, 2016 at 10:37 am
Depending on the logic, you might want to have multiple tables.
Just having a unique id to have one is not normally useful. What does it signify. In your...
September 8, 2016 at 8:59 am
I agree.
I usually have the ID have the same name as the table (Employee or Employees table and EmployeeID). I wouldn't put the underscore to separate the ID from...
September 7, 2016 at 2:21 pm
Viewing 15 posts - 31 through 45 (of 147 total)