Viewing 15 posts - 571 through 585 (of 683 total)
No worries
I've extended the code to deal with different separators and I've tweaked it slightly. If you want to make specific replacements at...
March 23, 2006 at 6:33 am
Hi Elizabeth,
This should give you some ideas and get you started...
--prepare and show example data
declare @project table (id smallint...
March 23, 2006 at 4:30 am
I'm pretty sure there's no difference whatsoever speed-wise - they will be interpreted in exactly the same way. I prefer between from a readability point of view, but that's just my preference...
March 23, 2006 at 3:42 am
Hi Najeeb,
Chillino is right - using a 'numbers' table makes this problem very easy to solve. Here's one way you can achieve what you need. Just run it to see......
March 23, 2006 at 3:28 am
Hi all,
My post doesn't answer Lowell's problem (sorry Lowell! ), but here's a related article I wrote a few years ago...
http://www.sqlservercentral.com/columnists/rrandall/creatingascriptfromastoredprocedure.asp
The title was originally "Creating...
March 22, 2006 at 12:20 pm
Hi Bill,
Aren't you almost there once you've got the first day of this qtr (as you have). Just take off 3 months for a) and 3...
March 22, 2006 at 12:08 pm
Something like this...
declare @orders table (orderid int)
insert @orders
select 1
union all select 2
union all select 3
declare @orderDetails...
March 22, 2006 at 11:59 am
You might want tor try using both carriage return and line feed...
CHAR(13) + CHAR(10)
March 21, 2006 at 11:09 am
Hi all,
I wrote this for fun, and thought I'd share it here, since it's vaguely related. It's interesting mathematics (in that the method works) if nothing else.
March 21, 2006 at 6:05 am
Is there a reason why you can't just use substring? Like this...
--This SQL script is safe to run
DECLARE @t TABLE (Id INT IDENTITY, Name_Id...
March 20, 2006 at 3:10 am
The SELECT INTO statement creates a new table and populates it with the result set of the SELECT. The structure of the new...
March 20, 2006 at 2:48 am
Viewing 15 posts - 571 through 585 (of 683 total)