Viewing 10 posts - 16 through 25 (of 25 total)
If you need to transfer data between SQL server and a flat-file, you could also try the BCP command.
BCP {[[database_name.][owner].]{table_name | view_name} | "query"}{in | out | queryout | format}...
December 4, 2006 at 10:45 pm
The easiest way to highlight any duplicate records would be to count records per fields that should be unique.
If your table should only have one record for Example : District and...
October 31, 2006 at 2:51 am
Assuming your salesNo is unique and incremental.
UPDATE A
set A.totalavailable = C.Totalqty
FROM
TableTwo A,
(
Select Top 1 Salesno
FROM TableTwo WITH (NOLOCK)
Order By salesno Desc
) B,
Table1 C
WHERE
A.Salesno = B.Salesno
and A.partno=C.partno
Subquery B...
January 5, 2006 at 1:00 am
Hi all.
Is a query provided for the questions, or should we choose answers on probability based on available options ?
December 21, 2005 at 2:01 am
Would a "Copy SQL Server Objects Task" in DTS not be less troublesome?
November 11, 2005 at 1:57 am
Hi. I hope I understand you correctly, as this does not seem a very complex problem.
Create a DTS package with Text file Destination as target connection.
You can create multiple extracts...
November 11, 2005 at 1:14 am
This query should return only employees that is not in the selected MeetingAttendance range.
Select A.*
from
Employees A Left outer join
MeetingAttendance B
ON
A.EmployeeID = B.EmployeeID
AND A.Meeting_ID =...
October 28, 2005 at 12:19 am
Hi.
Why not use the Isnull() statement ?
Select * from T1 Where Isnull(C1,0)=Isnull(C2,0)
You can usually not compare a Null to a value, as technically it is not actually a value.
October 13, 2005 at 12:37 am
Hi.
Something obvious I know, but Is the same user / server used for the batch run as the manual exec ?
I have made this mistake previously, and tried to run the...
September 27, 2005 at 1:35 am
Hi.
You could alternatively also try the query as below. The "WHERE" at the bottom will ensure that only records that do not exist in any of the union queries will...
September 21, 2005 at 1:14 am
Viewing 10 posts - 16 through 25 (of 25 total)