Viewing 15 posts - 196 through 210 (of 295 total)
I don't think using the transaction name to determine which action to take is the right model. Your application already knows whether the user intends to insert, update or delete...
August 24, 2017 at 7:50 am
In your database, create a user-defined table type that matches the columns in "myorder". Your stored procedure can then specify a parameter that uses this table type instead of one...
July 21, 2017 at 9:01 am
Not an explanation of your problem, but in our warehouse we tend to drop indexes then truncate/load then recreate the indexes. It is generally a lot quicker on low-spec servers...
June 1, 2017 at 7:03 am
Regarding your 2nd question "should I worry about it", I'd say it's definitely worth giving them sensible names if you have copies of the database for development, QA, etc. and...
May 22, 2017 at 7:22 am
2 option suitable to my requirement.
We have auto increment column in the Orginal table it might become issue while moving data to back.
When you insert the copied rows...
May 19, 2017 at 7:38 am
Select DeveloperName, HitCount
from AppDevelopers
cross apply ufn_BigStick(AppDeveloperID)
GO 20
May 12, 2017 at 7:04 am
Why do you want to exclude the IDENTITY columns in the first place? If you use SET IDENTITY_INSERT <your table> ON you can copy the identity values across as well.
April 26, 2017 at 9:29 am
You can sum a nullable column. Rows where the column is null will not contribute to the total, so leaving the marks null when the student was absent (for whatever...
March 28, 2017 at 10:32 am
I'm assuming you can't use suser_name() or an equivalent because the application connects using a SQL Server login rather than windows authentication. You could prevent deletes, etc. from occurring outside...
January 24, 2017 at 6:49 am
I think the UserID variable in your code will be receiving the RETURN value from executing the stored procedure. This is not the same as the results of the SELECT...
January 3, 2017 at 6:51 am
Running multiple SQL statements passed in as a string.
December 23, 2016 at 7:20 am
This method looks highly vulnerable to SQL injection attacks.
December 23, 2016 at 4:52 am
"hiring to support growth" - what is that?
November 18, 2016 at 7:18 am
Are you able to change the parameter to a table-parameter? If so, you can add your array of values to it and use it in an inner join.
November 10, 2016 at 2:09 am
Just as an aside; I have got into the habit of using the "Script as create" instead of "Script as alter" or "Modify" options when looking at stored procedures, functions,...
October 27, 2016 at 8:24 am
Viewing 15 posts - 196 through 210 (of 295 total)