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
 the multi-part identifier could not be bound

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]


Madhivanan

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

Kristen
Test

22859 Posts

Posted - 2010-02-25 : 07:38:40
You need:

SELECT REPLACE( LEFT([pass2] , 10 ), '/', '' )
FROM [login].[dbo].[login2]
Go to Top of Page

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.
Go to Top of Page

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?
Go to Top of Page

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.
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2010-02-25 : 07:41:11
You solution is better because it only took one line
Go to Top of Page

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.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2010-02-25 : 07:43:09
Lot of replies in a matter of seconds

Madhivanan

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

sami022
Starting Member

11 Posts

Posted - 2010-02-25 : 07:44:52

thanx it worked!

hi every body!
Go to Top of Page

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?

Madhivanan

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

sami022
Starting Member

11 Posts

Posted - 2010-02-25 : 11:51:00
thanx it worked!

hi every body!
Go to Top of Page

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?
"
Go to Top of Page

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

Madhivanan

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

- Advertisement -