Viewing 15 posts - 2,086 through 2,100 (of 13,460 total)
your case statement was 99% there:
you got caught with syntax, minor tweak to get ove rthe "IS" error:
CASE --nothing goes here when formula is used in a WHEN a.exposure_amt
...
Lowell
January 20, 2015 at 10:57 am
profiler/trace/extended events tell you what commands were executed, but not what data changed.
an audit can tell you that a value changed.
the best way to handle it is of course at...
Lowell
January 20, 2015 at 7:57 am
i think you want a constraint like this:
this is what you want to prevent in the future: anything that is NOT numbers
select p.Pext,* from person_test2 p where p.Pext like...
Lowell
January 16, 2015 at 3:05 pm
Ronnie Jones (1/16/2015)
I'm thinking more along the lines of:.mdf = master data file
.ldf = log data file
.ndf = "next" data file
🙂 Crazy I know...
ya'll missed the southern naming influece here....
Lowell
January 16, 2015 at 2:49 pm
oh i missed combination of NUMBERS.
rules are being deprecated, you should just create a check constriant.
I know you said you can't add constraints, but technically a rule is a kind...
Lowell
January 16, 2015 at 12:29 pm
tcronin 95651 (1/16/2015)
Lowell
January 16, 2015 at 12:25 pm
to use "be made with the logins security context", the user must be a user on the domain.
if the user was a SQL user, an anonymous connection is made, which...
Lowell
January 16, 2015 at 11:24 am
it would be more efficient to refer to an image that exists on the internet.
the size of the email is reduced, and also the throughput to your email server.
I know...
Lowell
January 16, 2015 at 11:15 am
to grant permissions to other users, your user also needs the db_securityadmin priviledge
scroll down to "Permissions" on this page, and it's got the gory details:
http://msdn.microsoft.com/en-us/library/ms188371.aspx
Lowell
January 16, 2015 at 9:57 am
halifaxdal (1/16/2015)
no way i know of to ignore errors, you have to explicitly use LEFT functions in the SELECT or something to work around this issue.
based on your table, only...
Lowell
January 16, 2015 at 9:39 am
looks pretty straight forward to me:
select
AVG(RSCORE) AS ScoreAvg,
AVG(RAmount) As AmtAvg,
AVG(Rvisit) AS VistAvg,
SUM(TotalAmt) AS TotalAmount
...
Lowell
January 16, 2015 at 9:23 am
halifaxdal (1/16/2015)
Lowell
January 16, 2015 at 8:54 am
your cursor is not designed correctly.
it gets the first record, does nothing, gets the next record, processes it, and then hits the END.
the last statement before END must be the...
Lowell
January 16, 2015 at 6:40 am
as far as i know, this is a limitation in SQL for the try catch; you can only catch one error, regardless of the number of errors actually thrown.
Lowell
January 16, 2015 at 6:36 am
i can't help with the nolock, but i bought a plugin for SSMS called SQL Enlight, which does check scripts for semi colons,fully qualified schema names, aliases and more; this...
Lowell
January 16, 2015 at 5:30 am
Viewing 15 posts - 2,086 through 2,100 (of 13,460 total)