Viewing 15 posts - 31 through 45 (of 109 total)
Stephen Wolfram (inventor of WolframAlpha among many other things) already does 'life logging' - here's a quote from a revent interview with him:
"I'm an information pack rat," he confesses. Recording...
December 10, 2009 at 2:40 pm
my code was in response to this question:
I want to split the string as below
<all chars-3> space <last 3 chars>
Eg: "ABCDEFG" should appear as "ABCD EFG"
"ABC DEFGH" should appear as...
October 18, 2009 at 12:17 pm
another method...
DECLARE @txt VARCHAR(20)
SELECT @txt = 'helloALL'
select STUFF(@txt,LEN(@txt)-2,0,' ')
🙂
October 15, 2009 at 4:33 pm
Thanks for the additional 'speed tricks' Jeff... 🙂
Btw - how does the performance of the 'FOR XML' method of extraction compare with other methods?
Also, the last line of the above...
October 11, 2009 at 4:21 pm
...or to remove the trailing comma:
DECLARE @emp VARCHAR(MAX)
SELECT @emp = CAST
(
(
SELECT [Empid] + ','
FROM yourTable
WHERE LEN([Empid])>0 AND [Empid] IS NOT NULL
FOR XML PATH('') ...
October 7, 2009 at 7:50 pm
how about...
SELECT [Empid] + ','
FROM yourTable
WHERE LEN([Empid])>0 AND [Empid] IS NOT NULL
FOR XML PATH('')
is that method any faster?
October 7, 2009 at 7:18 pm
Very true re: toasters - and just about all other consumer products
The problem is also that many companies (i.e. the people in charge of running them) are only interested in...
August 26, 2009 at 1:37 pm
Maybe I should send him a large quantity of posts from this forum? There are plenty of Americans answering questions and doing work for people overseas here
How ironic would it...
August 20, 2009 at 3:04 pm
Hi - if the job contains one or more schedules, you may find a clue by running this query:
SELECT
sp2.[name] job_owner
, sp.[name] scheduled_by
, j.[name] ...
August 18, 2009 at 8:26 pm
my mistake - I didn't check to see which version of SQl you were using - apologies
It works well for SQL 2005 though! :w00t:
July 15, 2009 at 1:29 pm
This will return a comma separated list:
SELECT ',' + [columnName]
FROM [TableName]
WHERE id = @value
FOR XML PATH ('')
I have tested a similar query which works ok
July 14, 2009 at 9:21 pm
Sounds like you are running the query against one of the system databases such as 'master'.
Make sure that you run the query against the database whose tables and columns...
July 14, 2009 at 5:21 pm
Similar situation here to that mentioned above by Ross
I think that one of the main reasons that cursors are used is familiarity with procedural code rather than set-based code...
July 12, 2009 at 8:39 pm
ssismaddy:
Shrinking Database or just the log??
The job used DBCC SHRINKDATABASE - so both database and log files were shrunk.
I have considered shinking the logfile after reindexing - but decided not...
June 30, 2009 at 5:36 pm
Hi Michael
I'm running transaction log backups every hour - which has been sufficient to maintain a relatively small log file (500Mb) for daily transactions. The growth of the logfile to...
June 30, 2009 at 3:38 pm
Viewing 15 posts - 31 through 45 (of 109 total)