Showing posts with label beware. Show all posts
Showing posts with label beware. Show all posts

Wednesday, March 7, 2012

beware: SQL2005 management studio not 2000 compatible

using 2005 management studio i made changes to an 8 step job on SQL 2000
server. I inserted a new step into position 8 and then tried to save it.
SQL2005 management told me that some feature was not supported on SQL 2000
so i pressed cancel. at this point both SQL 2005 management studio and SQL
200) enterprise management both report a 4 step job.
It is going to take me hours to restore the 8 step job from a backup so that
it can be re-inserted into the live DB.
what a fiasco.
Leon
Leon McCalla (leonmccalla@.hotmail.com.junkfilter) writes:
> using 2005 management studio i made changes to an 8 step job on SQL 2000
> server. I inserted a new step into position 8 and then tried to save it.
> SQL2005 management told me that some feature was not supported on SQL 2000
> so i pressed cancel. at this point both SQL 2005 management studio and SQL
> 200) enterprise management both report a 4 step job.
> It is going to take me hours to restore the 8 step job from a backup so
> that it can be re-inserted into the live DB.
That's bad. That would indicate that there is no transaction handling. I
think this is quite a serious bug. Please go to http://connect.microsoft.com
and file a bug for this. Try to be as specific as possible. Best if you
can give a complete scenario which reproduces the problem. (A two-step job
should be sufficient, I guess.) I know that this will take even more time,
but if Microsoft does not get to know about the problem, they can't mend
their ways.
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

Beware the UNION ALL - it can swallow rows...

Just for all you June CTPers as a warning.. I have a UNION ALL that, at random, decides to swallow row count....

Tried deleting and recreating task
Unable to Repro

Along with the buffer leaks and the looping errors.. bring on the NEXT CTP.. ! ! !

Giri,

Can you send me a package that reproduces this issue? We're unaware of any UnionAll issues with CTP15 and I'd love to fix these.

thanks

Beware of ipowerweb - They are TERRIBLE!

Beware of ipowerweb
Their billing team made a mistake and thought that I did not pay.
Without sending me a notice they took the server from me.
After they understood the mistake they gave me another server, but it is
empty, and they say that they deleted the files.
They are TERRIBLE!!!
Gil Teva
www.donkey.co.il
Ipowerweb customer 2557939495
Sounds like a good lawyer could be useful in this situation.
"Gil Teva" <gilteva@.actcom.net.il> wrote in message
news:411de50f@.news.barak.net.il...
> Beware of ipowerweb
> Their billing team made a mistake and thought that I did not pay.
> Without sending me a notice they took the server from me.
> After they understood the mistake they gave me another server, but it is
> empty, and they say that they deleted the files.
> They are TERRIBLE!!!
> Gil Teva
> www.donkey.co.il
> Ipowerweb customer 2557939495
>

Beware of ipowerweb - They are TERRIBLE!

Beware of ipowerweb
Their billing team made a mistake and thought that I did not pay.
Without sending me a notice they took the server from me.
After they understood the mistake they gave me another server, but it is
empty, and they say that they deleted the files.
They are TERRIBLE!!!
Gil Teva
www.donkey.co.il
Ipowerweb customer 2557939495Sounds like a good lawyer could be useful in this situation.
"Gil Teva" <gilteva@.actcom.net.il> wrote in message
news:411de50f@.news.barak.net.il...
> Beware of ipowerweb
> Their billing team made a mistake and thought that I did not pay.
> Without sending me a notice they took the server from me.
> After they understood the mistake they gave me another server, but it is
> empty, and they say that they deleted the files.
> They are TERRIBLE!!!
> Gil Teva
> www.donkey.co.il
> Ipowerweb customer 2557939495
>

beware of avg() for large datasets

Not a question, just a post about something I ran into today that surprised me a little.

I have a huge dataset - about 700m rows, one column of which is a tinyint. I needed to take an average of that column, so I did this:

