Viewing 15 posts - 1,786 through 1,800 (of 13,469 total)
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...
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...
May 1, 2015 at 6:35 am
metroman17 (4/29/2015)
These app users can connect to the database using their logins.But...
April 29, 2015 at 12:30 pm
certainly, with more information.
map to what? active directory? a separate table? SQL users to SQL logins?
give us a bit more detail what you are after.
April 29, 2015 at 11:23 am
ALTER statement always adds columns to the end. it does not support identifying the column_id and stuff like that.
SQL doesn't really care the order of the columns , but...
April 28, 2015 at 11:23 am
looks like his table is an Entity-Attribute-Value model, so he uses the same table multiple times for various lookups.
April 28, 2015 at 7:16 am
most recent edit no matter what(so one row, period) or most recent by EntityId?
your current logic groups by GROUP BY EL.Id, which is probably the Identity() column of the table,...
April 24, 2015 at 2:46 pm
i'd expect either the keyword IN or OUT to exist in the query, right?
bcp STATRLO.dbo.PM-allactivity-emaillog_042315 in format nul -c -t, -f C:\database\Activity_c.fmt -S stat-hp\sqlexpress - T
i always use query out...
April 24, 2015 at 2:41 pm
adam-639168 (4/24/2015)
e.g. select * from dbo.mytablefunction(ACCOUNT)
I have a list of accounts in a different table...
April 24, 2015 at 1:03 pm
create either a server side trace or an extended event that captures errors. then you can review them at your leisure.
you can limit it to certain tspecific error values if...
April 24, 2015 at 12:45 pm
forrest77 (4/24/2015)
April 24, 2015 at 12:42 pm
i'd stick with the explicit commands that Gail suggested, but
this worked fine for me when i quick tested it, but if you want it to occur at specific times, it...
April 24, 2015 at 11:38 am
ok, so you have ~3000 users in active directory;
did you add a login for a windows group like myDomain\RegisteredUsers? or did you do user by agonizing user ~3000...
April 24, 2015 at 6:35 am
same table? sure:
UPDATE Customer
SET UpdatedDate = CreatedDate
WHERE UpdatedDate IS NULL
AND CreatedDate IS NOT NULL
different table ? if you can join the tables together, then yes.
UPDATE Customer
SET VerifiedDate...
April 23, 2015 at 1:57 pm
Viewing 15 posts - 1,786 through 1,800 (of 13,469 total)