G
GotDotNet?
I'm trying to insert data from one table to another on sql server via C#.
here is my syntax:
insert into tableA (CustOrderNumber, custName, custState, CustCity) SELECT
('" + System.GUID.NewGUID() + '", Name, State, City) from custSales
I'm getting this error message:
There was an error parsing the query. [Token line number =1, Token line
offset = 129, Token in error =, ]
any ideas what could be causing this ?
I need to generate the CustOrderNumber on this insertion process due to its
not created on the actual sale.
don't ask, its hasn't been fun working with this db.
here is my syntax:
insert into tableA (CustOrderNumber, custName, custState, CustCity) SELECT
('" + System.GUID.NewGUID() + '", Name, State, City) from custSales
I'm getting this error message:
There was an error parsing the query. [Token line number =1, Token line
offset = 129, Token in error =, ]
any ideas what could be causing this ?
I need to generate the CustOrderNumber on this insertion process due to its
not created on the actual sale.
don't ask, its hasn't been fun working with this db.