SQL
MS SQL and .net Development
Pages
(Move to ...)
Home
▼
Tuesday, July 12, 2011
Get First and Last Saturday of Each Month
›
declare @year int set @year =2011 -- First and Last Sunday by SqlServerCurry.com select min(dates) as first_saturday,max(dates) as last_...
1 comment:
Monday, July 11, 2011
Prevent Databases From Being Dropped
›
The best way to prevent users from dropping databases is to not grant the necessary access to drop a database, it can sometimes come in hand...
Saturday, July 9, 2011
Move TempDB Data and Log file to some other location
›
Restart SQL Server with the command line parameter -T3608, and then run alter database commands to move the location of TempDB: ALTER DATAB...
Friday, July 8, 2011
check if all characters of a string are same
›
Consider the following example: declare @t table (data VarChar (20)) insert into @t select '3333333333' as data ...
1 comment:
Thursday, July 7, 2011
Find Database Object information
›
Here is a script to find All Tables in a Database. It will also find No of Records, Indexes, No of Indexes, Space occupied by a Table. S...
‹
›
Home
View web version