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
 Special Characters in UNC

Author  Topic 

edojan
Starting Member

4 Posts

Posted - 2011-01-07 : 15:47:17
ok i have a UNC path that has spaces and ex "\reporting & Analysis\_weekly\arp report" how do i code this in sql so that it dosent give me errors since it has special characters ...

Thanks!!

Lamprey
Master Smack Fu Yak Hacker

4614 Posts

Posted - 2011-01-07 : 15:55:16
What do you mean by code it? Why would sql care if a string ha special characters? Or are you doing some string manipulation or dynamic SQL that is causing issues?

http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx
Go to Top of Page

edojan
Starting Member

4 Posts

Posted - 2011-01-07 : 15:59:34
I meant to code it ... perhaps its my code. But if SQL dosent care if the UNC path you are referencing (string) has special characters thatn my programmer lied to me :)

Sorry for stupid question lol


Thanks!
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-01-08 : 01:11:02
probably you could give us some background on what your programmer was trying to achieve!

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2011-01-12 : 03:10:20
Post the code that gave the error

Madhivanan

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

- Advertisement -