Viewing 15 posts - 976 through 990 (of 6,486 total)
Rounding in itself is a business decision. As in- it's usually a design constraint imposed by the byusiness on how it SHOULD work. No matter how you look...
May 30, 2012 at 9:40 am
SQLKnowItAll (5/23/2012)
drew.georgopulos (5/23/2012)
My feeling is that GSquared's suggestion hits the...
May 23, 2012 at 1:16 pm
Put a "use" clause in the dynamic statement.
Something like:
Declare @SQLExec varchar(1000),
@BackName varchar(8),
@dbname varchar(100)
Set @BackName = replace(convert(varchar,getdate(),101),'/','')
Set @dbname = 'Database2'
-- select @BackName
Set @SQLExec= 'use ['+@dbname+'];'
Set @SQLExec = @SQLExec+'if exists (select...
May 22, 2012 at 2:48 pm
Take the Exec out and print the SQL statement instead. You will see that the string is missing a bunch of apostrophes around items.
This should be about right.
Declare @SQLExec...
May 21, 2012 at 9:25 pm
Gazareth (5/21/2012)
(Open an existing DB solution from TFS in SSMS).
There's no way to enforce changes to the...
May 21, 2012 at 11:01 am
khushbu (5/21/2012)
Sometimes, I need to check eventviewer for any errors etc.. and to check this...
May 21, 2012 at 10:55 am
Jeff Moden (5/18/2012)
Matt Miller (#4) (5/18/2012)
May 18, 2012 at 7:46 pm
Michael -
I think the issue is "not enough info".
There are a fair amount of folks on here that enjoy a nice challenge, but implementing a resonably complex...
May 18, 2012 at 3:42 pm
The 2012 functionality within the += operator IS in fact a concatenator (if you use it with string data types). As long as you don't particularly case in which...
May 18, 2012 at 1:41 pm
The list of "allowed constructs" is out of Books Online, and is very specific about what can and cannot be called within a function. It's intended to be an...
May 18, 2012 at 8:07 am
preetham gowda (5/17/2012)
Create Function dbo.Fun_Proc_Test1(@id1 int) Returns varchar(30)
As
Begin
Declare @res varchar(30)
--Set @res = (Select * From OpenQuery(ABHI, N'Declare @result varchar(30) Exec Abhi.Test.dbo.convert2Lower @id = ' + Cast(@id1 As Varchar(5)) +...
May 17, 2012 at 11:01 pm
I'd look at using a work table with a good index on it to track the combinations. The best performance would likely be if you can set up a...
May 17, 2012 at 2:22 pm
And thank you gemisigo for allowing us to trample over your initial topic. Didn't mean to hijack it.
Thanks Howard for the input.
May 17, 2012 at 11:42 am
I'll bite too...Although expression can be a column, it's defined as:
Is a combination of symbols and operators that the SQL Server Database Engine evaluates to obtain a single data value.
And...
May 17, 2012 at 10:48 am
Viewing 15 posts - 976 through 990 (of 6,486 total)