select avg(mytinyint) from mytable

which returned:

Msg 8115, Level 16, State 2, Line 6
Arithmetic overflow error converting expression to data type int.

It turns out, if the sum() over the column is bigger than MAX_INT = 2147483647, then avg() will throw this error. This surprised me a little - I guess I was assuming sql server would use bigint internally when computing integer avg, but it uses int.

so you have to do this:

select avg(cast(mytinyint as bigint)) from mytable

what's annoying to me is, it's impossible that an average of type T could be larger or smaller than the max/min allowed value of a type T. This means sql server devs could have internally always used bigint for sum and count, and then returned cast(sum/count as T) from avg() without possibility of overflow (unless sum or count was bigger than the max bigint! you are on your own if that happens i guess!).

Because of this, you have to cast your column to a bigint to make it work if your dataset is large enough, even if the column is only 1 measly byte! kind of a waste of space if you ask me. :)

here's a little example of what I'm talking about, that doesn't require you to import a 700m row dataset :)

declare @.t table (id int)
insert into @.t select 1 union all select 2147483647
select avg(cast(id as bigint)) from @.t -- works
select avg(id) from @.t -- failshmm...:rolleyes:|||Very interesting. I will check it out tomorrow. Thanks for posting it.

Beware installing SQL Server 2005 BOL (May 2007)

Beware installing this update, it can seriously damage your health. I clicked 'install' on my Vista 64 machine and let it trundle off to itself while I was doing some Visual Studio work. It runs for a while and then ... RESTARTs my PC. Without asking and withoug allowing me to save my work. Fresh, new work, gone. Thanks a bunch guys, installing some new docs really merits a restart.

This event is in the system log:

The process msiexec.exe has initiated the restart of computer BLUE on behalf of user NT AUTHORITY\SYSTEM for the following reason: No title for this reason could be found

Reason Code: 0x80030002

Shutdown Type: restart

Comment: The Windows Installer initiated a system restart to complete or continue the configuration of 'Microsoft SQL Server 2005 Books Online (English) (May 2007)'.

Thanks very much for bringing this issue to our attention. It is sometimes necessary to reboot after a Books Online update - because Books Online, Visual Studio, and SQL Server Management Studio share components - but the expected behavior is a prompt for reboot rather than an automatic reboot. We are actively investigating the issue, and will re-release the update after we identify a solution, so that other customers will not have a similar experience.

|||

Bryan

Thank you far replying to my post -- I am a bit calmer now Smile I have had about four reboots (on various machines) in the last week because of SQL Server patches and I was a bit fractious.

Beware installing SQL Server 2005 BOL (May 2007)

Beware installing this update, it can seriously damage your health. I clicked 'install' on my Vista 64 machine and let it trundle off to itself while I was doing some Visual Studio work. It runs for a while and then ... RESTARTs my PC. Without asking and withoug allowing me to save my work. Fresh, new work, gone. Thanks a bunch guys, installing some new docs really merits a restart.

This event is in the system log:

The process msiexec.exe has initiated the restart of computer BLUE on behalf of user NT AUTHORITY\SYSTEM for the following reason: No title for this reason could be found

Reason Code: 0x80030002

Shutdown Type: restart

Comment: The Windows Installer initiated a system restart to complete or continue the configuration of 'Microsoft SQL Server 2005 Books Online (English) (May 2007)'.

Thanks very much for bringing this issue to our attention. It is sometimes necessary to reboot after a Books Online update - because Books Online, Visual Studio, and SQL Server Management Studio share components - but the expected behavior is a prompt for reboot rather than an automatic reboot. We are actively investigating the issue, and will re-release the update after we identify a solution, so that other customers will not have a similar experience.

|||

Bryan

Thank you far replying to my post -- I am a bit calmer now Smile I have had about four reboots (on various machines) in the last week because of SQL Server patches and I was a bit fractious.