p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 2.0 Professional (http://p2p.wrox.com/forumdisplay.php?f=215)
-   -   function (http://p2p.wrox.com/showthread.php?t=62164)

keyvanjan September 19th, 2007 10:01 AM

i have a photo name field in my sql database
it stores photo names with extensions like this
how can i split just the photo name from the (.)
i want to add a string to it like test_small or test2_small
i need to split everythig before the dot
please write me the code

dparsons September 19th, 2007 10:22 AM

Split it in SQL or in .NET code?

SQL Server does not have a native Split function so you will have to search google for that one and to split a string in C# or VB is trivial. You have apparently not done any research on this topic so let me refer you to:


================================================== =========
Read this if you want to know how to get a correct reply for your question:
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET

Professional IIS 7 and ASP.NET Integrated Programming

================================================== =========

All times are GMT -4. The time now is 08:14 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.