Viewing 15 posts - 61 through 75 (of 111 total)
I am using English SQL Server 2000 8.00 2039 (sp4) and following works fine.
I mean usgin [varchar] and without [N] of N''.
DECLARE @T TABLE (ID int, Test varchar(10))
INSERT INTO @T...
June 25, 2007 at 4:00 am
Are you executing as:
EXEC Uni 'unicode here'
or as
EXEC Uni N'unicode here'?
Also check the font setting in your query analyzer.
June 25, 2007 at 3:47 am
2. Uni '#3523;#3538;#3458;#3524;#3517;'
should be
2. Uni N'#3523;#3538;#3458;#3524;#3517;'
How are you executing the SP?
June 25, 2007 at 3:35 am
UPDATE Mgr
SET national_manager_id = DSR3.salesrep_id
FROM DimSalesrep Mgr
LEFT OUTER JOIN DimSalesrep DSR2 ON Mgr.manager_id = DSR2.salesrep_id
LEFT OUTER JOIN MudgeeLiv_App.dbo.dept dept ON DSR2.department = dept.dept
LEFT OUTER JOIN DimSalesrep DSR3 ON LTRIM(RTRIM(dept.mgr_num)) =...
June 22, 2007 at 12:19 am
SELECT *
FROM Client A
WHERE NOT EXISTS
(SELECT * FROM State Z
WHERE Z.StateCode = A.StateCode
AND Z.city = A.city
AND Z.zip = A.zip)
June 21, 2007 at 7:38 pm
SELECT *
FROM Client
WHERE StateCode NOT IN
(SELECT StateCode FROM State)
June 20, 2007 at 7:14 pm
Are you checking for @@error inside of the SP?
June 19, 2007 at 2:57 am
UPDATE YourTable
SET grade =
CASE
WHEN school IS NOT NULL AND examscore IS NOT NULL AND areacode IS NOT NULL
THEN 'A'
WHEN school IS NOT NULL AND examscore IS NOT NULL AND areacode...
June 17, 2007 at 7:03 pm
INSERT INTO EMPLOYEES(Rtype, Amount, Refnumber, Color)
SELECT Rtype, 99, Refnumber, Color
FROM Employees
WHERE Rtype = 'RD'
June 15, 2007 at 7:34 pm
A few years ago, I was developing a system using SQL 6.5/Delphi 3.
In front end (Delphi), default rounding was Banker's Rounding.
Because ANSI decided to uses Banker's Rounding as standard.
My client...
June 13, 2007 at 1:32 am
By sample data I mean DDL and INSERTS for your posted expected result.
K. Matsumura
June 11, 2007 at 3:09 am
Thank you all,
It worked in the following way:
EXEC sp_addlinkedserver '192.168.1.1'
EXEC sp_addlinkedsrvlogin @rmtsrvname = '192.168.1.1', @useself = 'false',
@locallogin = 'sa', @rmtuser = 'sa', @rmtpassword = 'password'
EXECUTE [192.168.1.1].master.dbo.sp_executesql
'SELECT A.Column1, MyDatabase.dbo.MyFunction(A.Columns1)
FROM MyDatabase.dbo.MyTable A'
EXEC...
June 10, 2007 at 11:28 pm
Viewing 15 posts - 61 through 75 (of 111 total)