Viewing 15 posts - 1 through 15 (of 1,124 total)
Since this is a CRUD procedure, and as Luis said, you should be adding the variables as input parameters for the procedure for CREATE & UPDATE operations.
--Ramesh
December 15, 2017 at 5:25 am
Thanks Ron for the QoTD. Today, I've learned that "TOP WITH TIES" returns ties only iff the last row is tied. Darn, all along, I was thinking TIES...
--Ramesh
June 1, 2013 at 5:00 am
As explained by the previous poster, the update statement is actually updating all the rows of the table because there is not filtering clause (where clause) or top clause.
If you...
--Ramesh
August 9, 2010 at 1:31 am
1. Try running the report with fewer rows by using TOP.
2. Check if the data retrieval or processing is taking time (can be found in report execution log table in...
--Ramesh
June 1, 2010 at 6:19 am
Can you post the error message for invalid login attempts appearing in SQL Error log? Be sure to include the error details such as error no, severity, level, state...
--Ramesh
March 4, 2010 at 4:53 am
Can you post the exact error message that you received while connecting?
--Ramesh
March 4, 2010 at 2:35 am
If the posted query is just a little part of a big query, I request you to post the entire query with some explanation about the requirement.
I see...
--Ramesh
March 4, 2010 at 2:27 am
Does remote connections enabled on the server?
Is SQL Browser Service running on the server?
--Ramesh
March 4, 2010 at 2:10 am
Why you are converting a datetime column to char and then doing a comparison?
When you say it is failing, does you get any errors? If not,...
--Ramesh
March 2, 2010 at 6:49 am
This is a really very old issue with excel and data providers. To overcome, you have to set the extended property "IMEX" of provider to value of 1. ...
--Ramesh
March 2, 2010 at 6:41 am
NULL and '' (empty string) are not same. SQL interprets empty string as a valid value, that is why the insert is failing.
Try replacing empty string with NULL...
--Ramesh
March 2, 2010 at 6:36 am
Let's see if this works for you.
SELECTCOALESCE( c.aK, a1.K ) AS aK, c.aV, COALESCE( c.bK, b1.K ) AS bK, c.bV
FROM(
SELECTa.K AS aK, a.V AS aV, b.K AS bK, b.V AS...
--Ramesh
March 2, 2010 at 5:57 am
I am not sure if I understand your requirement completely, but I guess you are looking for something like this
SELECTa.K, a.V, b.K, b.V
FROM#A a
FULL JOIN #B b ON a.K...
--Ramesh
March 2, 2010 at 5:22 am
I'm not able to view the url you have posted but I think if it is a table then you can change the background color property of the row by...
--Ramesh
March 2, 2010 at 5:20 am
This is because you are not considering the time-part of the date. By default, a date without time is considered as 00:00:00.
You either need to explicitly add the time-part in...
--Ramesh
February 26, 2010 at 6:01 am
Viewing 15 posts - 1 through 15 (of 1,124 total)