Viewing 15 posts - 1,201 through 1,215 (of 1,347 total)
You shouldn't need rowcount.
You didn't explain which data column determines the grouping. In the code I posted above, I assumed feature_sequence contains the number from 1 through 4 which determines which...
February 15, 2005 at 11:27 am
Check the security on the K: drive - make sure the user account that EM uses to connect to the server has permissions on the drive (EM executes a system...
February 15, 2005 at 10:00 am
select clientid, clientname, clientcontprimaryagtind
from tclients
Where Not Exists (
Select *
From tclientcontacts
Where clientcontclientid = clientid
And clientcontprimaryagtind = 'Y'
)
February 14, 2005 at 10:36 am
How do you know it's an empty string in the resultset, and not 1 or more spaces ?
'' <> ' ' <> ' '
Try trimming Conutry, so that empty...
February 11, 2005 at 3:34 pm
I suggest at this point you take a step back and concisely describe exactly what the problem is.
If there are blank column values in the resultset, that would imply the...
February 11, 2005 at 3:01 pm
What are you expecting the results to be ? When you say "blank", do you mean an empty result set (no rows returned) or there are blanks in the returned...
February 11, 2005 at 12:49 pm
PWDEncrypt() is an undocumented and unsupported built-in SqlServer function.
There is no guarantee that it will exist in future versions of SqlServer.
February 11, 2005 at 12:01 pm
See BOL on the DATEDIFF() function.
Where DateDiff(dd, YourDateColumn, GetDate() ) <= 60
February 11, 2005 at 9:18 am
Your task will get easier in the new DTS (now called Integration Services) in Yukon/2005 when it is released.
eg: http://www.sqlis.com/default.aspx?23
February 11, 2005 at 9:04 am
>>Does the order of columns in the where clause have an effect on performance.
No. To see for yourself, paste the 2 queries into Query Analyser (QA) and type CTRL-K (equivalent...
February 11, 2005 at 9:01 am
I just make use of the MDI interface in QA for this. If I have results in a grid, and I want to run a 2nd query, I CTRL-N, open...
February 11, 2005 at 8:57 am
Joint to a virtual table based off the same table:
Select feature_id feature_text,feature_sequence, feature_date
From features As f
Inner Join
( -- virtual table
select max(feature_date) As MostRecent, feature_sequence
from features...
February 10, 2005 at 5:01 pm
You could create a linked server, and run a cross-instance query of
Insert Into Target .... Select * from Source Where not Exists ...
Or you could create a DTS package, with...
February 10, 2005 at 4:44 pm
See BOL on T-SQL syntax for WHILE, DECLARE CURSOR and FETCH NEXT. Using these you can build something functionally equivalent.
However, just because you can do this, doesn't mean you should.
I...
February 10, 2005 at 4:15 pm
The outcome also depends on version of Sql Server, since Sql2K adheres more strictly to datatype precedence rules.
Read the BOL section titled "Data Type Precedence" - as already stated, the...
February 10, 2005 at 12:35 pm
Viewing 15 posts - 1,201 through 1,215 (of 1,347 total)