Viewing 15 posts - 7,321 through 7,335 (of 59,091 total)
Since you attempt at code and what you posted as your desired final output have several difference between the two, I split the difference and can derived the following code. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 10, 2020 at 8:57 pm
A better idea is to use the correct datatype. If the column is supposed to only handle digits, then changing the datatype of the column to be an INTEGER would...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 10, 2020 at 6:45 pm
I need help with a query. If I have a list of people each with a service date and I want to sum their spend one year and two...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 10, 2020 at 6:33 pm
Recreating such a thing in yet another "string format" would go against my grain. Why not convert it to a proper DATE or DATETIME datatype?
--Jeff Moden
Change is inevitable... Change for the better is not.
April 10, 2020 at 4:11 pm
If you have the enterprise edition, you could use the Resource Governor. I've not done a deep read on the trigger you wrote but that would also work.
You should give...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 10, 2020 at 4:08 pm
dear all,
i have simple query that related several tables which 1 table have millions of rows. i have created index on each table that i will relate to master...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 10, 2020 at 1:31 pm
Is it a leading space or a leading TAB character?
--Jeff Moden
Change is inevitable... Change for the better is not.
April 9, 2020 at 9:48 pm
Joe, if the indexing is setup correctly, wrapping the ENDDATE in a COALESCE can cause a range scan (at best) instead of a SEEK because it makes that part of...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 9, 2020 at 7:07 pm
this is based on the file he supplied on his last post. https://www.sqlservercentral.com/wp-content/uploads/2020/04/PRV414WSW_2.txt
Ah... gotcha... I missed that he reposted. Thank you. I'll take a look at this after work...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 9, 2020 at 6:11 pm
I think the record layout is correct - its just that column "provider name" should be further divided into LastName, FirstName, Middle Initial (probably)
if object_id('tempdb..#data') is...--Jeff Moden
Change is inevitable... Change for the better is not.
April 9, 2020 at 6:01 pm
I've attached a sample text and the import specs. Thanks!
Ok... again, there's something wrong with the sample data you provided. Here's the data using the fixed width font of...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 9, 2020 at 4:36 pm
My only trouble is that management feels compelled to force engagement between people with virtual lunches, virtual happy hours, group puzzle solving, sharing workspace pictures, sharing pictures of what you...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 9, 2020 at 4:12 pm
To be sure, I was just kidding about Redgate. It was pretty obvious which company you were talking about. As for Grant... Kind of like real brothers (we both survived...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 9, 2020 at 3:27 pm
Ralph Kimball has a method of not having any nulls in dimension tables. Instead, on the dimension table there are rows with negative keys: -1...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 9, 2020 at 2:15 pm
I am sorry - >5GB and predicted partition key which we have configured in configuration table.
I have to agree with Frederico... 5GB is very small and not worth the...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 9, 2020 at 2:10 pm
Viewing 15 posts - 7,321 through 7,335 (of 59,091 total)