| Author |
Topic |
|
sami022
Starting Member
11 Posts |
Posted - 2010-02-25 : 07:28:38
|
| INSERT INTO [login].[dbo].[login1] (pass)SELECT REPLACE( LEFT([login].[dbo].[login2].[pass2] , 10 ), '/', '' ) ;while running it i m getting this error:"the multi-part identifier could not be bound" in LEFT([login].[dbo].[login2].[pass2] , 10 )hi every body! |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2010-02-25 : 07:37:14
|
| INSERT INTO [login].[dbo].[login1] (pass)SELECT REPLACE( LEFT([pass2] , 10 ), '/', '' ) FROM [login].[dbo].[login2]MadhivananFailing to plan is Planning to fail |
 |
|
|
Kristen
Test
22859 Posts |
Posted - 2010-02-25 : 07:38:40
|
You need:SELECT REPLACE( LEFT([pass2] , 10 ), '/', '' )FROM [login].[dbo].[login2] |
 |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2010-02-25 : 07:39:55
|
REPLACE(LEFT([pass2], 10), '/', '' ) from [login].[dbo].[login2] No, you're never too old to Yak'n'Roll if you're too young to die. |
 |
|
|
Kristen
Test
22859 Posts |
Posted - 2010-02-25 : 07:40:31
|
| Just re-reading that:You are taking the first 10 characters of the password and then removing any "/"You might have meant to first remove any "/" and then take the first 10 characters? |
 |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2010-02-25 : 07:40:32
|
good night  No, you're never too old to Yak'n'Roll if you're too young to die. |
 |
|
|
Kristen
Test
22859 Posts |
Posted - 2010-02-25 : 07:41:11
|
You solution is better because it only took one line |
 |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2010-02-25 : 07:41:55
|
 No, you're never too old to Yak'n'Roll if you're too young to die. |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2010-02-25 : 07:43:09
|
Lot of replies in a matter of seconds MadhivananFailing to plan is Planning to fail |
 |
|
|
sami022
Starting Member
11 Posts |
Posted - 2010-02-25 : 07:44:52
|
| thanx it worked!hi every body! |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2010-02-25 : 07:49:06
|
quote: Originally posted by sami022 thanx it worked!hi every body!
Did you read Kristen's second reply?MadhivananFailing to plan is Planning to fail |
 |
|
|
sami022
Starting Member
11 Posts |
Posted - 2010-02-25 : 11:51:00
|
| thanx it worked!hi every body! |
 |
|
|
Kristen
Test
22859 Posts |
Posted - 2010-02-25 : 13:56:54
|
| Madhi was referring to this point that I raised earlier:"You are taking the first 10 characters of the password and then removing any "/"You might have meant to first remove any "/" and then take the first 10 characters?" |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2010-03-01 : 00:44:58
|
quote: Originally posted by Kristen Madhi was referring to this point that I raised earlier:"You are taking the first 10 characters of the password and then removing any "/"You might have meant to first remove any "/" and then take the first 10 characters?"
OP didn't read my reply properly MadhivananFailing to plan is Planning to fail |
 |
|
|
|