Viewing 15 posts - 10,921 through 10,935 (of 13,872 total)
There's probably a faster way, but this works I think:
select convert(varchar(11), cast('1978-01-25 00:00:00.000' as datetime), 13)
January 24, 2012 at 3:11 am
You can set the TablesList property via an Expression.
January 23, 2012 at 6:57 am
Try this:
use AdventureWorks2008R2 ;
GO
select avg(salesytd) avgSalesYTD,
a.PostalCode
from Sales.SalesPerson s
join Person.Person p on s.BusinessEntityID = p.BusinessEntityID
join Person.Address a on a.AddressID...
January 21, 2012 at 1:48 am
My pleasure - thank you for the feedback.
January 20, 2012 at 9:24 am
January 20, 2012 at 8:08 am
Ah, this gives the dodgy result:
select @x Dec, @y Float, cast(@y as numeric(28,15)) casted
So looks like it may be cast as float and then back to numeric in STR()
January 20, 2012 at 6:51 am
Thanks Jeff
I checked that BOL entry out this morning, then tried stuff like this:
declare @x decimal(28,15) = 98.43075
declare @y float
set @y = @x
select @x Dec, @y Float
in the expectation...
January 20, 2012 at 6:46 am
Also, is there any external configuration going on? If so, merely searching the packages is not enough, you'll also need to look in the config files/areas.
--edit: fix typo
January 20, 2012 at 5:30 am
This might not be an enjoyable task.
Where are the packages currently stored? If they're in the file system, you might be able to do some sort of wildcard text search...
January 20, 2012 at 5:29 am
jasonmorris (1/20/2012)
Thanks for that.
I forgot to mention that the variable is declared as DECIMAL(28,15) so I am surprised it causes a rounding issue.
I've never come across this issue before and...
January 20, 2012 at 3:17 am
You added an extra decimal place and that was just enough to highlight the rounding issues associated with the Numeric data type, which is what STR assumes.
January 20, 2012 at 2:28 am
raiserror('Your master data table has been truncated. Please have a quiet chat with your DBA', 1,1) with nowait
Read BOL to make sure you understand the concepts behind the...
January 18, 2012 at 9:24 am
Does the stored proc include Try ... Catch and RaiseError error trapping?
If not, you could try implementing that and see if it does what you wish.
January 18, 2012 at 8:58 am
subahan_syed (1/18/2012)
I'm looking to import multiple excel sheets in one file into multiple SQL tables using SSIS, at the end of the package run, I want to move the...
January 18, 2012 at 7:01 am
GilaMonster (1/18/2012)
Gazareth (1/18/2012)
And Wikipedia's "block" appears to be the equivalent of a hand-written sign hanging on an open door saying "We're Closed, honest." :hehe:
Intentionally.
http://en.wikipedia.org/wiki/Wikipedia:SOPA_initiative/Learn_more
Is it still possible to access Wikipedia...
January 18, 2012 at 5:26 am
Viewing 15 posts - 10,921 through 10,935 (of 13,872 total)