Viewing 15 posts - 6,631 through 6,645 (of 13,469 total)
i'm guessing here, but i'm thinking that using a FOR XML to concatenate the itwm field into a comma delimited list might be what you are after;
here's a basic example...
October 4, 2011 at 10:53 am
is the login the user is connected to a member of the sysadmins?
is "User1" really a domain account like myDomain\User1 that might be inheriting BuiltIn\Administrators,?
October 4, 2011 at 10:47 am
not sure what you mean by elimination, nor what data you wanted at the end;
to me it looks like you have to join the table agaisnt itself...
is this right?
/*
--Results
organization account...
October 4, 2011 at 9:53 am
mohammed moinudheen (10/4/2011)
October 4, 2011 at 5:54 am
for me, cursors are ok in certain situations...when dealing with metadata items like you are.
my rule of thumb is: if it's in one database, no cursors allowed.
so the corallary...
October 4, 2011 at 5:50 am
it's pretty well documented that SQL will keep data for a TEXT datatype in a varchar(8000) as long as it's less than 8000 chars, otherwise it's stored a different way,and...
October 3, 2011 at 2:35 pm
your sample data didn't show the "or" part of your query...all the data would be returned regardless, because the4y are all between your start and end dates.
i changed the sample...
October 3, 2011 at 2:09 pm
paul take a look at this thread from a while ago
http://www.sqlservercentral.com/Forums/Topic1115027-359-1.aspx
in that thread, I slapped together an example of a proc that executed as dbo,and did the following:
created(or found) a...
October 3, 2011 at 1:50 pm
does this return the expected data?
SELECT
id,
SUBSTRING(CONVERT(VARCHAR(max), Data),
CHARINDEX('<t2>', CONVERT(VARCHAR(max), Data)) + 4,
( CHARINDEX('</t2>', CONVERT(VARCHAR(max), Data)) -...
October 3, 2011 at 1:13 pm
books online 's first logon trigger example is limiting a login from more than three connections:
http://msdn.microsoft.com/en-us/library/bb326598.aspx
make sure you NEVER CLOSE the window you use to create your login trigger during...
October 3, 2011 at 12:37 pm
patla4u (10/3/2011)
I want to know that...if user can insert,update and delete some records and i want to track all information(means user name ,time,which database) then how can i do...
October 3, 2011 at 12:19 pm
PRINT @teste just before the attempt to bcp. it's probably a single INSERT command, right, and not a whole stack of inserts, because you are not putting your results together...
October 3, 2011 at 11:34 am
well to do it exclusively via xp_cmdshell, you've got to have the right command, and it's got limitations.
the maximum length of the string that you can use at the command...
October 3, 2011 at 10:06 am
river1 (10/3/2011)
The problem is not with the query...If i execute the query, it runs well.
The problem is when o try to save the results to a txt file
where is the...
October 3, 2011 at 9:44 am
Viewing 15 posts - 6,631 through 6,645 (of 13,469 total)