Viewing 15 posts - 346 through 360 (of 583 total)
ColdCoffee (3/22/2012)
Ouch :pinch: Implicit conversions are causing the rounding
Curse those implicit conversions. Serves me right for not testing it more. :blush:
March 22, 2012 at 2:00 pm
would something like this work for you. not what parsename is intended for but I think it does the trick.
declare @dec decimal(10,7)
set @dec = 87.01
select len(parsename(cast(@dec as float),1) )
March 22, 2012 at 12:14 pm
http://www.microsoft.com/download/en/details.aspx?id=22985
This is the express version so you wont get things like profiler and DTA.
February 29, 2012 at 7:57 am
look at the options in both and if you do not need any of the features in enterprise now or in the future then standard would be sufficient.
December 7, 2011 at 8:44 am
By the looks of what you are doing the where clause (1=1) will actually be different when used in real code. if so try using CASE statement.
INSERT INTO TestResult(Total)
select case...
November 9, 2011 at 9:51 am
you can also use sys.master_files (http://msdn.microsoft.com/en-us/library/ms186782.aspx) to query all databases at once.
October 24, 2011 at 11:03 am
Are you getting the error on the copy job or the restore job? Also have you tried not using the hidden share but instead creating an actual shared folder?
October 21, 2011 at 8:22 am
Have a look at this books online article about joins http://msdn.microsoft.com/en-us/library/ms190014.aspx
What you probably want to do is join the IDS table to the IDCondition table on the ID columns. If...
October 12, 2011 at 12:36 pm
Have a look at the sys.dm_db_missing_index_details (http://msdn.microsoft.com/en-us/library/ms345434.aspx)view.
also here is a blog post with some handy scripts using the dmv
October 7, 2011 at 1:44 pm
based on your very limited example a join and group by might work.
Read the link in my signature and post good example data and scripts and you will probably...
October 3, 2011 at 10:46 am
I am not sure how scalable this will be but it does do what you want it to for the sample data.
SELECT
t1.GroupID,
MemberList = substring((SELECT ( ' '...
September 21, 2011 at 2:52 pm
I was able to add the login after I had failed-over the server to the other node.
My investigation into this led me to another question. When trying to add...
September 19, 2011 at 8:16 am
That was my first thought so I checked all the domain controller manually. They all appear to be correct.
When adding the login on any other sql server it works...
September 15, 2011 at 12:29 pm
You can also use a cursor and dynamic sql like so
DECLARE @database nvarchar(100),
@sql nvarchar(max)
DECLARE c_Databases CURSOR LOCAL FOR SELECT name from master.sys.databases
OPEN c_Databases
WHILE (1=1)
BEGIN
FETCH NEXT FROM c_Databases ...
September 14, 2011 at 9:51 am
Might be that the database in question is on an instance that does not support log shipping. ie. express
August 30, 2011 at 9:34 am
Viewing 15 posts - 346 through 360 (of 583 total)