Viewing 15 posts - 286 through 300 (of 499 total)
While we're on the subject: I've been wanting to experiment with these [ code ] blocks for a while, as they don't always do what I expect.
SELECT
'blank line above',
'and below'
above...
June 23, 2009 at 2:57 am
It could just be that its off screen somewhere.
Not sure if this applies to you, but I worked on a laptop with extra monitor, and as any windows can be...
June 19, 2009 at 4:42 am
If you only have the URL to the file, then one method is writing a C# CLR procedure which accepts a URL, then goes to get the file, and either...
June 19, 2009 at 4:06 am
I had a short stint working for the marketing manager of a hospitality retailer. He often got free samples of the various offerings of breweries, wine merchants, cider makers...
June 18, 2009 at 7:34 am
Bruce W Cassidy (6/17/2009)
Tom Brown (6/17/2009)
Time for a nice Merlot.[font="Verdana"]I like my merlots, I admit. But I have been more keen on syrahs (shiraz for you aussies) of late.[/font]
I...
June 18, 2009 at 5:49 am
Another possibility is to create a table valued function instead of a stored procedure.
-- simple example as a stored procedure
CREATE PROC MyProc
@PARAM INT
AS
SELECT TOP(@PARAM) *
FROM sys.syscolumns;
GO
EXEC...
June 18, 2009 at 2:41 am
For the Anything that is NOT about SQL! forum, this thread has gotten a bit technical. I'm used to the light-hearted bits.
Time for a nice Merlot. 😀 as the...
June 17, 2009 at 4:22 pm
I went through a similar exercise a long time ago - using SQL 2000. We listed all stored procedures, found all references to them in the application code (so...
June 17, 2009 at 4:09 pm
John Rowan (6/17/2009)
June 17, 2009 at 3:41 pm
It depends on how your excel file is stored in sharepoint.
If its an item in a document library then it has its own URL, you should be able to...
June 17, 2009 at 3:29 pm
Assuming your example is as you intended (it worked for me) I can't see a way of replacing the two joins on #tmp_code with a cte - but you could...
June 17, 2009 at 3:19 pm
I wouldn't say its a requirement or a best practise
The answer is 'it depends' - on the data.
A Foreign key is used to enforce referential integrity - so you...
June 17, 2009 at 2:04 pm
No, the SELECT statement is designed that way.
You can achieve what you want like this (its not good practise)
IF NOT EXISTS (SELECT * FROM products
WHERE productname = 'bob')
...
June 17, 2009 at 1:57 pm
Grant Fritchey (6/15/2009)
Lynn Pettis (6/15/2009)
Actually, not much of a Baseball fanatic, but it looks like the Rockies are doing good so far.
Actually, I could care less about baseball too.
Hey, BBC...
June 15, 2009 at 8:54 am
I think what Jeff's getting at is doing a date range report, where the data you're querying has time a component.
So you want all June's Data - BETWEEN '2009-06-01' AND...
June 13, 2009 at 12:32 pm
Viewing 15 posts - 286 through 300 (of 499 total)