Viewing 15 posts - 31 through 45 (of 168 total)
I just ran your code, it is displaying "SQL Server"
what do you want in your output?
May 19, 2010 at 1:56 am
Yes, Check with enabling Integrated Windows Authentication and Anonymous access also try Inherting Security Settings from parent thru Permissions wizard
May 18, 2010 at 8:17 am
use
DayField < CONVERT(VARCHAR(10),GETDATE(),101)
for correct results
May 18, 2010 at 7:07 am
May 18, 2010 at 6:07 am
Most of the times, problem is with not configuring IIS Security settings properly.
First of all check those settings in IIS
May 18, 2010 at 5:55 am
Could you please provide the solution
May 18, 2010 at 5:25 am
Try this
WITH RecCTE AS
(
SELECT Convert(VarChar(30),i) i FROM T
UNION ALL
SELECT Convert(Varchar(30),t2.i+','+t3.i) as i FROM T T2
CROSS JOIN RecCTE T3
WHERE t2.i<>t3.i AND t2.i<LEFT(t3.i,1)
)
SELECT * FROM RecCTE
ORDER BY LEN(I),i
May 18, 2010 at 5:04 am
Check this
DECLARE @Date1datetime
SET @Date1='1900-01-01 09:44:00.000'
SELECT CASE
WHEN DATEPART(hh,@Date1)>4
THEN DATEADD(hh,-1,@Date1)
ELSE
@Date1
ENDAS DATE1
May 18, 2010 at 3:51 am
I would like to present a different solution for this kind of problem
Requirements:
1. Set of "ALTER VIEW" scripts for all views exising in each database placed in different folders
2....
May 18, 2010 at 3:34 am
Agreed..
There is no need to use REVERSE in LEN function.. its silly
may be just ignored it.. honestly never thought about performance:hehe:
February 19, 2009 at 5:37 pm
use a DATEPART function to determine the dayofweek and use CASE statement to act accordingly
something like this
(EXPC_SHIP_DATE =CASE DATEPART (dw, GETDATE())
WHEN 7
THENCAST(FLOOR(CAST(GETDATE() AS FLOAT)) AS DATETIME) + 2
WHEN 6
THENCAST(FLOOR(CAST(GETDATE() AS...
February 17, 2009 at 4:49 pm
Another version, assumes that data should be removed after last delimiter
CREATE TABLE TTT
(
ID INT IDENTITY (1,1) NOT NULL,
...
February 17, 2009 at 4:12 pm
I dont know about your requirement, In case If you are OK with ignoring the data which exceeds the TypeCode length.
Here is your update statement
DECLARE @tblDrawings TABLE ( SheetNumber VARCHAR(50),...
February 17, 2009 at 11:27 am
Solution using Cursors
------------------------------
CREATE FUNCTION dbo.ParseList
(
@ValueList VARCHAR(8000)
, @Delimiter VARCHAR(1)
)
RETURNS @ParsedListValues TABLE ...
February 11, 2009 at 5:06 pm
Viewing 15 posts - 31 through 45 (of 168 total)