Viewing 15 posts - 121 through 135 (of 272 total)
Perect timing - I hit exactly this yesterday and was hunting round for a solution. It is in fact fully documented in BOL and it describes several options:
http://msdn.microsoft.com/en-us/library/cc281253.aspx.
It...
May 18, 2011 at 4:35 am
On the face of it this seems an odd thing to want to do.
No simple way I can think of apart I suppose from creating a string of SQl by...
May 11, 2011 at 3:25 am
You are almost there - it should be Set Nocount ON rather than off.
Mike
April 26, 2011 at 11:10 am
That is a very big question!
There could be many reasons, but restarting SQL Server is not necessary. My guess would be a combination of poor index choices, or badly written...
April 13, 2011 at 12:58 am
Assuming by "odd data" you mean "rows where the value of contactid is an odd number" then something like
select ...
where contactid % 2 = 1
Should do the trick. This...
April 1, 2011 at 3:06 am
For that data volume it seems far too slow either way.
Can you post the DDL of both tables, specifically what data type is/are the join columns? What constraints are...
February 23, 2011 at 5:08 am
After a machine is renamed you need to get the name SQL server uses consistent.
this can be done with
exec sp_dropserver 'old name'
exec sp_addserver, 'new_name', local
GO
Mike
February 22, 2011 at 12:56 am
As far as I know you will need to drop and re-crete the view. I would argue that having the view definition change just because an underlying table has an...
February 17, 2011 at 12:19 am
I would reconsider the database design. Storing multiple values comma separated in one column will always give you complexities and goes against one of the basic principles of database design....
February 16, 2011 at 1:23 am
I suspect that a trigger has been added to that table, and the trigger either includes a subquery or does not not allow for multiple rows being updated in some...
February 9, 2011 at 3:57 am
The simplest would be to remove all the dynamic SQL and just use a simple insert possibly with NULLIFs in ths values clause if the app passes blanks that you...
February 7, 2011 at 2:28 am
It is important to realise that apart from a few special cases (such as in a group by) NULL is never considered equal to anything (including another null).
One way round...
February 4, 2011 at 1:37 am
Something like
update table
set varcharcolumname = rtrim(varcharcolumname)
where varcharcolumname like '% '
would remove the trailing spaces that are already stored, then repeat for each column you converted. I would then rebuild...
February 4, 2011 at 12:03 am
I think the first line of the where clause should probably be using >= rather than = as the conditions as posted are mutually exclusive...
Mike
January 28, 2011 at 11:49 am
If possible I would rethink the database design - specifically why have a separate table for each months points?
With the separate table you will need to change the query each...
January 25, 2011 at 2:12 am
Viewing 15 posts - 121 through 135 (of 272 total)