Viewing 15 posts - 1,771 through 1,785 (of 13,460 total)
here's how i get tables in the order of hierarchy; i could use this to build TRUNCATE/DELETE commands .
as i remember it SequenceOrder = 1 means i can truncate, and...
Lowell
May 11, 2015 at 10:22 am
a space in the LIKE is just as valid as any regular char.
change your like to have the spaces:
Select top 100 * FROM tbl_abc
where
--AIMS_Value like '%LVAD%' --old
AIMS_Value like...
Lowell
May 11, 2015 at 10:17 am
If I'm reading this right, I would change the strategy. there might be additional details why you HAVE to go SQLcmd, but i'll start with my assumption.
instead of stepping out...
Lowell
May 11, 2015 at 10:14 am
from the connection side, you cannot tell if an ODBC connection is a linked server on the far end, or a application or anything like that.
If you've been smart and...
Lowell
May 11, 2015 at 7:26 am
he could use a varchar 8000 or even a varchar(max) with text 0's and 1's! then he'd have an unlimited number of possible values!
all he would need is a table...
Lowell
May 8, 2015 at 3:34 pm
removing duplicates will mean rewriting the file, so whether you put it in sq serverl, and sort+ group, or do it in memory via aggregates or script tasks, it still...
Lowell
May 8, 2015 at 2:20 pm
i did not write this, but i saved a copy from 2011. search for some strings in the code to find the ooriginal thread here:
Find String like 'aaaaa' or...
Lowell
May 7, 2015 at 10:20 am
i think you just put a case in your group, like this:
group by
CASE WHEN [Category]LIKE '%PII%' OR
LIKE '%PIPEDA%' OR
LIKE '%HIPAA%' OR
LIKE '%Resume for HR%'
Then 'PII'
WHEN...
Lowell
May 7, 2015 at 10:10 am
also, check if you are running DataCenter Edition on the ESX; i believe that has licensing specific to VM instances, which is different than when you reuse Enterprise/Standard licenses...
Lowell
May 6, 2015 at 1:33 pm
that code will update all rows, instead of just what was just inserted.
i'd do it this way instead, but i don't know the PK of the table
CREATE TRIGGER country_Insert_Update
...
Lowell
May 5, 2015 at 7:02 pm
kd11 (5/4/2015)
Lowell
May 4, 2015 at 12:14 pm
your sample data didn't have any duplicates; since this seems a little homework-like, i'll give you just a couple of hints.
duplicates are typically removed by using a GROUP BY ...
Lowell
May 4, 2015 at 12:09 pm
Thanks for the heads up, Martin;
since i was doing this in TSQL, i went ahead and just used the SQL server backup directory for my backups, instead of the default...
Lowell
May 1, 2015 at 10:19 am
not sure what you need from Active directory, but something i do once a week via PowerSell is to query AD, and put the result sin a SQL table in...
Lowell
May 1, 2015 at 6:40 am
charipg (4/30/2015)
thank you.Actually i need a sql script to add the user to local admin also.
xp_cmdShell for the commandline script already provided, but i'd bet there is a 90% chance...
Lowell
May 1, 2015 at 6:35 am
Viewing 15 posts - 1,771 through 1,785 (of 13,460 total)