Viewing 15 posts - 2,656 through 2,670 (of 13,879 total)
Thom, this is great. Thank you for taking the time to write it out so clearly.
but I'm always surprised more people don't use it
Almost all of my development is done...
June 3, 2020 at 1:11 pm
This can be done, if you think laterally: make " your delimiter and your formulas become:
TOKEN( SourceRecord,"\"",1)
TOKEN( SourceRecord,"\"",3)
TOKEN( SourceRecord,"\"",5)
TOKEN( SourceRecord,"\"",7)
TOKEN( SourceRecord,"\"",9)
Having said that, Frederico's suggestion is better,...
June 3, 2020 at 1:09 am
Years later - if someone stumbles over this: WITH(NOLOCK) can get locks for non-SELECT statements, for example, it will get locks if it is part of an UPDATE statement....
June 1, 2020 at 2:19 pm
In this i want to add condition if @frdate Month = 3 and Date = 31 ...
May 31, 2020 at 3:44 pm
No need to apologise ... probably a false positive, but I put it there just in case.
Wish I could help with your actual problem, but I'm just a lowly developer....
May 29, 2020 at 3:49 pm
Any admins about to ban https://www.sqlservercentral.com/forums/user/james500 ? He's spammed over 50 topics in the last hour with advertisements for counterfeit documents.
No idea how to ban someone, but I...
May 29, 2020 at 12:31 pm
Any admins about to ban https://www.sqlservercentral.com/forums/user/james500 ? He's spammed over 50 topics in the last hour with advertisements for counterfeit documents.
I was half expecting/hoping that there would at least...
May 29, 2020 at 12:06 pm
Note to others about the jasonbrimhall link – MBAM blocked it for me:

May 29, 2020 at 12:03 pm
If you would like help creating a solution in code, please provide your data in consumable format (ie, one which can be cut & pasted into SSMS).
May 29, 2020 at 12:00 pm
Start date is not relevant ... at least based on the sample data provided.
SELECT *
FROM #TEMP t
WHERE t.EDate >= '20190101';
May 29, 2020 at 11:54 am
That's effectively the same answer, from three posters I trust, so I'll just carry on doing it this way! Thanks to you all for taking the time to respond.
May 28, 2020 at 4:26 pm
Have you tried using COUNT(DISTINCT col)?
May 28, 2020 at 3:38 pm
Your query will never get total record counts for the tables because you are filtering out rows in the WHERE clause before the COUNT is applied..
May 28, 2020 at 3:33 pm
Well, all csv files belongign to a specific table are structured the same. BUt based on some characters in the file names, they are differently structured nad go into...
May 28, 2020 at 12:56 pm
Viewing 15 posts - 2,656 through 2,670 (of 13,879 total)