Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Can u just Explain....

Author  Topic 

rajveerg22
Starting Member

4 Posts

Posted - 2007-11-03 : 02:22:15
Query:
insert into aaaa values(',�'&\',',�'&\');

BUJJI.

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-11-03 : 02:29:58
quote:
Originally posted by rajveerg22

Query:
insert into aaaa values(',�'&\',',�'&\');

BUJJI.


It should be

insert into aaaa values(',�''&\',',�''&\');


Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

rajveerg22
Starting Member

4 Posts

Posted - 2007-11-03 : 02:38:13
but this decrypted value of password...how can i change in that way....

BUJJI.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-11-03 : 02:42:20
quote:
Originally posted by rajveerg22

but this decrypted value of password...how can i change in that way....

BUJJI.


No worries. It would be stored as you wished
Run select query and see

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

arorarahul.0688
Posting Yak Master

125 Posts

Posted - 2007-11-03 : 05:35:30
quote:
Originally posted by rajveerg22

Query:
insert into aaaa values(',�'&\',',�'&\');

BUJJI.



no problem even if is encrypted password
it wil be stored as it is and can be selected for comparison

Rahul Arora
MCA 07 Batch
NCCE Israna, Panipat
HRY, INDIA

######################
IMPOSSIBLE = I+M+POSSIBLE
Go to Top of Page

rajveerg22
Starting Member

4 Posts

Posted - 2007-11-03 : 06:43:35
Sir.....
If the encrypted value comes in the string format...
suppose if the field value is like ",�'&\" coming dynamically from the form and how can i change it to ",�''&\".
Is there any way to ignore such type of characters...

BUJJI.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-11-03 : 08:45:45
You need to double the single quotes

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -