Viewing 15 posts - 391 through 405 (of 2,171 total)
Something is very strange!
This post is duplicated 4 times, and cannot be deleted...
July 9, 2009 at 1:37 am
Something is very strange!
This post is duplicated 4 times, and cannot be deleted...
July 9, 2009 at 1:37 am
UPDATEa
SETa.x = CASE WHEN a.x b.x THEN b.x ELSE a.x END,
a.y = CASE WHEN a.y b.y THEN b.y ELSE a.y END
FROMTableA AS a
INNER JOINTableB AS b ON b.ID...
July 9, 2009 at 1:37 am
What you did was to calculate the CARTESIAN PRODUCT.
SELECT SUM(Items)
FROM (
SELECT COUNT(*) AS Items FROM TableA WHERE Col1 > '20090101' UNION ALL
SELECT COUNT(*) AS Items FROM TableB WHERE Col1 >...
July 8, 2009 at 2:24 am
No need to invoke SELECTs.
IF @user-id = 101 AND @Password = 'dgHH%Ggt4[' COLLATE SQL_Latin1_General_Cp1_CS_AS
PRINT 'Ok!'
ELSE
PRINT 'False'
But I doubt this is your real scenario. You do have a table where the...
July 8, 2009 at 12:36 am
DECLARE @mybin1 binary(8)
SET @mybin1 = 0x0000000000045F7C
PRINT CONVERT(varchar(8), @mybin1) + ' TEST'
SELECTmaster.sys.fn_varbintohexstr(@mybin1) + ' TEST'
July 7, 2009 at 1:45 pm
Here is a 48-page long topic about a various attempts to write a good and decent split function
http://www.sqlservercentral.com/Forums/Topic695508-338-1.aspx
July 6, 2009 at 10:22 am
I don't know what a split function is needed for here...
For concatenation, see this topic
July 5, 2009 at 1:15 am
In your CTE, ROW and VALUE elements are upper case, and in your cross apply the row and value path are lower case.
This results in an empty result. And I...
July 5, 2009 at 1:05 am
For your date range search, do not use all these filters
and ( ( ( leave.leave_start_dt between @start_date and @end_date)
and (leave.leave_end_dt between @start_date and @end_date) )
or leave.leave_start_dt >= @start_date and leave.leave_start_dt...
July 4, 2009 at 12:53 pm
Also don't use table variables for this.
The minimum amount of data read by SQL Server is one page (8k).
As long as the amount of data is less than one page,...
July 4, 2009 at 12:51 pm
Good effort but won't work.
1. XML is case sensitive.
2. Run the code again, after fixing the case sensitive elements, with this test data
insert into #temp values ('I like Ike &...
July 4, 2009 at 12:46 pm
Well, the article is 7 years old, and does enforce some of the SQL Server myths.
TempDB is NOT locked when using temporary tables.
July 4, 2009 at 11:24 am
Why do you think there is a locking problem?
July 4, 2009 at 9:49 am
Using the SEQUENCE option in the XSD forces you to have the elements in same order in the XML file.
See http://www.w3schools.com/Schema/schema_complex_indicators.asp
July 4, 2009 at 2:16 am
Viewing 15 posts - 391 through 405 (of 2,171 total)