Viewing 15 posts - 5,521 through 5,535 (of 59,089 total)
Your database is not normalised.
The standard way to store this is to have two tables instead of your #u table
It's a work table, Jonathan.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 13, 2021 at 10:37 pm
Heh... my observation has been that a lot of people think they need to scale out but, in truth, it's because of bad database design, improper use of ORMs, and...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 13, 2021 at 10:35 pm
Ok... if we're going to go "there", then why doesn't the front-end where the "pull-down" lives do this and occasionally upload from the Fruit table to keep it in synch? ...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 13, 2021 at 10:27 pm
CryptoLocker ransomware or similar malware is distributed through spam email campaign. Scammers or attackers send spam emails in your mail box which contain messages along with malicious attachments or...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 13, 2021 at 6:58 pm
Ah... sorry... you can read the article about how the DelimitedSplit8K function works at the following article...
... and a serious performance enhancement to the code by Eirikur Eiriksson in...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 13, 2021 at 5:38 pm
It would be a lot easier to do using STRING_AGG() in SQL Server 2017 and up but, since this is a 2014 thread, we'll have to do it the old...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 13, 2021 at 5:33 pm
BULK INSERT #CUSTOMER FROM 'E:\Loyalty_DWND\A22679.csv' WITH ( FIRSTROW=2, --DATAFILETYPE = 'char', FIELDTERMINATOR =',', ROWTERMINATOR = '0x0a', -- CODEPAGE = '65001', TABLOCK, FIELDQUOTE='"', FORMAT='CSV'
)
That would do the trick in 2017...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 13, 2021 at 3:59 pm
The above lookups are in the 1st record in file using criteria above. I need some help ...
THanks.
What's stopping you from reading the first two rows using Bulk Insert...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 13, 2021 at 2:46 am
Yeah, I want just the schema. But how do I import the sql file into the database to create a new table?
Bulk Insert the text file as a single...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 13, 2021 at 2:37 am
The proprietary identity table property is not an attribute by definition, so it can never be a key. But it is let's bad programmers write their SQL as if...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 12, 2021 at 1:27 am
I've got a DynamicsAX database that's seeing a significant amount of blocking despite having RCSI set and the connections using Read Committed.
Aren't most of the Clustered Indexes in DynamicsAX...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 11, 2021 at 7:44 pm
My thanks to Jeff, Voldemar and Scott.
@jeff, I was thinking of getting the remote server name through some variable or a function in remote server while I...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 8, 2021 at 7:43 pm
p.s. Just noticed that they also list the old command of "SQLCMD -L" to find servers. I discovered very long ago that if the SQL Browser service on a server...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 8, 2021 at 4:20 pm
Sometimes, you've just gotta love the internet search capabilities. Check out the following Google search for what you seek.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 8, 2021 at 4:16 pm
Hello @jeff,
We use MAPS to collect SQL inventory from all servers, but MAPS cannot be automated.Are there any other free tools which can scan our network periodicaly and identify...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 8, 2021 at 3:52 pm
Viewing 15 posts - 5,521 through 5,535 (of 59,089 total)