Viewing 15 posts - 106 through 120 (of 668 total)
After 50 replies, I believe forum rules officially declare this a post hijack 😉
March 3, 2020 at 4:04 pm
we still use mainframe and AS400. This is how we get files all the time. Bulk Insert works well and fast. I still have arguments with mainframers as they don't...
February 28, 2020 at 2:24 pm
The output statement is wrong. I should've looked closer. When you do an update, it puts the old data into deleted table and the new data into inserted. So it...
February 22, 2020 at 3:52 am
It looks correct. What did your testing show?
February 21, 2020 at 7:39 pm
on a merge, you can use $Action in an output statement to get what was inserted vs updated
February 21, 2020 at 6:49 pm
can you provide some sample data of what you are seeing and how you would 'fix' them?
January 30, 2020 at 5:31 pm
what indexes do you have on Lookups.dbo.tbl_SCT2_Relationships? what does the execution plan look like?
January 27, 2020 at 2:45 pm
Can you create 1 table with a BatchKey or some identifier to identify which records were loaded with which path. Instead of Matrix_1 and Matrix_2 tables, have a MatrixID of...
January 21, 2020 at 5:11 pm
this should generate the syntax you need for each table
;with cte as ( Select c.table_schema + '.' + c.table_name as Tablename, 'count(distinct('+ c.column_name + ')) as '...
January 15, 2020 at 5:32 pm
You have a date field that you are querying on. Can't you check to see if the CreatedDate is > than that date. That would mean it was created after...
January 15, 2020 at 2:59 pm
It is returning an integer because count returns an integer value. By adding the 0.0 to it, it does an implicit conversion to decimal.
January 14, 2020 at 8:36 pm
I don't have any data returned when I run your query, but could you run something like this?
declare @i int = 200
select @i/60 as hours, @i %...
January 14, 2020 at 8:30 pm
it would be nice to at least see what you've tried so far.
December 23, 2019 at 7:34 pm
One approach would be to load the data to a staging table first, then you can manipulate to put into the main table. You can have the datatype be a...
December 23, 2019 at 7:10 pm
how about putting all the new tables into a different schema to avoid confusion in SSMS?
December 17, 2019 at 7:33 pm
Viewing 15 posts - 106 through 120 (of 668 total)