Microsoft SQL Server is a relational database management system, or RDBMS, that supports a wide variety of transaction processing, business intelligence and analytics applications in corporate IT environments. It's one of the three market-leading database technologies, along with Oracle Database and IBM's DB2.
Question:update or alter a stored procedure programmatically through C# code
Description:I have to update a store procedure on live site and we don't have the access of the database at our development environment so we need to do this through code in C#. I have search a lot but unable to find a proper solution For example , I have a following stored procedure, ALTER PROCEDURE [dbo].[SelectCustomers] AS BEGIN SELECT * from Customer order by Customer.DateCreated DESC END And I want to update it to the following one ALTER PROCEDURE [dbo].[SelectCustomers] AS BEGIN SELECT * from Customer where Customer.Status=1 order by Customer.DateCreated DESC END
Posted by: Junaid Aziz | Posted on: May 09, 2019
Question:In a many to many relationship, get records of table A associated with more than N number records of table B?
Description:I have Table A(assumed as Student) and Table B(assumed as Course) with their junction Table AB (StudentCourse),For example considering the following tables I need to get all the students with their Id and name who have enrolled in more than three(N) courses |Student| |Id | |Name | |Course| |Id | |Name | |StudentCourse| |Id | |SId | |CId |
Posted by: Samantha Jones | Posted on: Apr 17, 2019
Question:what is the difference between view and Stored Procedure (view vs stored procedure) in sql?
Description:Need to know the difference between the two in terms of which should be used in what conditions, according to my current research similar operation can be achieved using any of them
Posted by: Junaid Aziz | Posted on: Jan 25, 2019
Question:how to track down the recent updates that are made in my database ?
Description:I am using a cms and some recent updates are made in my mssql database , I have no clue about in which table record is inserted or updated !!! any sql query which can help me in this regard
Posted by: Junaid Aziz | Posted on: May 28, 2018
Question:how to resolve "Saving changes is not permitted. The change you have made requires the following table to be dropped and re-created. You have either made changes to a table that can't be recreated or enabled the option prevent saving changes that require
Description:I am getting the following error whenever i try to edit the table design, i.e changing the column's data type Saving changes is not permitted. The change you have made requires the following table to be dropped and re-created. You have either made changes to a table that can't be recreated or enabled the option prevent saving changes that require the table to be re-created.
Posted by: Khalid Abbas | Posted on: Sep 27, 2017