Viewing 15 posts - 3,361 through 3,375 (of 5,590 total)
So, are the only valid characters to be the characters on the keyboard? These will have an ASCII code between 32 and 126. So:
declare @test-2 table (Col1 nvarchar(500));
declare @testdata nvarchar(500);
set...
September 3, 2010 at 7:58 am
Grant Fritchey (9/3/2010)
After the silly work I had to go through to get this to function, I went ahead and made it into a blog post[/url] if anyone is interested.
The...
September 3, 2010 at 7:46 am
You might want to check out the common date/time routines link in my signature.
September 3, 2010 at 7:40 am
This should get you started.
Things still left to to:
1. convert to %, and summarize.
2. probably want this to be dynamic.
Please read the Cross-Tabs and Pivot Tables, Part 1 and Part...
September 3, 2010 at 7:37 am
Trybbe (9/3/2010)
Thanks guys but what if I have two variables
Just call the DelimitedSplit8K function for each one.
However, I sense that there is something else going on. Do you need to...
September 3, 2010 at 6:10 am
CirquedeSQLeil (9/2/2010)
WayneS (9/2/2010)
Click here for the latest Delimited Split Function.Then, it's just:
SELECT ITEMFROM dbo.DelimitedSplit8k(@val, ',')
Nice resource, Wayne.
Thanks. I've been using it so much lately, that I've made it...
September 2, 2010 at 8:07 pm
anand_vanam (9/2/2010)
SET @FileName='SSC1, SSC2, SSC3'
CREATE TABLE #FileNames
(FileID INT IDENTITY(1,1),
FileNameList VARCHAR(30)
)
SET @FileName=LTRIM(RTRIM(@FileName))
--SELECT @FileName
BEGIN
...
September 2, 2010 at 8:06 pm
declare @test-2 TABLE (customerID char(2), Cat varchar(5), Cnt int);
-- See how you start off by actually creating a table and then
-- inserting the data into it? Your doing this...
September 2, 2010 at 8:01 pm
bpowers (9/2/2010)
September 2, 2010 at 7:50 pm
Glad you got it working... and I'm sorry that I had to disappear (time to drive home to avoid the hurricane).
September 2, 2010 at 7:45 pm
LutzM (9/2/2010)
WayneS (9/2/2010)
LutzM (9/2/2010)
But...DECIMAL(19,4) (or NUMERIC(19,4)) and MONEY are not, as I just googled...
It seems like SQL Server does the rounding different for money and numeric/decimal.
Good to know....
Probably has something...
September 2, 2010 at 7:41 pm
September 2, 2010 at 7:37 pm
Alvin Ramard (9/2/2010)
Steve Jones - Editor (9/2/2010)
Alvin Ramard (9/2/2010)
BTW, we need one more emoticon. We need one for banging head against something.Isn't that WayneS's avatar?
I wouldn't call it an...
September 2, 2010 at 7:12 pm
LutzM (9/2/2010)
But...DECIMAL(19,4) (or NUMERIC(19,4)) and MONEY are not, as I just googled...
It seems like SQL Server does the rounding different for money and numeric/decimal.
Good to know....
Probably has something to do...
September 2, 2010 at 1:22 pm
Looks like you just have to verify everything is fine, then you're ready to go!
September 2, 2010 at 1:16 pm
Viewing 15 posts - 3,361 through 3,375 (of 5,590 total)