Viewing 15 posts - 4,441 through 4,455 (of 6,036 total)
Problem is
select case when 'À#' > 'AÞ' then 'Greater' else 'Less' end
returns "Less".
Character "Þ" probably does not exist in this collation and makes correct matching not possible.
select case...
April 9, 2007 at 5:58 pm
Index should cover columns used in WHERE clause, not in SELECT list.
April 7, 2007 at 6:13 pm
I'm using views in similar situations.
View returns values from the latest record for the category.
Work perfectly.
Even with 100k records in log table report is generated in less than 1 second.
April 5, 2007 at 4:00 pm
...
, CONVERT(varchar(10), NULL) AS column_b
...
April 4, 2007 at 7:18 pm
SQLBill,
actually Index Seeks are good. Index Scans are bad.
You confused a little. ![]()
April 4, 2007 at 7:14 pm
Senthil, think about this.
If we are friends, how many rows do you create?
One?
Which one?
Senthil|Sergiy
or
Sergiy|Senthil?
Then, if you need to find friends of Senthil, which column are you gonna scan?
Or...
April 3, 2007 at 8:21 pm
Best,
did you read answers here:
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=355132 ?
Did you get it?
Can you repeat what did you get?
April 3, 2007 at 8:05 pm
Remove column LagCategory from Services and retrieve it via INNER JOIN to FinancialCategories every time you need it.
You may create a view with this join inside and replace all references...
April 3, 2007 at 4:11 pm
What's your point?
Create another table with the same structure as existing one?
Then just do this:
SELECT *
INTO dbo.NewTable
FROM dbo.ExistingTable
WHERE 1=0
If not just explain what are you trying to achieve.
April 2, 2007 at 11:10 pm
In Query Analyzer in Object Browser (press F8 to open it) right-click on the table, then choose "Script Object ..." - whatever you need.
April 2, 2007 at 10:51 pm
QA is not XML reading or editing tool.
SQL Server generated XML for you.
Use proper tool to display it or work it out.
April 2, 2007 at 5:28 pm
Hector,
if you need 3 level XML then you need 3 tags.
Just add another tag to the example given and you are there.
I slightly modified that script to bring you exactly...
April 2, 2007 at 4:56 pm
Watch your syntax.
No matter how smart is the solution syntax must be correct:
SET @bcp = 'bcp "exec ReportProcedure' + @SDate1 + ', ' + @SDate2 + '" QUERYOUT...
April 2, 2007 at 4:09 pm
bcp "exec ReportProcedure @RepTime = 20070328" QUERYOUT "C:\test.txt" -T
April 2, 2007 at 1:50 pm
Viewing 15 posts - 4,441 through 4,455 (of 6,036 total)