Viewing 15 posts - 6,586 through 6,600 (of 13,460 total)
before i discovered CLR functionalities,
i've done this by doing a normal old BCP that pipe delimits mydata like this:
EXECUTE master.dbo.xp_cmdshell
'bcp "SELECT object_name(object_id) As TbLName,name as ColName FROM SandBox.sys.columns...
Lowell
October 11, 2011 at 7:12 am
?
With mySampleData (id,book_code,price)
AS
(
SELECT 1,30100,0 UNION ALL
SELECT 2,30200,0 UNION ALL
SELECT 3,40100,0 UNION ALL
SELECT 4,40100,100 UNION ALL
SELECT 5,1000100,85 UNION ALL
SELECT 6,1000200,180 UNION ALL
SELECT 7,2000100,45 UNION ALL
SELECT 8,2000200,85
)
SELECT c1.book_code,
...
Lowell
October 11, 2011 at 6:48 am
i think you want to enhance the join so items in the self join don't find themselves;
this is just slightly modified from yours:
SELECT c1.book_code,
...
Lowell
October 11, 2011 at 5:29 am
haven't done this myself, but i know you have to use impersonation;
this should help, straight from Microsoft:
http://msdn.microsoft.com/en-us/library/89211k9b%28v=vs.80%29.aspx
Lowell
October 11, 2011 at 4:37 am
Winston i think it's a scripting option that is turned off by default;
if you change these settings, do you get the script you are expecting?

Lowell
October 11, 2011 at 4:30 am
i remember that SQL 2000, via enterprise manager, it is possible to use the GUI to change the text of the procedure, but without executing that new definition ,...
Lowell
October 11, 2011 at 4:22 am
take a look in the script library here on SSC, there are a lot of contributions that do what you are asking;
I've been using this from http://vyaskn.tripod.com/code.htm for quite a...
Lowell
October 10, 2011 at 7:09 pm
it looks like you are testing the number of records that match...so i'd cosnider changing ti to simply IF EXISTS:
IF EXISTS(SELECT f.name
...
Lowell
October 10, 2011 at 2:04 pm
YSLGuru (10/10/2011)
Lowell
October 10, 2011 at 1:14 pm
GSquared (10/10/2011)
Are you just auditing the commands, or do you need to audit the actual data changes as well?
C2 will audit both, but...
Lowell
October 10, 2011 at 12:13 pm
no...I say use the undocumented stuff whenever it's needed.
technically sp_MSForEachdb and sp_MSForEachTable are undocumented and unsupported, but widely used.
many times, MS is calling something an "undocumented feature", but added needed...
Lowell
October 10, 2011 at 7:32 am
maybe i'm oversimplifying, but can't you simply wrap the query results with the RANK function ?
SELECT RANK() OVER (ORDER BY [MashupMetaInfo_Id], MashupMetaInfo_Title, MashupMetaInfo_Tag) AsTheRank,
MySubQuery.*
FROM
(
...your original query goes here....
) MySubQuery
ORDER...
Lowell
October 10, 2011 at 5:38 am
yes, Full Text indexing has a thesaurus ; so if you searched for "camero", that's a synonym for "chevy"
you can do the same for expected misspellings of your search terms,...
Lowell
October 9, 2011 at 6:16 am
reformatted for readability:
SELECT wooBillingAmount_Cp,
worIsBillable,
bcoUserValue1,
bcoID,
...
Lowell
October 8, 2011 at 9:12 am
Steve Jones - SSC Editor (9/16/2008)
Which results?The alias ones? Use
where [10%] > 1000
Jeffry Williams nailed the right techniques;
you can reference an alias in the ORDER BY clause, but not the...
Lowell
October 8, 2011 at 8:20 am
Viewing 15 posts - 6,586 through 6,600 (of 13,460 total)