Viewing 15 posts - 256 through 270 (of 444 total)
Another great Article.
Thanks...
April 27, 2009 at 12:50 am
Try Count instead of SUM.
OR
Get the results seperately for each Union into another table
for example,
Insert into @t1
Select ...
and Get @@ROWCOUNT after each Insert.
I think this will be...
April 27, 2009 at 12:36 am
Are you asking for the Currently Logged In users in the SQL Server?
see master.dbo.sysprocesses.
If you are willing to store the history of the Logged In Users, Create SP and...
April 27, 2009 at 12:19 am
Code4Cash,
I dont know the details of XML in SQL Server 2000, but there is alot you can do in SQL Server 2005.
April 26, 2009 at 10:58 pm
I think it all depends upon the indexes on your data. The frist choice, as per my opinion, should be LEFT OUTER JOIN for consistent performance.
April 26, 2009 at 10:53 pm
By specifiying an execution context (such as by using the execute as user = 'user1') in which a module (such as a sp, trigger, queue etc) is executed, we can...
April 26, 2009 at 10:28 pm
Plz check http://msdn.microsoft.com/en-us/library/ms191296.aspx.
The example in the link will explain all to you.
April 24, 2009 at 3:27 am
Its much better to set Default Values for such columns where NULLs can be inserted. This resolves many conversion issues.
April 24, 2009 at 3:03 am
How about storing data in XML Format and then XQuery the data on the maximum available elements...?
--XML For Client 1
Declare @vXML XML
Set @vXML = ''
Select x.header.value('@ClientID','int') ClientID,
x.header.value('@C1','nvarchar(50)')...
April 24, 2009 at 1:46 am
It might be also like this (with the Insertion into another table Part...)
Declare @tbl Table (id int, idv varchar(10))
Insert into @tbl
Select 1,'1' Union All
Select 1,'2' Union All
Select 3,'3' Union All
Select...
April 24, 2009 at 1:26 am
Select ContactId from Contacts
EXCEPT
Select ContactId from Incidents
April 24, 2009 at 1:16 am
April 24, 2009 at 1:09 am
In such case when Source have different datatypes as compare to the destination, there are alot of comparisons to be made to avoid the conversion errors.
You will have to...
April 24, 2009 at 1:06 am
If you are diciding that the XML is cutting short with the help of PRINT statement, let me tell you that the print statement prints the limited number of characters.
April 23, 2009 at 6:06 am
I think The condition should do it.
where
(delivery_date between @StartDate and @EndDate)
And
(
(driver = e.emp_cd and (driver = @Driver or '%' = @Driver))
or
(helper = e.emp_cd and (helper =...
April 23, 2009 at 3:38 am
Viewing 15 posts - 256 through 270 (of 444 total)