Results 1 to 2 of 2

Thread: Format in SQL Server

  1. #1

    Thread Starter
    Fanatic Member eimroda's Avatar
    Join Date
    Jul 2000
    Location
    Philippines
    Posts
    642

    Format in SQL Server

    I am new to SQL Server. I have a program that uses MS Access 2000 as its backend db. In one of my SQL statements, i have this:
    VB Code:
    1. SQL = "Select Format(UPrice,'###,##0.00') From tblPrices"
    2. rsPrice.Open SQL, Conn, adOpenForwardOnly, adLockReadOnly

    It is working fine with Access. As we upsize the DB to SQL Server, I am getting then with an error with the SQL statement. Pls help me to convert that to a statement that is compatible with SQL Server 7.
    On Error GoTo Hell

    Hell:
    Kill Me


    Food For Thought:

    - Do not judge a book... if you're not a judge!


  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Go to your SQL Server books online, and check out CAST AND CONVERT.

    mk:@MSITStore:C:\Program%20Files\Microsoft%20SQL%20Server\80\Tools\Books\tsqlref.chm::/ts_ca-co_2f3o.htm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width