Viewing 15 posts - 106 through 120 (of 670 total)
it would be a lot easier if you supplied DDL, Sample Data and your expected results. Screen shots help, but not in setting up the data
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
March 23, 2020 at 7:45 pm
After 50 replies, I believe forum rules officially declare this a post hijack 😉
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
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...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
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...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
February 22, 2020 at 3:52 am
It looks correct. What did your testing show?
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
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
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
February 21, 2020 at 6:49 pm
can you provide some sample data of what you are seeing and how you would 'fix' them?
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
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?
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
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...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
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 '...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
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...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
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.
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
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 %...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
January 14, 2020 at 8:30 pm
it would be nice to at least see what you've tried so far.
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
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...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
December 23, 2019 at 7:10 pm
Viewing 15 posts - 106 through 120 (of 670 total)