Viewing 15 posts - 181 through 195 (of 275 total)
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
Good article, but wouldn't the Post Code view containing the conditional elements return the whole postcode for parts 1 & 2 rather than blank when there is no space in...
October 5, 2016 at 3:36 am
At least the old adage has been proven - that any conversation left to run long enough on the internet will result in someone being likened to Hitler!
September 14, 2016 at 9:09 am
The structure proposed by tshad allows employees to flat-share. If you want overall flexibility, you need 3 tables; Employee, Address and EmployeeAddressLink. The start and end dates would then belong...
September 9, 2016 at 7:43 am
I have worked on a similar task before. The approach I took was to copy the names to another table (along with the primary key so I could link back...
September 6, 2016 at 2:53 am
Viewing 15 posts - 181 through 195 (of 275 total)