Unable to insert into database with parameters instead of strings (MyLittleAdmin)

Discussion in 'Databases' started by freakonaleashlp, Apr 8, 2009.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi,
    The N is an expression, handy but you do have to be careful.
    From SQL Server Books-on-line:

    When referencing the Unicode character data types nchar, nvarchar, and ntext, 'expression' should be prefixed with the capital letter 'N'. If 'N' is not specified, SQL Server converts the string to the code page that corresponds to the default collation of the database or column. Any characters not found in this code page are lost.
    http://msdn.microsoft.com/en-us/library/ms174335.aspx

    Get a handle on that then post again if you need help.
    Salute,
    Mark
     
  2. Thanks, Mark. My data fields are of the type 'varchar'. Is there any way I can use the formparameters (the variables preceded by the '@' symbol) and get them to work with the InsertCommand?

    Thanks,
    Rohan
     
  3. Looks like I answered my own question!

    :)
    Rohan
     
  4. Cool ;-)

    Gotta run, my 4 year old just called his 9 year old brother a "big fat booty"

    If you need any more help feel free to post, I'll be downstairs taking about respect and honor. :)
    Salute,
    Mark
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page