Viewing 15 posts - 1 through 15 (of 274 total)
All of the DB connections are configured to get the values from a table at runtime but this not being an OLEDB connection i am not sure how should i...
September 20, 2016 at 1:12 am
I find the query useful so published it so that it might be useful for everyone. I was unaware of an existing post :-).
February 29, 2016 at 2:22 am
Try this..
Select sum(Duration1) as Duration1,Sum(Duration2)as Duration2,
Sum(Duration3) as Duration3, Case When Type = A then Math END as Math, Case When Type = A then Silver END as Silver
From Table
where...
February 23, 2015 at 2:35 pm
Thanks Luiz for the info.
One last question on that why doesnt it fail when inserting a numeric field value to varchar() field?
Insert into #temp
Select * from #temp1
January 28, 2015 at 7:06 pm
It should go to where clause but how do i get those statements dynamically based on the above table structure without any hard coded script in the code.
November 11, 2014 at 2:06 pm
Let me explain in more detail..
I do have admin rights on the server.
The temp table is being created by a stored procedure
The stored proc is being executed by a sql...
August 11, 2014 at 8:38 pm
There is a view which is built on dbo.customerdetail table.. Also attached the actual plan.
June 16, 2014 at 12:33 am
Thanks Guys for the workarounds.. I will look into it and implement the one with less changes to my existing schema.
May 15, 2014 at 5:04 pm
Yes, I do have an identity field which i havent put in the example.. Can you please let me know the workaround.
May 15, 2014 at 12:00 am
No, the ID column is not unique..
i know we can create clause with sql 2008 and later versions
Create unique index IDX_1 on Table1(Column) where column2 is null
The above query...
May 14, 2014 at 11:41 pm
Hey Mate..
Thanks for the response but my requirement is to have a unique constraint create when the Dateexpired field is null ..
Let say below are my insert statements then...
May 14, 2014 at 11:10 pm
The logic already had an IF conditions and its a new functionality which i need to integrate into the solution so dont want to add up if else clause for...
February 27, 2014 at 11:02 pm
Thanks lutz.. It worked like a charm.
I will look into optimizing it now .
November 14, 2013 at 5:13 pm
Thanks for the response..
I need to add few more fields in the case statement based on the parameter ..I will test it .
Thanks
November 14, 2013 at 4:26 pm
Viewing 15 posts - 1 through 15 (of 274 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy