Viewing 15 posts - 31 through 45 (of 1,131 total)
With the REPEATABLE READ transaction isolation level, I am seeing that the reader is blocking the writer but I am not sure why you are not seeing this behavior. Try...
November 2, 2010 at 5:25 am
In a Piecemeal Restore scenario, after the primary file group is restored, the database can be brought on-line with any secondary file groups that have not been restored being offline....
November 2, 2010 at 3:45 am
The results you are getting are documented in Books OnLine under the topics titled "int, bigint, smallint, and tinyint" and "Precision, Scale, and Length"
the result is weirdly out by a...
November 1, 2010 at 2:38 pm
SSMS is not issuing a SQL command to perform the shutdown but instead, SSMS sending a windows command, so the security is based on the Window Login.
To demonstrate, do the...
October 31, 2010 at 3:03 pm
My idea is to get a Dell Latitude E6140
Do you mean model 6410 ? (transposed the 1 and 4)
I use a Dell 6510 Dual Core 4Gb RAM, which has...
October 29, 2010 at 3:00 pm
Try this:
;with EmployeeIds as
-- Assign Id sequentially using Rank
(SELECTempid
,RANK() OVER ( ORDER BY EmpId) as Id
FROM#tab
)
,AllIds as
-- For all of the Manager Ids, get the assigned Rank
(select#tab.empid
,#tab.mgrid
,EmployeeIds.Idas Id
,MgrIds.Idas...
October 29, 2010 at 2:41 pm
First, validate the backup files by executing:
RESTORE VERIFYONLY FROM
DISK = 'D:\SQL_BACKUP\db_db1_20101028_1.bak',
DISK = 'D:\SQL_BACKUP\db_db1_20101028_2.bak',
DISK = 'D:\SQL_BACKUP\db_db1_20101028_3.bak',
DISK = 'D:\SQL_BACKUP\db_db1_20101028_4.bak'
BOL states "Verifies the backup but does not restore it, and checks to see...
October 28, 2010 at 5:23 pm
Thanks for posting all the details and source as it made de-bugging and finding a solution much easier.
I found that adding to the trigger "SET CONCAT_NULL_YIELDS_NULL, ANSI_WARNINGS ON;" immediately after...
October 28, 2010 at 3:19 pm
You would need an RTF to text converter routine to switch the data-types/ If one creates an RTF with some contents and then opens the file using Notepad, you...
October 28, 2010 at 12:52 pm
It is a bug in SQL Server 2005 Managment Studio. The fix suggested by MS is to use the SQL Server 2008 Managment Studio.
October 27, 2010 at 3:12 pm
MS SQL Server query plan information is documented in Books OnLine under "Database Engine", "Technical Reference", "Transact-SQL Reference", "System Views" and finally "Execution Related Dynamic Management Views and Functions". ...
October 27, 2010 at 11:43 am
QOD Part 2: Is January 31st, 2010 (the original date), the result of:
declare@StartDateTimedatetime;
SET@StartDateTime= CAST('2010-01-31T00:00:00.000' AS datetime)
SELECTDATEADD(MONTH, -3 , DATEADD(MONTH, 3, @StartDateTime))
October 27, 2010 at 10:47 am
You are running Sybase's bcp.exe instead of the MS SQL Server ! Here is the output you should get for MS's bcp.exe:
usage: D:\Program Files\Microsoft SQL Server\100\Tools\Binn\bcp.exe {dbtable | query}...
October 25, 2010 at 3:28 pm
Just to add to the assistance.
Please read Lynn Pettis article on calculating a person's age at http://www.sqlservercentral.com/articles/T-SQL/63351/
The correct calculation is
DATEDIFF(yy,Clients.DOB,@TodaysDate)
- case when @TodaysDate < dateadd(yy,datediff(yy,Clients.DOB,@TodaysDate),Clients.DOB)
then 1 else 0 end
When...
October 22, 2010 at 6:59 pm
Windows:
Insure that "Maximize data throughput for network applications" is set instead of the default of "Maximize data throughput for file sharing"
Grant the SQL Server service account the following Windows privileges:
Perform...
October 19, 2010 at 8:57 am
Viewing 15 posts - 31 through 45 (of 1,131 total)