Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:830581
More Search Options
RSS Available
Matching Posts
Re: ***HELP*** Return String from SQL Statment & Increment this String
Can you give me examples? Of how to input into a string variable from a SQL statement and then how to manipulate a string variable via the substring? I can't find any examples out there. I can't find any examples on putting the value from the SQL statement into a string. And I have been trying to slice my value with the sql substr but I get a error Syntax error (missing operator) in query expression 'substr(TOP 1 branchNo,2,3)'. So far nothing is going well for me tonight and I have
Posted to
MySQL
(Forum)
by
taketothesky
on 10/8/2008
***HELP*** Return String from SQL Statment & Increment this String
How can I get one value from a select statement and put it into a string and then modify it in that same method? What I want to do is get the last branch number and increment by 1 and return that value. It will be a string value so I will need to get help B002. So I would want it to assign B003 as my return value. Also, I have to use the OleDbConnection. public string GetNewBranchID() { String sql = "SELECT last.branchNo FROM Branch ORDER BY branchNo"; OleDbConnection connection = new OleDbConnection
Posted to
MySQL
(Forum)
by
taketothesky
on 10/8/2008
Filed under: Return String from SQL
Page 1 of 1 (2 items)
Channel 9:
Photosynth Update and New UI
Channel 9:
First Look: Streetside in Bing Maps
WindowsClient:
10 Must-See PDC 09 Sessions
Channel 10:
Photosynth Updated with New Release and New UI
Channel 10:
WindowsBlinds 7 Now Works with Windows 7
Channel 10:
Zune HD Launches New Colors
ASP.NET:
PDC09: ASP.NET MVC 2: Ninjas Still on Fire Black Belt Tips
ASP.NET:
Hanselminutes Podcast 188: ASP.NET MVC 2 Beta with Phil Haack
ASP.NET:
Hanselminutes Podcast 186: .NET Debugging 101 with Tess Ferrandez
TechNet Edge:
WinRE and free stuff with Sean Kearney
WindowsClient:
XslCompiledTransform and large template elements
WindowsClient:
The Future of Client App Dev : WPF and Silverlight Convergence
Channel 9:
PDC09 GeekFest Party
Channel 10:
How to Use "Play to" and "Remote Media Streaming" in Windows 7
Channel 9:
The Visual Studio Documentary: Jeff Hadfield Full Length Interview
TechNet Edge:
Managing Your Entire World - Tech Focus November 2009 Part 3
Channel 9:
The Access Show: Managing Access Databases with SharePoint
ASP.NET:
Hacking the ASP.NET Parser
Channel 10:
Show Us Your Tech - Mark Pendergrast Edition
TechNet Edge:
Mark Russinovich interview at TechEd EMEA 09
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online