Quantcast
Channel: TechPint - T-SQL
Browsing all 7 articles
Browse latest View live

SQL Server: Backup and Restore Database using T-SQL

Its very easy to take Backup and Restore your Database using T-SQL even if you are not a DBA. In one of the client application, I wanted to take periodic Backup without logging in to SQL Server...

View Article



Set two variables using a Select query in a stored procedure.

SET @Password =(SELECT Value1,Value2 FROM[dbo].[Table1]WHERE[Expr1])I am trying to get both values 'Value1' and 'Value2' in two variables to be used in same SP in next query. Is it possible or do I...

View Article

What is the difference between Stored Procedures and User Defined Functions?

What is the difference between Stored Procedures and User Defined Functions in sqlserver.

View Article

How to ReSeed Identity value in SQL Server?

I want to reset an identity coloumn in SqlServer. I am usingDelete from "TableName". It is deleteing all data in the table but it is not resetting my Identity value.I have tried Truncate Table , But I...

View Article

Row Number function in SQL Server

I used to create temporary tables and subqueries to add a row number to every row in the result set. But somedays ago, I came across to the Row_Number() function provided in Sql Server, which simply...

View Article


RowNumber Alternative in Linq

I want to know, Do we have any alternative to Row_Number function in Linq. I want to use Ranking and Partition in Linq. SELECT ROW_NUMBER()OVER(Partition BY Author_NamePlease let me know how to achieve...

View Article

Delete Duplicate Records From a table

I need to clean duplicate records from a table, please let me know how to it.

View Article
Browsing all 7 articles
Browse latest View live




Latest Images