Viewing 15 posts - 5,641 through 5,655 (of 13,460 total)
sure, something like this will give you all the spids that are coming from a given hostname...
if i have 8 SSMS windows open, i will have 8 spids, so it's...
Lowell
April 5, 2012 at 2:17 pm
looks like you already have it there, Welsh Corgi;
you are using the object_schema_name() function, so just add it to your WHERE staetment :
AND OBJECT_SCHEMA_NAME(ep.major_id) = 'CTL'
Lowell
April 5, 2012 at 1:04 pm
adb2303 (4/5/2012)
I execute the stored procedure and I get 5 rows back
great...working as expected
I disable the 'testsqlacc' in AD and get 5 rows back when exec'ing stored proc
disabling a user...
Lowell
April 5, 2012 at 10:03 am
jshahan (4/5/2012)
Lowell
April 5, 2012 at 9:02 am
just my two cents:
if you've created a CLR assemby on one of your servers, it is trivial to script the assembly as a binary string, which can then be executed...
Lowell
April 5, 2012 at 8:42 am
small world, i'm playing with the exact same thing, and it is working beautifully.
YAddress has posted a nice CLR on codeplex for US addresses , and it hits a free...
Lowell
April 5, 2012 at 7:33 am
ok...help us help you;
what would you like to do to the data? for example, if you KNOW the datetime string is always at the front, and always has the GMT...
Lowell
April 5, 2012 at 5:59 am
then just change the join condition to
ON (target.ITEM = source.ITEM)
AND (target.DESCRIPTION= source.DESCRIPTION)
Lowell
April 4, 2012 at 1:13 pm
something like this passes the syntax check:
MERGE INTO dbo.tableA AS Target
USING(
SELECT ITEM, DESCRIPTION FROM dbo.tableB
) AS source
ON (target.ITEM...
Lowell
April 4, 2012 at 1:02 pm
just a basic logic error;
a trigger uses the virtual INSERTED and DELETED tables, not the whole table itself.
using the INSERTED table will update only the items that were affected, and...
Lowell
April 4, 2012 at 8:34 am
sys.objects is a view which is filtered on the database_principals permissions.
rows of data may exist for an admin which will not be visible to that user; simple enough to prove:
create...
Lowell
April 4, 2012 at 7:50 am
well, as you probably read over at books online about sp_settriggerorder (Transact-SQL), you can set the first trigger, and the last trigger.
there is no way, with four triggers, to know...
Lowell
April 4, 2012 at 5:39 am
ssegereise (4/4/2012)
I can no longer open my database its needs MS Sql SERVER Beta 2 how do i get it
databases all by themselves are independant of service packs.
only system databases(master,model,msdb)...
Lowell
April 4, 2012 at 5:26 am
another way to do it:
use xp_cmdshell to get a list of all files in a directory, or all files including subdirectorys;
sticking that data into a table, you can join the...
Lowell
April 3, 2012 at 3:27 pm
ok got it.
the files may have been deleted.
You could do it via xp_cmdShell, or with a nice CLR that Elliot Whitlow has posted out there:
http://nclsqlclrfile.codeplex.com/
then you can use a simple...
Lowell
April 3, 2012 at 3:15 pm
Viewing 15 posts - 5,641 through 5,655 (of 13,460 total)