Viewing 15 posts - 1 through 15 (of 28 total)
Neeta,
When you say "doesn't work" what do you mean by that exactly? Does the control not show up, or the values do not get passed on to the database? Remember, in...
September 25, 2007 at 6:57 am
Question for Sergiy,
What if my View is a compund View. Can we update a compund view?
May 30, 2007 at 6:51 am
KISS, KISS, KISS
February 26, 2007 at 8:48 am
I must say that SQLServerCentral.com has increased my SQL knowledge manifold and it has also provided me with the opportunity to write a couple of articles.
I wish best of luck...
November 14, 2006 at 10:54 am
...though in SQL 2000 there is array processing
This definitely stumped me!!!!!
How come?
October 19, 2006 at 6:05 am
Try This:
SELECT
CASE WHEN (GROUPING(so.sales_order_phase_id)=1) THEN
'All'
ELSE
CAST(so.sales_order_phase_id AS VARCHAR)
END sales_order_phase_id
,SUM(so.contract_value_local_price)
FROM dbo.bv_sales_order so
GROUP BY so.sales_order_phase_id WITH ROLLUP
The GROUPING keyword adds the name for the extra row (Do a search for ROLLUP...
September 20, 2006 at 1:32 pm
Exactly what I was looking for
September 11, 2006 at 7:27 am
1000 parameters
Are you sure that you have no other options but to pass in 1000 parameters?
I believe passing such a huge number...
August 8, 2006 at 2:28 pm
Chris,
A very informative article indeed!
We once interviewed a guy who was the Vice President of the local SQL Server Users Group. The resume was a perfect match for the position...
June 19, 2006 at 7:00 am
Nice article!
I have been forced to use temporary tables because of the fact that most of our code is very reusable in the form of Stored Procedure and we do...
June 2, 2006 at 7:12 am
EXEC SERVERNAME.DATABASENAME.OBJECTOWNERNAME.STOREDPROCEDURENAME
Hope that hepls...
April 24, 2006 at 6:14 am
Wow!
Look what it did to my post. I will try to re-post
Have a look at it now
March 14, 2006 at 12:58 pm
SELECT
@second_last_value_of_primary_key = column_name
FROM dbo.Table_name t
WHERE t.primary_key_column_name = @@IDENTITY - 1
/*Now update the most recently inserted row*/
UPDATE t
SET t.reference_column_name = @second_last_value_of_primary_key
FROM dbo.Table_name t
WHERE t.primary_key_column_name = @most_current_value_of_primary_key
Hope that helps...
March 10, 2006 at 12:49 pm
My personal experience is that duplicate records in the database means poor validation on both client and DB side as well as poor database design. I agree with those people...
March 10, 2006 at 12:29 pm
Viewing 15 posts - 1 through 15 (of 28 total)