Viewing 15 posts - 5,011 through 5,025 (of 6,037 total)
No one is hostile with you.
If you have been asked to carry bunch of logs with your Porche you better don't take the challange. Because you gonna lose your Porsche...
_____________
Code for TallyGenerator
September 28, 2006 at 3:31 pm
Application has nothing to do with table structure.
It must use ONLY SP calls.
If you run ad-hoc queries it's probably too late to optimise performance of your application(s).
_____________
Code for TallyGenerator
September 28, 2006 at 2:27 pm
Only one point:
remote query will copy the whole remote table to local server. No use of index, no way for optimiser to do its job.
So, on big tables this query...
_____________
Code for TallyGenerator
September 28, 2006 at 2:18 pm
You may:
1) get it changed;
2) get out of that job (project)
You to choose.
I would not even touch such c..p.
There is no way to succeed using this kind of database...
_____________
Code for TallyGenerator
September 28, 2006 at 2:06 pm
That many columns in one table means that you missed to read or/and understand some basic educational things about relational databases.
Not sure any "ROBUST PLAN" can help you with this.
Sorry.
_____________
Code for TallyGenerator
September 28, 2006 at 5:17 am
So, there is implicit conversion.
And there is datatype issue indeed.
But not only.
Matching to comma separated list does not work the way you made it.
You need to use "split" function to...
_____________
Code for TallyGenerator
September 27, 2006 at 11:01 pm
That's terribly WRONG!!!
What you see in EM is not what you store in DB!!!
EM shows you not actual date value but result of conversion to varchar with...
_____________
Code for TallyGenerator
September 27, 2006 at 6:05 pm
DATEPART returns int (see BOL)
So, there is no point in using
CONVERT(int, DATEPART(dd, s.dtDate))
_____________
Code for TallyGenerator
September 27, 2006 at 4:38 pm
WHEN (CHARINDEX(' ', ad_str1) < 10) AND (CHARINDEX(' ', ad_str1) <> 0
I'm wondering what must happen to give you CHARINDEX () < 0 ?
![]()
_____________
Code for TallyGenerator
September 27, 2006 at 4:12 pm
Use @@Rowcount
_____________
Code for TallyGenerator
September 27, 2006 at 4:08 pm
Varchar ( - what?)
There is no datatype "varchar". There are varchar(20), varchar(50), varchar(100), varchar(500), varchar(1000).
What is datatype of your column LedgersID?
_____________
Code for TallyGenerator
September 27, 2006 at 5:56 am
There is no right or wrong. It depends.
But processing data using remote server functionality is definitely wrong.
Imagine, to apply some function from remote server you need pump all data to...
_____________
Code for TallyGenerator
September 27, 2006 at 12:28 am
Did you try?
This works perfectly:
DECLARE @tbl TABLE (CUser VARCHAR(10),Software VARCHAR(30))
INSERT INTO @tbl SELECT 'SBauer','Microsoft Excel'
INSERT INTO @tbl SELECT 'SBauer','Microsoft Access'
INSERT INTO @tbl SELECT 'GSmith','Microsoft Word'
INSERT INTO @tbl SELECT 'GSmith','Microsoft...
_____________
Code for TallyGenerator
September 26, 2006 at 10:36 pm
Don't know if mine is better, but I'm too lazy to deal with those slices. ![]()
Some advanced feachure are missed here, but it not...
_____________
Code for TallyGenerator
September 26, 2006 at 10:20 pm
Viewing 15 posts - 5,011 through 5,025 (of 6,037 total)