Viewing 15 posts - 931 through 945 (of 1,124 total)
1. Add the required column Address to the table
ALTER TABLE Customers ADD Address VARCHAR(1000) NULL
2. Run the update query
UPDATE Customers SET Address = COALESCE(add1, '') + COALESCE(add2, '') +...
November 5, 2007 at 4:47 am
Use CHAR(10) to add newline character...
November 5, 2007 at 3:21 am
Here is the one of the ways to achieve the weekly results
SELECTID, [Name],
SUM( CASE WHEN CEILING( DATEPART( DAY, [Date] ) / 7.0 ) = 1 THEN Qty ELSE 0 END...
November 5, 2007 at 3:02 am
1. Create a SSIS/DTS Package
2. Schedule the package
November 5, 2007 at 2:46 am
ALTER TABLE Staff ADD StaffCode varchar(10) NOT NULL CONSTRAINT Staff_StaffCode_df DEFAULT(' ');
November 5, 2007 at 2:32 am
peterwliu (11/2/2007)
November 3, 2007 at 6:00 am
..Check whether the SQL Server is running or not
..Check on which port the server is listening
..Try connecting through EM or QA
..Check the connection string used in VB application
November 3, 2007 at 5:31 am
Here it is....
SELECTU.UserID, U.UserName, U.ManagerID, M.UserName AS ManagerName
FROMdbo.Users E
LEFT JOIN dbo.Users M ON E.ManagerID = M.UserID
November 3, 2007 at 5:26 am
Is this what you looking for....
CREATE PROCEDURE uspTest
(
@Param1 varchar (10),
@Param2 varchar (2) Output,
@Param3 varchar (20) Output,
@Param4 varchar (50) Output,
@Param5 varchar (100) Output,
@Param6 varchar (100) Output,
@Param7 varchar (50) Output,
@Param8 (50) Output,
@Param9...
November 3, 2007 at 3:07 am
May be I could have learned a little bit on Reporting Services:cool:
May be dumping data in a temporary table and returning from it could help?:hehe:
November 1, 2007 at 1:32 am
Just use case statement in #view1 as
SELECT .....,
( CASE WHEN PurchaseDescription = 'USB' THEN -Cost ELSE Cost END ) AS Cost2
FROM .....
November 1, 2007 at 12:36 am
I guess, internally TRUNCATE is more or less like DROP....CREATE statements, so obviously the second one should be faster....:cool:
October 31, 2007 at 10:44 am
What Microsoft said is absolutely correct...
I just clarified the differences between the service packs, thats what you asked for.
Going by your first post, I could see there aren't any differences...
October 31, 2007 at 10:40 am
Viewing 15 posts - 931 through 945 (of 1,124 total)