Viewing 15 posts - 1 through 15 (of 16 total)
Hi, Hemant Kumar
Here dbo.TRUE_VALUE() is a user-defined function. Why i want this behaviour is because we have 3rd party people who give us space on their sql server with different...
August 10, 2005 at 12:47 pm
If you want some tips how to optimize your query, you should post result of this script here.
set showplan_text on
go
SELECT ... (your select)
go
set showplan_text off
go
OR You can do it yourself. The...
August 10, 2005 at 12:19 pm
Tanks, Karl
You save my 'Grasshopper' time!
Vlad
August 10, 2005 at 11:46 am
This is ODBC Outer Join Escape Sequence http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/htm/odbcouter_join_escape_sequence.asp
change your code like below and try if it works:
"...FROM
myDatabase.dbo.tblBudgetPlanningXVYReportType XVYReportType INNER JOIN Mydatabase.dbo.tblBudgetPlanningXVYReportOutput XVY ON
XVYReportType.xvyrtID = XVY.xvyroRTID WHERE..."
Best Regards,...
August 10, 2005 at 11:36 am
Hi grambowk, try this code:
declare @cmd nvarchar(1000)
set @cmd = 'bcp "select CustomerID from Northwind.dbo.Orders as Orders for xml auto, elements" queryout C:\test.xml -S'+@@servername+' -C ACP -T -w -r -t'
exec...
August 9, 2005 at 1:50 pm
To Murthy: You are right, but what is the difference between .4790000000000 and .479 for SQL Server?
SELECT CONVERT(DECIMAL(10, 3),ROUND(0.4799608993157, 3, 1)) / 1 -- .479000
It is the client duty...
August 9, 2005 at 1:12 pm
August 9, 2005 at 7:56 am
To Bert De Haes:
create procedure usp_tst ( @id int, @txt text = null )
as
begin
set @@TEXTSIZE = .... ???
select @txt = ... from...
August 8, 2005 at 10:16 pm
Or like this:
SELECT SQRT(POWER((38.492497-latitude),2)+POWER((-121.404807-Longitude),2)) AS distance, *
FROM location
WHERE SQRT(POWER((38.492497-latitude),2)+POWER((-121.404807-Longitude),2)) < .016
ORDER BY 1
August 8, 2005 at 8:42 pm
BOL: LIKE
...
Symbol Meaning
LIKE '[[]' [
LIKE ']' ]
...
Check collation on your server, may be is case-sensitive and try this:
select object_name(id) from dbo.syscomments where text like '%[[]Database].[[]dbo].[[]tblSpecificTable]%'
August 3, 2005 at 12:37 pm
Hi jatighe,
If you use SQL 2000 try this code:
create function fn_GetOnlyNumbers
(
@string varchar(38)
)
returns numeric(38)
as
begin
declare @numeric numeric(38)
while patindex('%[^0-9]%', @string) > 0
set @string = STUFF(@string, PATINDEX('%[^0-9]%', @string), 1,...
August 3, 2005 at 11:53 am
Jesper Mygind : Did you put any indexes on the table before running the test?
No indexes, exept primary key on table #Numbers....
July 28, 2005 at 9:03 am
Jesper Mygind: ... It could be interesting to make a performance comparison of this to your function approach and VladRUS.ca's solution, which...
July 28, 2005 at 8:21 am
The same result:
SELECT @Result = COALESCE(@Result + ', ', '') + CONVERT(VARCHAR, ColA)
FROM @MyTable
ORDER BY ColA
July 27, 2005 at 3:18 pm
Viewing 15 posts - 1 through 15 (of 16 total)