Viewing 15 posts - 301 through 315 (of 1,344 total)
Couple things.
Case statement is fairly simple.
Constructed 2 ways
always starts with the case keyword and ends with the end keyword.
you can make the expression 2 ways.
when you are just comparing values...
November 27, 2007 at 10:15 pm
A parameter can only have one value,
so right here
Select @recordid=reminder.record_id,
@formtype=reminder.form_type,
@respparty=reminder.resp_party,
@resppartyemail=reminder.resp_party_email,
@subject=reminder.subject
from reminder
the parameters can only hold the last value.
but you will either have to use a cursor or...
November 27, 2007 at 12:53 pm
The beautiful thing about this message is it does not tell you what column is having the trucation issue.
so you have to compare datatypes and sizes of source and destination...
November 27, 2007 at 12:45 pm
What version of sql are you using?
Ansi_Nulls, and ANSI_WARNINGS are connection settings, so when you connect you tell sql you must tell sql what values you want these to...
November 27, 2007 at 12:40 pm
What differences are you looking for?
Differences in DDL?
or differences in data?
November 27, 2007 at 12:24 pm
Weird, I'm not sure what you mean by Check syntax. When I Copy your procedure into a query window and parse it, it looks fine.
But I'm sure your getting your...
October 30, 2007 at 4:56 pm
Well it depends on how your application authenticates users.
Does the application grant the user access to your database by using their windows login?
or does the user physically have to type...
October 19, 2007 at 10:39 am
CASE cannot be used in this manner.
you have to stick with IF..ELSE Statements
October 10, 2007 at 2:20 pm
select name, min(case when td.event_id = 'sd 099' then final_grade else null end) as 'sd 099'
, min(case when td.event_id = 'sd 102' then final_grade else null end) as 'sd 102'
from...
October 1, 2007 at 4:26 pm
It is very simple,
I'm not sure if this is a trick question.
Under the report drop down, Select Report Parameters.
Configure your parameter.
and then you can use it to plug into...
September 27, 2007 at 9:45 pm
Because at the storage level Sql server interprets datetime as 2 separate integers.
1 integer is the # of days past 01/01/1900. and the second is the Milliseconds past Midnight.
So if you...
September 20, 2007 at 10:33 am
select
Sum(case when datediff(yy, ub.Paint
September 18, 2007 at 4:09 pm
Of course.
Check out this post.
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=5&messageid=399995#bm400018
Reference books online for filegroups.
September 18, 2007 at 3:57 pm
I've seen and tried solutions like this, and they are nothing but problems.
You will be better off parsing the value for your where clause.
Where Batch_Date >= '20050404'
and Batch_nbr >=...
September 18, 2007 at 1:52 pm
Sorry, I wasn't paying attention to the fact you needed this for reporting services.
The problem with RS is it binds a report to a datasource. That is why...
September 18, 2007 at 9:15 am
Viewing 15 posts - 301 through 315 (of 1,344 total)