|
Can I ask if this is correct.
Wince 5.0 has SQL3.0 (or SQL3.1 with the sp1) ?
What do you do for Wince 6.0? while using VS2005?
I had SQL3.0 working after the same old problem that everyone else has had with the P/invoke error. (VS2005 didn't copy the cabs into the correct directory - Deploy error) also sqlceme30.dll wasn't in the windows directory.
Fixed....
No problemss...
Yeah right, I got a new machine with wince6.0 on it.
Back to square one!
Now, it doesn't matter what I do, the same error keeps comming up 'P/invoke cant find sqlceme30.dll'.
I did notice that when you manually install the .cab files (sqlce30.wce5.armv4i.cab and sqlce30.repl.wce.arm4vi.cab)they say that 'this is not the compatable software platform, do you want to continue?'
Is this an incompatability with wince6.0?
Am I meant to use sqlce3.5?
Isn't this only in VS2008?
Is there another way around this or do I have to upgrade to VS2008?
Please help
Thanks,
Rob.
|
|
|
|
|
Hi
how to conver string to date not in date time format.
means
like I want to convert this string(15 may 2008) '15/05/2008' in date format.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
The date is not stored in a specific date format in the database, but to do what you have asked:
select convert(varchar,convert(datetime,'15 may 2008'),103)
Bob
Ashfield Consultants Ltd
|
|
|
|
|
not like that
I want finally in date format not in string format.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
Then just use a DateTime with a "00:00:00" for the time representation, because you can then just convert it to a string when you need it as shown by the previous poster.
|
|
|
|
|
that's fine but what I want see
varDate is "2008-05-09 21:24:58.407" now I want to get record as per date(2008-05-09)without time but not getting.
select *from tblName where varDate='2008-05-09'
not getting any record
I have stored date with time also.
I tried this also
select *from tblName where varDate like '%2008-05-09%'
ans:saying can not be converted string to date
You get the best out of others when you give the best of yourself.
|
|
|
|
|
Well try using a little logic then. It is obviously failing because you have the time included on the database.
select * from tblName where convert(datetime,convert(varchar,getdate(),103)) = convert(datetime,'05 may 2008')
Bob
Ashfield Consultants Ltd
|
|
|
|
|
not working
You get the best out of others when you give the best of yourself.
|
|
|
|
|
trilokharry wrote: not working
Very useful comment.
If tahts all you can say how can anyone help you - or why should anyone bother?
Bob
Ashfield Consultants Ltd
|
|
|
|
|
I mean I am not getting my requirement.
your code working fine.
sorry for previous comment.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
Well exactly what IS your requirement? As far as I know, myself and others have answered your original question (such as it was)
trilokharry wrote: like I want to convert this string(15 may 2008) '15/05/2008' in date format.
As a final suggestion, try this.
select * from table where CONVERT(VARCHAR(20),vardate,106) = '15 may 2008'
Otherwise explain EXACTLY what you want. The database does not really care what format your date is in as it stores it as a number anyway.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
thanks
now it's working fine
You get the best out of others when you give the best of yourself.
|
|
|
|
|
In his first post I was confused and I didn't figure out what excatly he wants.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
|
|
|
|
|
No, I was basing my answers mainly on guesswork
Bob
Ashfield Consultants Ltd
|
|
|
|
|
I've got data in English but that contains Some French characters too.
for example
Actual data
The Coleg Sir Gâr
Sabhal Mòr Ostaig
Château du Rosey
Areté
Ecole La Découverte
Colegio Gran Bretaña
St Thérèse of Lisieux RC Primary School
Search input would be:
The Coleg Sir Gar (â replaced by a (English))
In data, anywhere there could bey a foregin character and that could be any foreign character How can I included these records in my Search results Using SQL or T-SQL. I am using SQL server 2005 standard.
any help will bhe appreciated.
|
|
|
|
|
You need to define your columns as nvarchar, then they will accept these characters.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
You didn't get my question I gugess.
I have already that data in varchar there 10,000+ records which containt these foreign characters.
When we search using english chracters they do not come in the search. So what would be the solution to show them in the search
while using english characters as someone will type Foregin chracters.
|
|
|
|
|
Naveed Kamboh wrote: I have already that data in varchar there 10,000+ records which containt these foreign characters.
When we search using english chracters they do not come in the search.
In which case I think you are out of luck. If you think about it logically the characters are not the same, the ascii values of the characters differ so the strings differ.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
|
SoundEx doesn't work.
I've tried that
|
|
|
|
|
|
Just goes to show, posting to multiple forums can help. Nice one.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi Naveed,
In case of multilingual, we shud follow nvarchar always...after that you can search everything using N'%" + SearcText + "%' .... so that it will be easy to find out the desired result.
|
|
|
|
|
Can you please give me any example what do you mean
I tried following query
select organisationname from
organisation where
organisationname like N'%Arete%'
It is not returning me in results "Areté"
My actual stored procduer runs with following where clause
@WhereClause = N'((OrganisationName COLLATE SQL_Latin1_General_CP1_CI_AI ) LIKE '%arete%'
and its giving me results which wanted.
|
|
|
|
|
Dear Friends,
i want to declare an float variable and stored data in that variable the scenario is as given below
suppose i have table name Table_1 having three column BranchID, Payment and Date
BranchID, Payment, Date
1, 2000, 10/05/2008
1, 1000, 11/05/2008
1, 3000, 12/05/2008
2, 2000, 10/05/2008
i want to create an procedure which give output as 'Branch ID 1 made payment of 6000 Rs' passing the parameter BranchID and Date
Parameter value BranchID = 1 and Date BETWEEN CONVERT(DATETIME, '2008-05-10 00:00:00', 102) AND CONVERT(DATETIME, '2008-05-12 00:00:00', 102)
how can i do this please help me thanks in advanced
Sasmi
|
|
|
|