Viewing 15 posts - 7,681 through 7,695 (of 26,490 total)
drew.georgopulos (5/9/2013)
make this crash?select cbclaim from [dev].[stage].[dbo].[claimsview] with(noexpand) t
it works fine without the t?
thanks a lot
Because you have the table alias in the wrong place:
select t.cbclaim from [dev].[stage].[dbo].[claimsview] t with(noexpand)
May 9, 2013 at 3:36 pm
Sean Lange (5/9/2013)
Lynn Pettis (5/9/2013)
I may be wrong, would have to test, but I don't think 6e will use an index either because of the NOT IN.
You may be right...
May 9, 2013 at 3:34 pm
drew.georgopulos (5/9/2013)
make this crash?select cbclaim from [dev].[stage].[dbo].[claimsview] with(noexpand) t
it works fine without the t?
thanks a lot
Care to give a more in depth explainatioin? I'm lost as to the questioin.
May 9, 2013 at 3:29 pm
jagat.patel (5/9/2013)
ddl looks good
O/P i am looks at is all dates when flag changes it's value
so in case of
id = 1 dates are
3/1/2013 and 4/1/2013
and for id 2 date...
May 9, 2013 at 3:28 pm
Sean Lange (5/9/2013)
TeraByteMe (5/9/2013)
May 9, 2013 at 3:11 pm
Run against your shadow copy, not production:
DBCC CHECKDB database_name WITH ALL_ERRORMSGS, NO_INFOMSGS
If it returns errors, post all of it (you can put it in a text file and attach...
May 9, 2013 at 11:21 am
HiralChhaya (5/9/2013)
Next time I will make sure to format the query 🙂
Don't do it just for us, do it for yourself. Well formatted code is actually easier to...
May 9, 2013 at 11:17 am
Eugene Elutin (5/9/2013)
Lynn Pettis (5/9/2013)
Eugene Elutin (5/9/2013)
Lynn Pettis (5/8/2013)
Eugene Elutin (5/8/2013)
You should use cursor datatype in output parameter of your procedure....
May 9, 2013 at 10:35 am
anuj12paritosh (5/9/2013)
Actually my problem is something different ,if you have any solution so please see problem and provide exact solution above provide query is not a solution pls check...
May 9, 2013 at 10:22 am
Neeraj Dwivedi (5/9/2013)
SYS.PROCESSES or SYSPROCESSES?
Sorry, there is no sys.processes. The system table sysprocessess mappes to the following:
sys.dm_exec_connections
sys.dm_exec_sessions
sys.dm_exec_requests
May 9, 2013 at 10:20 am
There is no binary conversion style in SQL Server 2005. This was added in SQL Server 2008.
May 9, 2013 at 10:11 am
You say you are using SQL Server 2008 R2. What version of SQL Server are you connected to when you run these?
Run the following:
DECLARE @VARBINARY VARBINARY (16)
SET @VARBINARY =...
May 9, 2013 at 10:05 am
j2cagle (5/9/2013)
I get:0x30783030303030303030303030313836
0x30783030303030303030303030313836
It's almost like the "1" and "0" style options are not recognized?? Any ideas?
Post your code, even if it is identical.
May 9, 2013 at 10:02 am
Hard to answer with the vague information you have provided.
First, what makes up your fiscal periods (months, quarters, year)?
Second, since we can't see what you see there really isn't anything...
May 9, 2013 at 10:00 am
When I run the following in SQL Server 2008 R2:
DECLARE @VARBINARY VARBINARY (16)
SET @VARBINARY = CONVERT(VARBINARY (16),'0x0000000000018662',1)
SELECT @VARBINARY;
go
DECLARE @VARBINARY VARBINARY (16)
SET @VARBINARY = CONVERT(VARBINARY (16),'0x0000000000018662',0)
SELECT @VARBINARY;
go
I get;
0x0000000000018662
0x30783030303030303030303030313836
May 9, 2013 at 9:56 am
Viewing 15 posts - 7,681 through 7,695 (of 26,490 total)