Viewing 15 posts - 181 through 195 (of 271 total)
CREATE TABLE dbo.myTable
(
FieldA [INT],
FieldB [VARCHAR](5),
FieldC [INT],
)
And this failed...
INSERT INTO myTable (FieldA,FieldB,FieldC)
SELECT item from dbo.DelimitedSplit('1,2,3',',')
UNION ALL SELECT item from dbo.DelimitedSplit('A,B,C',',')
UNION ALL SELECT item from dbo.DelimitedSplit('10,20,30',',')
I am confused, I thought I did...
July 5, 2009 at 5:15 pm
Do you really want our help?
YES PLEASE
If so, please review the code I provided in the SQLTeaserCode.txt file.
Yes I have, that deals with one column...
July 5, 2009 at 4:44 pm
Ok first thanks to the forum for the function 'DelimitedSplit'
This is my next challenge..
I need to do an insert into a table
FieldA, FieldB, FieldC
From my three data strings like:
'1,2,3'
'A,B,C'
'10,20,30'
I...
July 5, 2009 at 4:09 pm
Here is another tab split function that I pulled from a SQL 2000 book by Andrew Novick : Transact SQL UDFs
Which is better Lynns or Andrews ??? 😎
July 4, 2009 at 6:46 pm
I gave it a go. I go the computed column working ok.
Buy I couldnt make it unique key or index as error message said ' something was not determinstic'...
July 4, 2009 at 6:40 pm
How much overhead am I placing on a table with a computered column?
Will it slow inserts down much ?
July 2, 2009 at 3:59 pm
..Try It..
I am but my TEST data set only allows 30 or so selections..
Are you saying you are not sure if it can handle 100+ selections????
Please dont be cyptic,...
July 1, 2009 at 4:40 pm
Increase the size of the string.. I assume that means what I thought
String of different sizes
'1,2,3'
or
'1'
or
'1,2,3,5,6,7,9 ...etc to... 89,90,91,92'
So 92 IDs in the string, that would work also would it...
July 1, 2009 at 4:29 pm
hang on..
I assume DelimitedSplit.txt can handle 1, 5, to 50 or 80 IDs at a time ??
July 1, 2009 at 4:05 pm
Thanks, well if I get 1000's of users, I will hire some one to advise me... until I am there ...thanks for your help !!
Signing off
June 16, 2009 at 3:41 pm
Ok the last post makes sense...
.."Rebuild the clustered index periodically "...
I assume you mean the Primary Key identity field.
How is this done, rebuid a PK ? Do yo just remove...
June 16, 2009 at 3:14 pm
Well dont hold back.. how do you re build a table , and re load records into a table that has a identity key...
I guess you just turn identity ...
June 16, 2009 at 2:33 pm
To conclude..
I am going to use the simple Identity key as my main PK on all tables.
My delete process for a record (in all tables) is like this a field...
June 16, 2009 at 2:12 pm
Viewing 15 posts - 181 through 195 (of 271 total)