Viewing 15 posts - 15,346 through 15,360 (of 15,381 total)
I tweaked your code a little bit more. I removed the in because it was checking for a single value and removed the statusid check at the end. I think...
April 16, 2009 at 7:58 am
Actually, when i was looking again at your code the case statement has only 1 valid path. You are filtering out every value for StatusID except what is in @status
April 16, 2009 at 7:52 am
Can you post the create scripts, some sample data and the desired output? That way we are on the same page. It sounds like the case is exactly what you...
April 16, 2009 at 7:51 am
Are you just trying to select this info? If so then just take the alias of the columns.
Try this.
CASE (a.statusdetail)
WHEN NULL THEN 9
ELSE 11
END as StatusID
April 16, 2009 at 7:28 am
if it is ALWAYS 2 decimals just multiply by 100
otherwise cast it to a varchar and then replace '.' with ''
😛
April 15, 2009 at 10:43 am
This is a 2 part question -
1st - the field b.DOCAMNT returns with decimals (164.23 example - and usually there are 50 - 100 results returned for different check...
April 15, 2009 at 10:18 am
Try this as a great starting point. It has all the code for you in vb.net. 😛
April 15, 2009 at 8:29 am
I too am having some troubles getting this update to work. There are definitely issues with your cursor but when I reworked it I discovered that the image datatype is...
April 15, 2009 at 7:46 am
If you can post at least the create scripts for your tables i will play with it and see what I can come up with. 😛
April 14, 2009 at 3:14 pm
I figured you could just the dreaded cursor for the one time import since you already have figured out the path to the current file.
If you want to do this...
April 14, 2009 at 3:08 pm
something similair to this should let you insert them without much issue:
INSERT INTO myTable(Image)
SELECT * FROM
OPENROWSET(BULK N'FullPathHere', SINGLE_BLOB)
April 14, 2009 at 2:50 pm
That would depend on what reporting system you are using and the rules about generating an image in their reports.
April 14, 2009 at 2:43 pm
That leads to my other question. do you really need the intermediate table? One candidate can have multiple positions AND one position can have multiple candidates.
This would be many times...
April 14, 2009 at 2:31 pm
If you use int (or bigint if you expect LOTS of rows) columns set as identity instead of GUIDs it would be a lot easier. The you can just use...
April 14, 2009 at 2:24 pm
something like this do what you need?
SELECT top 1 *
FROM MyTable
WHERE MyDataType = 'A'
AND MyTimeStamp <= '1pm'
order by MyTimeStamp
April 14, 2009 at 2:15 pm
Viewing 15 posts - 15,346 through 15,360 (of 15,381 total)