Viewing 15 posts - 16 through 30 (of 1,131 total)
I know I have to make sure that all dependencies to that person are removed before I can do it.
Not necessarily - the foreign key constraints specification will include action...
November 21, 2010 at 3:28 pm
We have change the sql server startup user from domain account to local system and it works much better now.
The restart of SQL Server may be the difference.
I have done...
November 21, 2010 at 6:42 am
Out of the 50 some database books that I own and another 50 that I have read, here are the books that I consider essential. I do not...
November 21, 2010 at 5:57 am
There is a rather nasty effect of using CURRENT_TIMESTAMP:
Original DDL statements:
create table dbo.foo
( MyTimeStamp date )
go
alter table dbo.foo add default ( CURRENT_TIMESTAMP ) FOR MyTimeStamp...
November 17, 2010 at 11:21 am
The primary log file cannot be removed, so the second log file will need to be removed and then the first log file moved to a different drive.
Under SQL Server...
November 17, 2010 at 11:08 am
Please realize that backups are a command sent to the database engine and the DB engine performs the backup file writes, not the originator of the backup command. Therefore...
November 17, 2010 at 7:06 am
The problem is "populated the table with all possible values (0-255)", results in a table with over 4 billion rows.
select cast(256 as bigint) * 256 * 256 *...
November 15, 2010 at 9:18 am
Tables columns that are not in an index:
selectschemas.nameas schema_name
,tables.nameas table_name
,columns.nameas column_name
fromsys.schemas
joinsys.tables
ontables.schema_id= schemas.schema_id
joinsys.columns
on columns.object_id = tables.object_id
WHERENOT EXISTS
(select 1
fromsys.index_columns
whereindex_columns.object_id= columns.object_id
andindex_columns.column_id= columns.column_id
)
November 12, 2010 at 11:21 am
Caine posted:
I have a server with multiple instances (MSDE and SQL Express). I run the same exact code on both and the correct value for BackupDirectory came back as if...
November 12, 2010 at 5:40 am
"the database is created in the proper location" How interesting as I am getting different results !
An internet search revealed that this is a bug in SQL Server that...
November 11, 2010 at 10:39 am
You should cast the numeric to a character datatype within the case statement such as:
WithSchemataTables as
(
selectSCHEMATA.schema_name
,SUM( CASE when TABLES.TABLE_SCHEMA IS NOT NULL THEN 1 ELSE 0 END ) as...
November 11, 2010 at 5:45 am
Regarding your statements:
"In the case of backups, this allows you to specify a backup with just a file name (from T-SQL), and the backup will go to this directory." ...
November 11, 2010 at 4:32 am
"by default what sql server 2005 uses UTF8 or UTF16 for storing data?"
Neither - SQL Server uses UCS-2 for unicode data types.
Conversion between UCS-2 and a program's representation is performed...
November 10, 2010 at 4:23 pm
Try the below SQL which results in:
ARATES 12000-01-01 2000-12-31 5 2000-01-012001-12-31
BRATES 22000-01-01 2000-12-31 6 2000-12-31 2001-12-31
s
select First.InfoName
,First.Id
,First.Effective
,First.termination
,Second.Id
,Second.Effective
,Second.termination
From @overlap as First
join @overlap...
November 4, 2010 at 5:10 pm
If you are attempting to simulate a queue with a table, where multiple connections can read from the queue but each queue row can only be read by one of...
November 2, 2010 at 10:48 am
Viewing 15 posts - 16 through 30 (of 1,131 total)