Viewing 15 posts - 1,861 through 1,875 (of 2,268 total)
Thanks, does your table have a primary key?
October 23, 2008 at 5:04 am
You will need to post some more information for a complete solution.
Post your table ddls and some sample data and i am sure someone will be able to help
October 23, 2008 at 4:04 am
If jobNumber is a var char then this code will not work at all
SELECT * FROM vw_Job_Invoices_And_Credits WHERE JobNumber = 503875
You will need to add quotes to the Jobnumber
SELECT *...
October 23, 2008 at 3:58 am
I have to ask,
have you checked the SQL log?
October 23, 2008 at 3:55 am
The problem is that your are trying to convert a string that has a commas in it these are non-numeric characters and will not be able to covert into...
October 23, 2008 at 3:48 am
You can get this information from the Schema Changes report that is part of the default trace on sql 2005.
Right click on the db in SSMS --> Reports.
Or else...
October 21, 2008 at 6:35 am
Am not sure what you mean by 'get rid off' but if you want to count just the numbers then use this
select len( replace('123-45-678','-','') )
October 17, 2008 at 7:19 am
No Worries , Thanks for the feedback..
October 17, 2008 at 7:04 am
try using row_number()
;WITH SchoolOrder AS
(SELECT id,class,name,avaliation,
ROW_NUMBER() OVER (PARTITION BY class ORDER BY avaliation DESC) AS TheOrder
FROM school
)
SELECT * FROM schoolorder WHERE theorder <4
October 17, 2008 at 4:13 am
perrydwill (10/16/2008)
October 16, 2008 at 10:55 am
I ahve to agree with Luke's comments, it is apparent that all your names do not follow the same format. You could try
SELECT Fullname,
...
October 16, 2008 at 10:42 am
perrydwill (10/16/2008)
October 16, 2008 at 10:13 am
If the data is consistent across all the names, then this code will be able to split the names, I tested it against the small sample provided and it works....
October 16, 2008 at 9:43 am
You can do this in SQL ,
Post up some sample data and the query that you wrote and I am sure that some one will be able to help you
October 16, 2008 at 8:55 am
morten (10/15/2008)
Thanks. I will have a look at that.
Does that mean that we have a potential bad code in our CMS to allow sql injections? or would it more be...
October 15, 2008 at 10:03 am
Viewing 15 posts - 1,861 through 1,875 (of 2,268 total)