Want to get rid of the SQL Jobs in your SQL Server? All of them are stored in msdb. You would need to run the following queries to remove them. If there is a scheduled time that this job runs at, you would need to first remove that.
Showing posts with label DB. Show all posts
Showing posts with label DB. Show all posts
Friday, December 24, 2010
Tuesday, December 21, 2010
Delete multiple databases in SQL Server
I've been into positions multiple times where I've to delete the databases in my SQL Server environment to clean up the QA environment or my local machine where I accumulate these test DBs over a period of time. If you are looking for one such situation here is the script that can come as a help -
Labels:
Database,
Database Testing,
DB,
SQL Server,
SQL Server 2005
Friday, April 30, 2010
Delete and Truncate
Delete and Truncate are both commands in SQL to remove data from a table. But why do we have two commands? Are there any differences? YES! There are differences although the result is same. Both of them delete the data.
Sunday, April 18, 2010
Normalization and De-Normalization
Database normalization is a data design and organization process applied to data structures based on rules that help building relational databases. Normalization is done to achieve the following goals:
- eliminating redundant data (for example, storing the same data in more than one table)
- ensuring data dependencies make sense (only storing related data in a table).
Labels:
1NF,
2NF,
BCNF,
Database,
DB,
De-Normalization,
Normalization,
SQL Server
Friday, April 16, 2010
SQL Server: Varchar v/s NVarchar
VARCHAR and NVARCHAR are two datatypes that are used in SQL Server very frequently and interchangeably. We would see what is the difference if any between these two:
Labels:
Database,
DB,
nvarchar,
nvarchar(max),
SQL Server,
SQL Server 2005,
varchar,
varchar(max)
Subscribe to:
Posts (Atom)